Agent skill

Pitfall Record

by Stanshy in Stanshy/AgentHub

Record a pitfall or lesson learned in the postmortem log. An agent skill from Stanshy/AgentHub.

MITAuto-check passedDevOps & Cloud

Install Pitfall Record

skills CLI
$ npx skills add Stanshy/AgentHub --skill pitfall-record -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Stanshy/AgentHub pitfall-record --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Stanshy/AgentHub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.knowledge/company/skill-templates/pitfall-record .claude/skills/pitfall-record && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pitfall-record
GitHub stars
202
Token cost
~183 tokens
SKILL.md length
42 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Record a pitfall or lesson learned in the postmortem log. An agent skill from Stanshy/AgentHub.

  • Works in 3 steps: 計算到期日:紀錄日期 + 14 天,格式為 YYYY-MM-DD。 → 在 .knowledge/postmortem-log.md 末尾 append → 如果涉及通用規則,建議是否需更新 CLAUDE.md 或公司規範。
  • Tasks that involve Runbooks and postmortems
  • SKILL.md covers 使用方式, 參數 and 執行步驟
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Pitfall Record is an agent skill from Stanshy/AgentHub. Record a pitfall or lesson learned in the postmortem log

Its SKILL.md is about 180 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Runbooks and postmortems and Skill authoring. The repository describes itself as: One person, one software company. Manage 47 AI agents from a single Electron app — with Harness Engineering (Skills + Hooks + FileWatchers) for disciplined, traceable AI workflows. The licence is MIT.

When your agent uses it

  • Tasks that involve Runbooks and postmortems
  • Tasks that involve Skill authoring

Example prompts

  • “/pitfall-record”

Requirements

  • Pre-approved tools (allowed-tools): Read, Edit, Glob

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 計算到期日:紀錄日期 + 14 天,格式為 YYYY-MM-DD。
  2. 在 .knowledge/postmortem-log.md 末尾 append
  3. 如果涉及通用規則,建議是否需更新 CLAUDE.md 或公司規範。

What it can do on your machine

Read from SKILL.md and the folder at commit 5300820. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Edit
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pitfall Record loads about 183 tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 42 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~18
When it runs · the whole SKILL.md, loaded when a task matches
~183

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Stanshy/AgentHub at commit 5300820, republished under its MIT licence (© Stanshy). 42 words, ~183 tokens.

Download SKILL.mdSave it as .claude/skills/pitfall-record/SKILL.md (or your agent's skills folder).
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 格式} |
  1. 如果涉及通用規則,建議是否需更新 CLAUDE.md 或公司規範。

© Stanshy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

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

Open the folder on GitHubat commit 5300820

Compare with similar skills

Pitfall Record next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pitfall Record compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pitfall Record this skillStanshy/AgentHub202—~183Automated safety check: PassMIT
Trader Memory Coretradermonty/claude-trading-skills3k3 repos~4.3kAutomated safety check: PassMIT
OpenRig Upgrade Proceduremvschwarz/openrig5.9k1 repos~2.9kAutomated safety check: PassApache-2.0
Author Migrationnrwl/nx29k—~12kAutomated safety check: NotesMIT
Write Notes Like Deepseekczm15053/write-notes-like-deepseek484—~2kAutomated safety check: PassNone
GreptimeDB Release RunbookGreptimeTeam/greptimedb6.7k—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Trader Memory Core

    tradermonty/claude-trading-skills

    Track investment theses across their lifecycle — from screening idea to closed position with postmortem.

    3k GitHub starsUsed in 3 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • OpenRig Upgrade Procedure

    mvschwarz/openrig

    Walks an agent through upgrading the OpenRig CLI and daemon one observed step at a time, keeping live seats alive and reconciling managed plugin files.

    5.9k GitHub starsUsed in 1 repo~2.9k tokens
    DevOps & CloudAuto-check passed
  • Author or scope a first-party Nx migration. An agent skill from nrwl/nx.

    29k GitHub stars~12k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Write Notes Like Deepseek

    czm15053/write-notes-like-deepseek

    A skill your agent uses when a change is non-trivial by DSH standards (behavior, architecture, cross-file contracts, process/tooling, testing strategy, or on-disk/wire/config formats), when choosing…

    484 GitHub stars~2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • GreptimeDB Release Runbook

    GreptimeTeam/greptimedb

    Runbook for publishing a GreptimeDB version: pick the release branch, verify the Cargo version, then tag, create the GitHub release and open the docs note PR.

    6.7k GitHub stars~1.4k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Statem

    henryqin1997/statem

    A skill your agent uses when a long coding or research task should be managed with statem state-machine runbooks, including creating specs, starting or resuming runs, checking current state…

    1.3k GitHub stars~1.2k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed

