Back to list
Sounder25

failure-postmortem

by Sounder25

Operational capabilities for high-leverage AI coding agents. Features deterministic execution, 100% tested safety gates, impasse detection, and adversarial review. Includes 'Gold Standard' meta-skills like Pre-Action Guard and Failure Postmortem to prevent loops and data loss.

8🍴 3📅 Jan 23, 2026

SKILL.md


name: Failure Postmortem description: Structured logging and analysis of execution failures to prevent recurrence. version: 1.0.0 author: Antigravity Skills Library created: 2026-01-16 leverage_score: 5/5

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 failure
  • postmortem
  • why did this fail
  • record error

Inputs

ParameterTypeRequiredDefaultDescription
--CommandstringYes-The command or action that failed
--ErrorstringYes-The error message or exception trace
--ContextstringNoGeneralWhat was the agent trying to do?

Outputs

1. Log Entry

Appends to .gemini/antigravity/.forensics/POSTMORTEMS.md:

## [2026-01-16 10:00:00] Failure Analysis
**Context:** Deployment
**Command:** `npm build`
**Error:** `Heap out of memory`

### 🕵️ Analysis
1. **Root Cause:** Node processes default to 512MB RAM.
2. **Preventive Rule:** Always set NODE_OPTIONS="--max-old-space-size=4096" for builds.

Preconditions

  1. .forensics directory exists (auto-created).
  2. PowerShell 5.1+ or Core 7+.

Safety/QA Checks

  1. Persist: Ensures the log file is always writable.
  2. No Data Loss: Appends only, never overwrites previous logs.

Stop Conditions

ConditionAction
Disk FullFail gracefully (stdout only)

Implementation

See scripts/log_failure.ps1.

Integration with Other Skills

  1. Agent Catch Block: On exception -> Call log_failure.ps1.
  2. Agent Step: Read the output path.
  3. Agent Step: "Thinking" block -> Fill in the "Analysis" section mentally or in next turn.

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon