with one click
pitfall-record
Record a pitfall or lesson learned in the postmortem log
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.
Menu
Record a pitfall or lesson learned in the postmortem log
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.
Based on SOC occupation classification
Initialize new project with CLAUDE.md, .knowledge/ structure, company rules, and git
Generate a development plan with task breakdown and section 10 tracking tables
L1 Code Review SOP — 強制規範對照 + 審核決策,不得跳過任何 checkpoint
Merge sprint branch to base branch, tag release, and clean up branches
Mark a task as done after L1 review passes
Boss dispatches tasks — auto-create .tasks/ files and record in dev-plan
| name | pitfall-record |
| description | Record a pitfall or lesson learned in the postmortem log |
| allowed-tools | Read, Edit, Glob |
將踩坑經驗記錄到 postmortem log。
/pitfall-record <category> <title>
$0: 分類(build / runtime / deploy / test / process)$1: 標題$ARGUMENTS: 完整描述讀取現有 postmortem log:
!cat .knowledge/postmortem-log.md 2>/dev/null | tail -20 || echo "尚無踩坑紀錄"
計算到期日:紀錄日期 + 14 天,格式為 YYYY-MM-DD。
在 .knowledge/postmortem-log.md 末尾 append:
### {日期} — $1
| 項目 | 內容 |
|------|------|
| 分類 | $0 |
| 問題 | {問題描述} |
| 原因 | {根本原因} |
| 解法 | {解決方式} |
| 預防 | {未來如何避免} |
| 狀態 | open |
| 到期日 | {日期+14天, YYYY-MM-DD 格式} |