원클릭으로
failure-postmortem
Structured logging and analysis of execution failures to prevent recurrence.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Structured logging and analysis of execution failures to prevent recurrence.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
A QA gate that validates potentially destructive or irreversible actions before execution.
Detect and prevent state-visibility violations across execution contexts within a single transaction.
Convert mixed terminal output and instructions into safe, paste-ready command blocks.
Prepares isolated sub-workspaces for parallel agent execution. Copies context and generates specific mission instructions for "Worker" agents.
Detects when the agent is stuck in a reasoning loop or unproductive state by analyzing tool usage and sentiment patterns.
Generates a 'Red Team' critique of recent code or plans to identify weak assumptions and edge cases.
SOC 직업 분류 기준
| 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-16T00:00:00.000Z" |
| leverage_score | 5/5 |
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).
log failurepostmortemwhy did this failrecord error| 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? |
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.
.forensics directory exists (auto-created).| Condition | Action |
|---|---|
| Disk Full | Fail gracefully (stdout only) |
See scripts/log_failure.ps1.
log_failure.ps1.