cfn-error-management
БесплатноБез исполняемых скриптовНе проверенUnified error handling, batching, and logging for CFN Loop. Use when you need to capture agent errors, batch multiple errors for processing, log structured…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Error Management Skill (Mega-Skill)
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
Overview
This mega-skill provides complete error management:
- Capture - Standardized error capture and categorization
- Batching - Error grouping for batch agent processing
- Logging - Error log storage and retrieval
Directory Structure
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
Quick Start
1. Capture an Error
./cli/capture-error.sh \
--agent-id "agent-123" \
--error-type "TIMEOUT" \
--message "Agent timed out after 900s" \
--context "Loop 3 implementation"
2. Batch Errors for Processing
./cli/batch-errors.sh \
--input errors.json \
--max-batch-size 5 \
--output batches.json
3. Log an Error
./cli/log-error.sh \
--task-id "task-123" \
--agent-id "agent-123" \
--error-type "VALIDATION" \
--message "Output validation failed"
Module Details
Capture Module (lib/capture/)
Purpose: Standardized error capture and categorization
Error Types:
- TIMEOUT - Agent execution timeout
- CRASH - Agent process crash
- VALIDATION - Output validation failure
- COORDINATION - Redis coordination failure
- UNKNOWN - Uncategorized errors
Features:
- Standardized error format
- Category-based recovery strategies
- Context preservation
Batching Module (lib/batching/)
Purpose: Group errors for batch agent processing
Features:
- Error clustering by file
- Wave calculation for parallel processing
- Tier-based batching (small/medium/large)
- Template-based batch configuration
Logging Module (lib/logging/)
Purpose: Error log storage and management
Features:
- Structured error logging
- Log cleanup and rotation
- Integration with CLI and Docker modes
- TypeScript implementation
Integration with CFN Loop
# 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
Migration from Individual Skills
Old Paths → New Paths
| Old Path | New Path |
|---|---|
.claude/skills/cfn-standardized-error-handling/capture-agent-error.sh |
.claude/skills/error-management/lib/capture/capture-agent-error.sh |
.claude/skills/cfn-error-batching-strategy/cli.sh |
.claude/skills/error-management/lib/batching/cli.sh |
.claude/skills/cfn-error-logging/invoke-error-logging.sh |
.claude/skills/error-management/lib/logging/invoke-error-logging.sh |
Version History
1.0.0 (2025-12-02) - Mega-Skill Creation
- Merged: cfn-standardized-error-handling, cfn-error-batching-strategy, cfn-error-logging
- Added: CLI wrappers
- Added: Unified documentation
Dependencies
- Bash: 4.0+
- jq: JSON processing
- Node.js: TypeScript logging (optional)
Установить cfn-error-management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cfn-error-management?
Unified error handling, batching, and logging for CFN Loop. Use when you need to capture agent errors, batch multiple errors for processing, log structured error data, or categorize and recover from agent failures.
Как установить скилл cfn-error-management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cfn-error-management запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic