cfn-agent-lifecycle
БесплатноБез исполняемых скриптовНе проверенUnified agent management from selection through completion - spawning, execution, output processing. Use when selecting agents for tasks, spawning agents with…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Agent Lifecycle Management Skill (Mega-Skill)
Version: 2.0.0 Purpose: Unified agent management from selection through completion Status: Production Consolidates: cfn-agent-selector, cfn-agent-selection-with-fallback, cfn-agent-spawning, cfn-agent-output-processing, cfn-agent-execution
Overview
This mega-skill provides complete agent lifecycle management:
- Selection - Task classification and agent selection with fallback
- Spawning - Agent deployment with dependency validation
- Output - Structured output parsing and validation
- Audit - SQLite lifecycle tracking for audit trails
Directory Structure
agent-lifecycle/
├── SKILL.md # This file
├── lib/
│ ├── selection/ # Agent selection (from cfn-agent-selector + cfn-agent-selection-with-fallback)
│ │ ├── select-agents.sh # Basic agent selection
│ │ ├── select-agents-with-fallback.sh # Enhanced with fallback (recommended)
│ │ ├── task-classifier.sh # Task classification
│ │ ├── agent-mappings.json # Agent category mappings
│ │ ├── src/ # TypeScript implementation
│ │ │ ├── agent-selector.ts
│ │ │ ├── cli.ts
│ │ │ └── agent-selector.test.ts
│ │ └── dist/ # Compiled TypeScript
│ │ ├── agent-selector.cjs
│ │ └── cli.cjs
│ ├── spawning/ # Agent spawning (from cfn-agent-spawning + cfn-agent-execution)
│ │ ├── spawn-agent.sh # Main spawning script
│ │ ├── spawn-worker.sh # Worker spawning
│ │ ├── spawn-templates.sh # Template management
│ │ ├── spawn-agent-wrapper.sh # Wrapper with error handling
│ │ ├── execute-agent.sh # Agent execution
│ │ ├── check-dependencies.sh # Dependency validation
│ │ ├── parse-agent-provider.sh # Provider parsing
│ │ └── get-agent-provider-env.sh # Provider env setup
│ ├── output/ # Output processing (from cfn-agent-output-processing)
│ │ └── README.md # Output processing documentation
│ └── audit/ # Audit trail (original agent-lifecycle)
│ ├── execute-lifecycle-hook.sh # SQLite lifecycle hooks
│ └── simple-audit.sh # Simple audit script
└── cli/ # CLI wrappers for convenience
├── select-agents.sh # → lib/selection/select-agents-with-fallback.sh
├── spawn-agent.sh # → lib/spawning/spawn-agent.sh
└── lifecycle-hook.sh # → lib/audit/execute-lifecycle-hook.sh
Quick Start
1. Select Agents for a Task
# Recommended: Use fallback-enabled selection
./.claude/skills/agent-lifecycle/cli/select-agents.sh "Implement JWT authentication"
# Output (JSON):
# {
# "loop3": ["backend-developer", "security-specialist"],
# "loop2": ["code-reviewer", "tester", "security-specialist"],
# "product_owner": "product-owner",
# "category": "backend-api",
# "confidence": 0.92
# }
2. Spawn Agents
./.claude/skills/agent-lifecycle/cli/spawn-agent.sh \
--task "Implement user authentication" \
--agents coder,security-specialist,tester \
--agent-id coordinator-1
3. Track Lifecycle Events
# Register agent spawn
./.claude/skills/agent-lifecycle/cli/lifecycle-hook.sh spawn \
--agent-id "${AGENT_ID}" \
--agent-type "${AGENT_TYPE}" \
--acl-level 1
# Update confidence
./.claude/skills/agent-lifecycle/cli/lifecycle-hook.sh update \
--agent-id "${AGENT_ID}" \
--confidence 0.85
# Mark completion
./.claude/skills/agent-lifecycle/cli/lifecycle-hook.sh complete \
--agent-id "${AGENT_ID}" \
--confidence 0.90
Module Details
Selection Module (lib/selection/)
Purpose: Task classification and agent selection
Features:
- Task classification into 9 categories
- Agent selection for Loop 3 (implementers) and Loop 2 (validators)
- Guaranteed non-empty agent arrays (fallback behavior)
- Agent validation against available profiles
- TypeScript implementation for type safety
Task Categories:
| Category | Loop 3 Agents | Loop 2 Agents |
|---|---|---|
| backend-api | backend-developer, api-gateway-specialist | code-reviewer, tester, api-testing-specialist |
| fullstack | backend-developer, react-frontend-engineer | code-reviewer, tester, integration-tester |
| mobile | mobile-dev, backend-developer | code-reviewer, tester, interaction-tester |
| infrastructure | devops-engineer, docker-specialist | code-reviewer, tester, chaos-engineering-specialist |
| security | security-specialist, backend-developer | code-reviewer, tester, security-specialist |
| frontend | react-frontend-engineer, typescript-specialist | code-reviewer, tester, playwright-tester |
| database | database-architect, backend-developer | code-reviewer, tester, data-engineer |
| performan |
Установить cfn-agent-lifecycle в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cfn-agent-lifecycle?
Unified agent management from selection through completion - spawning, execution, output processing. Use when selecting agents for tasks, spawning agents with dependency validation, processing agent outputs, or tracking agent lifecycle events with audit trails.
Как установить скилл cfn-agent-lifecycle?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cfn-agent-lifecycle запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic