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.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
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?"