원클릭으로
keystone-new-guide
Scaffold a new rule guide + paired corpus stub at the canonical path.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Scaffold a new rule guide + paired corpus stub at the canonical path.
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.
Run the drift sensor on the current diff — fast pre-verify check that loaded charter rules still match what the code is doing.
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.
| name | keystone-new-guide |
| description | Scaffold a new rule guide + paired corpus stub at the canonical path. |
| tools | ["Read","Write","Edit","Glob","Bash"] |
| model | sonnet |
A guide is a markdown file under .charter/guides/<topic>/
that declares one or more rules (the what); a paired corpus entry
under .charter/corpus/<topic>/ carries the reasoning (the
why). The generator emits both with canonical frontmatter,
charter-root-relative cross-links, and the required tier headings.
keystone new guide <topic>/<name>
Example:
keystone new guide process/release
# writes .charter/guides/process/release.md
# .charter/corpus/process/release.md
The topic directory sets the guide's default activation:
| Topic | Default activation |
|---|---|
domain/ | Ambient on every action. |
process/ | On phase entry. |
idioms/<stack>/ | Lazy by region — only when the touched region's stack matches. |
principles/ | Ambient on every action. |
computational/ | Editor / LSP / on-save (tool-driven). |
See docs/ports/guide.md for the
full guide port contract.
## RULES (the default tier). Use ## IRON LAW(S) or
## GOLDEN RULE only when warranted.globs: frontmatter list to narrow activation to
specific code paths.keystone index to refresh the descriptor surface.