一键导入
keystone-check-drift
Run the drift sensor on the current diff — fast pre-verify check that loaded charter rules still match what the code is doing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run the drift sensor on the current diff — fast pre-verify check that loaded charter rules still match what the code is doing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Full dual-flywheel audit — Learning (capture from review) + Pruning (remove dead rules). Periodic charter hygiene.
One-time initial charter scaffold — detect stack, seed state, scaffold idioms, classify sensors, build the globs index.
Triage the code-debt ledger — review the debt sensor's findings and update corpus/state/code-debt.md.
Regenerate .keystone/INDEX.json — the primitive descriptor index every agent reads at session start.
Capture a learning candidate (surprise, incident, review finding) into .charter/learning/inbox/ for later synthesis.
Switch the charter pacing mode (paired / solo / autopilot).
| name | keystone-check-drift |
| description | Run the drift sensor on the current diff — fast pre-verify check that loaded charter rules still match what the code is doing. |
| tools | ["Read","Bash","Grep","Glob"] |
| model | sonnet |
Compares the in-progress diff against loaded charter rules. Fires before the full computational sensor suite — catches the obvious case where the agent is implementing something the rules explicitly disallow.
Canonical playbook: .charter/actions/check-drift.md. Sensor
contract at .charter/sensors/drift.md. Full discipline at
.charter/guides/process/implementation.md.
Open .charter/actions/check-drift.md and execute every
activity.
/keystone:verify./keystone:verify keeps failing on the same rule — drift is
often the upstream cause.