pk-analyze

Installation
SKILL.md

PK Analyze: Phân tích trạng thái (read-only)

Ensure snapshot (bắt buộc, đầu flow)

  1. Precondition: .cockpit/ tồn tại. Thiếu → route pk-init (mode new), KHÔNG nạp gì thêm, dừng.
  2. Idempotent qua marker: phiên CHƯA có marker SNAPSHOT_LOADED → tự nạp full theo Snapshot Contract (../pk-shared/references/snapshot-contract.md) rồi đặt marker SNAPSHOT_LOADED. Đã có marker (vd harness Phase 1 đã đặt) → skip, không đọc lại.

Đọc .cockpit/, tính metrics, phát hiện vấn đề, xếp ưu tiên. KHÔNG BAO GIỜ ghi file.

Nguyên tắc

  1. Read-only: không tạo, sửa, xoá file nào.
  2. Song song: đọc nhiều file cùng lúc.
  3. Chính xác: dùng công thức chuẩn (../pk-shared/references/metrics.md). Số liệu trích từ file.
  4. Root cause (mode deep): "tại sao?" >= 3 lần trước khi kết luận.
  5. Cụ thể: mọi nhận định kèm evidence.
Installs
13
First Seen
Jun 10, 2026
pk-analyze — hoangvantuan/personal-assistant