Unified error handling, batching, and logging for CFN Loop...
Version: 1.0.0 Purpose: Unified error handling, batching, and logging Status: Production Consolidates: cfn-standardized-error-handling, cfn-error-batching-strategy, cfn-error-logging
This mega-skill provides complete error management:
error-management/
āāā SKILL.md # This file
āāā lib/
ā āāā capture/ # Error capture (from cfn-standardized-error-handling)
ā ā āāā capture-agent-error.sh # Capture agent errors
ā ā āāā README.md # Capture documentation
ā āāā batching/ # Error batching (from cfn-error-batching-strategy)
ā ā āāā cli.sh # Batching CLI
ā ā āāā analyze-errors.sh # Error analysis
ā ā āāā calculate-waves.sh # Wave calculation
ā ā āāā cluster-files.sh # File clustering
ā ā āāā create-batches.sh # Batch creation
ā ā āāā templates/ # Batch templates
ā ā āāā README.md # Batching documentation
ā āāā logging/ # Error logging (from cfn-error-logging)
ā āāā invoke-error-logging.sh # Log errors
ā āāā cleanup-error-logs.sh # Log cleanup
ā āāā src/ # TypeScript implementation
ā āāā README.md # Logging documentation
āāā cli/ # CLI wrappers
āāā capture-error.sh # ā lib/capture/capture-agent-error.sh
āāā batch-errors.sh # ā lib/batching/cli.sh
āāā log-error.sh # ā lib/logging/invoke-error-logging.sh
./cli/capture-error.sh \
--agent-id "agent-123" \
--error-type "TIMEOUT" \
--message "Agent timed out after 900s" \
--context "Loop 3 implementation"
./cli/batch-errors.sh \
--input errors.json \
--max-batch-size 5 \
--output batches.json
./cli/log-error.sh \
--task-id "task-123" \
--agent-id "agent-123" \
--error-type "VALIDATION" \
--message "Output validation failed"
Purpose: Standardized error capture and categorization
Error Types:
Features:
Purpose: Group errors for batch agent processing
Features:
Purpose: Error log storage and management
Features:
# 1. Capture error when agent fails
./cli/capture-error.sh \
--agent-id "$AGENT_ID" \
--error-type "TIMEOUT" \
--message "$ERROR_MESSAGE"
# 2. Log the error
./cli/log-error.sh \
--task-id "$TASK_ID" \
--agent-id "$AGENT_ID" \
--error-type "TIMEOUT"
# 3. Batch multiple errors for batch processing
./cli/batch-errors.sh --input collected-errors.json
| Old Path | New Path |
|---|---|
.claude/skills/cfn-standardized-error-handling/capture-agent-error.sh |
.claude/skills/cfn-error-management/lib/capture/capture-agent-error.sh |
.claude/skills/cfn-error-batching-strategy/cli.sh |
.claude/skills/cfn-error-management/lib/batching/cli.sh |
.claude/skills/cfn-error-logging/invoke-error-logging.sh |
.claude/skills/cfn-error-management/lib/logging/invoke-error-logging.sh |