Skip to content
Back to skills

Pitfall Record

ASecurity

Record a pitfall or lesson learned in the postmortem log

  • 200 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 30, 2026
developmentgo

Security analysis

A100/100

Scanned May 30, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Pitfall Record?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pitfall Record
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/stanshy-pitfall-record/badge)](https://www.skillsdirectory.com/skills/stanshy-pitfall-record)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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:

```markdown
### {日期} — $1

| 項目 | 內容 |
|------|------|
| 分類 | $0 |
| 問題 | {問題描述} |
| 原因 | {根本原因} |
| 解法 | {解決方式} |
| 預防 | {未來如何避免} |
| 狀態 | open |
| 到期日 | {日期+14天, YYYY-MM-DD 格式} |
```

4. 如果涉及通用規則,建議是否需更新 CLAUDE.md 或公司規範。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.