Stats
Actions
Tags
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-discipline:auto-docsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
每次完成操作後,自動記錄到 `.ai/` 目錄。
每次完成操作後,自動記錄到 .ai/ 目錄。
這是行為規則,不需要觸發 -- 永遠生效。
.ai/ # 工作記憶(gitignore)
CURRENT.md # 當前 session 狀態
HANDOFF.md # 跨 session 交接
changelog.md # 變更記錄(壓縮格式)
lessons.md # 經驗教訓(分類)
sessions/ # 每日 session 摘要
YYYY-MM-DD.md
snapshots/ # mid-session checkpoint
docs/ai/ # 匯出層(手動 commit)
lessons.md # 從 .ai/ 匯出的精選
sessions/ # 從 .ai/ 匯出的 session
## YYYY-MM-DD
- {type}:{scope} | {path} | {一行描述}
type: feat/fix/refactor/docs/test/chore 每行 < 120 字元
## {類別}
- {日期} | {教訓一行}
model: {model}
branch: {branch}
## done
- {完成項目}
## pending
- {待辦}
## decisions
- {決策}
## files_changed
- {path} | {描述}
當前 session 正在做的事,收工時合併到 HANDOFF.md
跨 session 交接,bootstrap.sh 讀取恢復 context
需要將 .ai/ 的長期價值內容(lessons, session summary)保存到 git 時:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/ai-export.sh # 匯出 lessons + 最近 session
bash ${CLAUDE_PLUGIN_ROOT}/scripts/ai-export.sh --all # 也匯出 changelog
匯出後需手動 git add docs/ai/ && git commit
新 session 開始時按此順序讀取恢復 context:
.ai/HANDOFF.md(跨 session 交接).ai/changelog.md(最近 20 行).ai/lessons.md.ai/sessions/ 最新一筆docs/specs/ active specsnpx claudepluginhub miyago9267/dev-discipline --plugin dev-disciplineGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.