Agent SkillsStanshy/AgentHub › pitfall-record

pitfall-record

GitHub

将踩坑经验记录到 postmortem log。支持 build/runtime/deploy/test/process 分类,自动计算14天到期日,生成结构化 Markdown 条目并追加至日志文件,同时评估是否需更新通用规范。

.knowledge/company/skill-templates/pitfall-record/SKILL.md Stanshy/AgentHub

Trigger Scenarios

用户需要记录开发或运维中的踩坑经验 用户输入 /pitfall-record 命令

Install

npx skills add Stanshy/AgentHub --skill pitfall-record -g -y
More Options

Non-standard path

npx skills add https://github.com/Stanshy/AgentHub/tree/main/.knowledge/company/skill-templates/pitfall-record -g -y

Use without installing

npx skills use Stanshy/AgentHub@pitfall-record

指定 Agent (Claude Code)

npx skills add Stanshy/AgentHub --skill pitfall-record -a claude-code -g -y

安装 repo 全部 skill

npx skills add Stanshy/AgentHub --all -g -y

预览 repo 内 skill

npx skills add Stanshy/AgentHub --list

SKILL.md

Frontmatter
{
    "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: 完整描述

執行步驟

  1. 讀取現有 postmortem log: !cat .knowledge/postmortem-log.md 2>/dev/null | tail -20 || echo "尚無踩坑紀錄"

  2. 計算到期日:紀錄日期 + 14 天,格式為 YYYY-MM-DD。

  3. .knowledge/postmortem-log.md 末尾 append:

### {日期} — $1

| 項目 | 內容 |
|------|------|
| 分類 | $0 |
| 問題 | {問題描述} |
| 原因 | {根本原因} |
| 解法 | {解決方式} |
| 預防 | {未來如何避免} |
| 狀態 | open |
| 到期日 | {日期+14天, YYYY-MM-DD 格式} |
  1. 如果涉及通用規則,建議是否需更新 CLAUDE.md 或公司規範。

Version History

  • 5300820 Current 2026-07-24 12:11

Same Skill Collection

.knowledge/company/skill-templates/dev-plan/SKILL.md
.knowledge/company/skill-templates/gate-record/SKILL.md
.knowledge/company/skill-templates/harness-audit/SKILL.md
.knowledge/company/skill-templates/knowledge-feedback/SKILL.md
.knowledge/company/skill-templates/pitfall-resolve/SKILL.md
.knowledge/company/skill-templates/pm-review/SKILL.md
.knowledge/company/skill-templates/product-diagnosis/SKILL.md
.knowledge/company/skill-templates/project-kickoff/SKILL.md
.knowledge/company/skill-templates/review/SKILL.md
.knowledge/company/skill-templates/sop-deploy/SKILL.md
.knowledge/company/skill-templates/sop-review/SKILL.md
.knowledge/company/skill-templates/sprint-close/SKILL.md
.knowledge/company/skill-templates/sprint-proposal/SKILL.md
.knowledge/company/skill-templates/sprint-retro/SKILL.md
.knowledge/company/skill-templates/task-delegation/SKILL.md
.knowledge/company/skill-templates/task-dispatch/SKILL.md
.knowledge/company/skill-templates/task-done/SKILL.md
.knowledge/company/skill-templates/task-start/SKILL.md
.knowledge/company/skill-templates/task-status/SKILL.md
.knowledge/company/skill-templates/pre-deploy/SKILL.md
.knowledge/company/skill-templates/sop-execute/SKILL.md
.knowledge/company/skill-templates/sop-plan/SKILL.md
.knowledge/company/skill-templates/spec-update/SKILL.md
.knowledge/company/skill-templates/task-approve/SKILL.md

Metadata

Files
0
Version
5300820
Hash
49607ba9
Indexed
2026-07-24 12:11

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 21:36
浙ICP备14020137号-1 $방문자$