Distill a top-level principle into knowledge/rules.md. Trigger when user says 'add rule', 'new principle', 'enforce this', '@agent', or wants to codify an architectural decision, workflow principle, or behavioral guideline into persistent rules.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Distill a top-level principle into knowledge/rules.md. Trigger when user says 'add rule', 'new principle', 'enforce this', '@agent', or wants to codify an architectural decision, workflow principle, or behavioral guideline into persistent rules.
argument-hint
[principle to capture]
disable-model-invocation
true
Trigger Examples
"@agent 所有 JSON 操作必须用 jq"
"add this as a permanent rule"
"enforce: never skip tests"
"把这个原则写进规则"
"@agent submodule 修改必须走 worktree"
Agent — Distill Top-Level Principle
Capture a principle into knowledge/rules.md as a staged rule.
Input
$ARGUMENTS
Process
If no input provided, ask user: "What principle should I capture?"