Structured logging and analysis of execution failures to prevent recurrence.
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.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer