sounder25/foundational-agent-skills/20-failure-postmortem
Claude Code and agent skill by sounder25/foundational-agent-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Structured logging and analysis of execution failures to prevent recurrence.
Install
npx vskill@latest install sounder25/foundational-agent-skills/20-failure-postmortemSKILL.md
SKILL-020: Failure Postmortem
Overview
Systematically captures failure data. When a tool fails or a plan is abandoned, this skill logs the event to a persistent registry (POSTMORTEMS.md), forcing an synchronous analysis of why it happened (Root Cause) and how to prevent it (Preventive Rule).
Trigger Phrases
log failurepostmortemwhy did this failrecord error
Inputs
| Parameter | Type | Required | Default | Description | |
|---|---|---|---|---|---|
--Command | string | Yes | - | The command or action that failed | |
--Error | string | Yes | - | The error message or exception trace | |
--Context | string | No | General | What was the agent trying to do? |
Outputs
1. Log Entry
Appends to .gemini/antigravity/.forensics/POSTMORTEMS.md:
Preconditions
.forensicsdirectory exists (auto-created).- PowerShell 5.1+ or Core 7+.
Safety/QA Checks
- Persist: Ensures the log file is always writable.
- No Data Loss: Appends only, never overwrites previous logs.
Stop Conditions
| Condition | Action | |
|---|---|---|
| Disk Full | Fail gracefully (stdout only) |
Implementation
See scripts/log_failure.ps1.
Integration with Other Skills
- Agent Catch Block: On exception -> Call
log_failure.ps1. - Agent Step: Read the output path.
- Agent Step: "Thinking" block -> Fill in the "Analysis" section mentally or in next turn.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking20_failure_postmortem/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sounder25/foundational-agent-skills/20-failure-postmortem)