More from Stanshy/AgentHub

All 23 skills in this repo
  • Dev Plan

    Stanshy/AgentHub

    Generate a development plan with task breakdown and section 10 tracking tables

    202 GitHub stars~686 tokensUpdated 6 mo ago
    Auto-check: notes
  • Knowledge Feedback

    Stanshy/AgentHub

    Scan child projects for pitfalls and propose company standard updates

    202 GitHub stars~549 tokensUpdated 6 mo ago
    Auto-check: notes
  • Product Diagnosis

    Stanshy/AgentHub

    Six-question diagnostic framework for G0 pre-check — validate product direction before development starts

    202 GitHub stars~690 tokensUpdated 6 mo ago
    Auto-check passed
  • Project Kickoff

    Stanshy/AgentHub

    Initialize new project with CLAUDE.md, .knowledge/ structure, company rules, and git

    202 GitHub stars~528 tokensUpdated 6 mo ago
    Auto-check: notes
  • Review

    Stanshy/AgentHub

    L1 internal review with auto-detection, design comparison, and Gate escalation path

    202 GitHub stars~854 tokensUpdated 6 mo ago
    Auto-check: notes
  • Sop Plan

    Stanshy/AgentHub

    L1 計畫模式 SOP — 強制上下文載入 + Plan Mode 評估 + 任務拆解. An agent skill from Stanshy/AgentHub.

    202 GitHub stars~437 tokensUpdated 6 mo ago
    Auto-check: notes

Categories

Questions about Pitfall Record

What does Pitfall Record do?

Record a pitfall or lesson learned in the postmortem log. An agent skill from Stanshy/AgentHub. Pitfall Record is an agent skill from Stanshy/AgentHub.

When should I use Pitfall Record?

Pitfall Record fits situations like: tasks that involve Runbooks and postmortems; tasks that involve Skill authoring.

How do I install Pitfall Record in Claude Code?

Run `npx skills add Stanshy/AgentHub --skill pitfall-record -a claude-code`. Or copy the skill folder (.knowledge/company/skill-templates/pitfall-record in Stanshy/AgentHub) into .claude/skills/pitfall-record in your project. Claude Code loads it when a task matches its description.

How do I install Pitfall Record in Codex?

Run `npx skills add Stanshy/AgentHub --skill pitfall-record -a codex`. Or copy the skill folder (.knowledge/company/skill-templates/pitfall-record in Stanshy/AgentHub) into .agents/skills/pitfall-record in your project. Codex loads it when a task matches its description.

Can I use Pitfall Record in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Stanshy/AgentHub --skill pitfall-record -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pitfall-record, .gemini/skills/pitfall-record, .github/skills/pitfall-record and .opencode/skills/pitfall-record in your project.

What does Pitfall Record need to run?

SKILL.md names no scripts, command-line tools or credentials: Pitfall Record is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Edit, Glob.

Does Pitfall Record access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pitfall Record safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pitfall Record use?

Pitfall Record is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pitfall Record use?

About 183 tokens (SKILL.md is roughly 732 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pitfall Record?

Skills that share tags, products or a category with Pitfall Record: Trader Memory Core (tradermonty/claude-trading-skills, 3k stars), OpenRig Upgrade Procedure (mvschwarz/openrig, 5.9k stars), Author Migration (nrwl/nx, 29k stars) and Write Notes Like Deepseek (czm15053/write-notes-like-deepseek, 484 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pitfall Record?

Stanshy (a GitHub user) maintains it in Stanshy/AgentHub, which has 202 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on April 9, 2026.

Source: Stanshy/AgentHub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.