一键导入
keystone-new-adapter
Scaffold the per-agent adapter triple (lifecycle, sensors, activation) for a new host.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold the per-agent adapter triple (lifecycle, sensors, activation) for a new host.
用 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-adapter |
| description | Scaffold the per-agent adapter triple (lifecycle, sensors, activation) for a new host. |
| tools | ["Read","Write","Edit","Glob","Bash"] |
| model | sonnet |
An adapter is the per-agent bundle that teaches one host how to
load the charter — three files per agent: lifecycle.md (how the host
invokes playbooks and actions), sensors.md (how it runs sensors), and
activation.md (the host's menu-file content).
Shipped adapters: claude-code, codex, cursor, aider, cline,
continue, goose, github-copilot, pi. Add a new one when
supporting a host not on that list.
Adapters live at .charter/adapters/<agent>/.
keystone new adapter <agent>
Example:
keystone new adapter mistral
# writes .charter/adapters/mistral/{activation,lifecycle,sensors}.md
lifecycle.md — how this host invokes the lifecycle
(natural-language actions, slash commands, MCP tools, etc.).sensors.md — sensor invocation conventions for this host.activation.md — the host-native menu-file content the
installer will project to the consumer's repo root.keystone index to refresh the descriptor surface.Full port contract:
docs/ports/adapter.md.