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)
- Precondition:
.cockpit/tồn tại. Thiếu → routepk-init(mode new), KHÔNG nạp gì thêm, dừng. - 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 markerSNAPSHOT_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
- Read-only: không tạo, sửa, xoá file nào.
- Song song: đọc nhiều file cùng lúc.
- Chính xác: dùng công thức chuẩn (
../pk-shared/references/metrics.md). Số liệu trích từ file. - Root cause (mode deep): "tại sao?" >= 3 lần trước khi kết luận.
- Cụ thể: mọi nhận định kèm evidence.