بنقرة واحدة
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.