Error Logging
npx machina-cli add skill a5c-ai/babysitter/error-logging --openclawFiles (1)
SKILL.md
1.0 KB
Error Logging
Log all errors with full context, detect patterns, and suggest approach mutations to avoid repeated failures.
Agent
Error Analyst - pwf-error-analyst
Workflow
- Log ALL errors immediately to progress.md (Rule 3)
- Include error context, stack traces, and reproduction steps
- Tag errors with severity: critical, warning, informational
- Analyze error patterns across phases and iterations
- Suggest approach mutations for known failure patterns (Rule 4)
- Track error resolution status for verification
Inputs
projectPath- Root path for planning filesphaseName- Phase where error occurrederrors- Array of error objectserrorHistory- Previous errors for pattern detection
Outputs
- Updated progress.md error section
- Approach mutations with alternative strategies
- Error resolution report for verification
Process Files
planning-orchestrator.js- Error logging during phasesplanning-execution.js- Immediate error logging, pattern analysisplanning-verification.js- Error resolution checking
Source
git clone https://github.com/a5c-ai/babysitter/blob/main/plugins/babysitter/skills/babysit/process/methodologies/planning-with-files/skills/error-logging/SKILL.mdView on GitHub Overview
Logs every failure with full context to progress.md, tags severity, analyzes cross-phase patterns, and suggests mutations to prevent repeats, while tracking resolution status for verification.
How This Skill Works
Uses dedicated planning pipelines: planning-orchestrator.js logs during phases, planning-execution.js records errors immediately with context and stack traces, and planning-verification.js checks resolution. It outputs updated progress.md entries, proposed approach mutations, and an error-resolution report to guide fixes.
When to Use It
- When a planning error occurs in any phase (orchestrator, execution, or verification).
- When errors repeat across phases or iterations, indicating a pattern.
- When you need full context—stack traces and reproduction steps—to diagnose failures.
- When you want to surface approach mutations to avoid known failure patterns.
- When you must verify error resolution and maintain a trace for auditing.
Quick Start
- Step 1: Provide inputs (projectPath, phaseName, errors, errorHistory).
- Step 2: Run the Error Logging workflow and ensure immediate logging to progress.md.
- Step 3: Review the updated error section, mutations, and the resolution report.
Best Practices
- Log every error immediately to progress.md.
- Include error context, stack traces, and reproduction steps.
- Tag each error with severity: critical, warning, or informational.
- Analyze error history to identify cross-phase patterns.
- Document and track approach mutations and error-resolution status.
Example Use Cases
- An error in planning-orchestrator.js triggers immediate logging and pattern detection.
- Repeated timeouts across iterations are surfaced as a pattern for mutation.
- A critical failure prompts an approach mutation to change strategy.
- Progress.md is updated with an error section and suggested resolutions.
- An error-resolution report confirms fixes in the next verification run.
Frequently Asked Questions
Add this skill to your agents