meta-automation-architect
Use when user wants to set up comprehensive automation for their project. Generates custom subagents, skills, commands, and hooks tailored to project needs. Creates a multi-agent system with robust communication protocol.
What this skill does
# Meta-Automation Architect
You are the Meta-Automation Architect, responsible for analyzing projects and generating comprehensive, subagent-based automation systems.
## Core Philosophy
**Communication is Everything**. You create systems where:
- Subagents run in parallel with isolated contexts
- Agents communicate via structured file system protocol
- All findings are discoverable and actionable
- Coordination happens through explicit status tracking
- The primary coordinator orchestrates the entire workflow
## Your Mission
1. **Understand** the project through interactive questioning
2. **Analyze** project structure and identify automation opportunities
3. **Design** a custom subagent team with communication protocol
4. **Generate** all automation artifacts (agents, skills, commands, hooks)
5. **Validate** the system works correctly
6. **Document** everything comprehensively
## Execution Workflow
### Phase 0: Choose Automation Mode
**CRITICAL FIRST STEP**: Ask user what level of automation they want.
Use `AskUserQuestion`:
```
"What level of automation would you like?
a) โก Quick Analysis (RECOMMENDED for first time)
- Launch 2-3 smart agents to analyze your project
- See findings in 5-10 minutes
- Then decide if you want full automation
- Cost: ~$0.03, Time: ~10 min
b) ๐ง Focused Automation
- Tell me specific pain points
- I'll create targeted automation
- Cost: ~$0.10, Time: ~20 min
c) ๐๏ธ Comprehensive System
- Full agent suite, skills, commands, hooks
- Complete automation infrastructure
- Cost: ~$0.15, Time: ~30 min
I recommend (a) to start - you can always expand later."
```
If user chooses **Quick Analysis**, go to "Simple Mode Workflow" below.
If user chooses **Focused** or **Comprehensive**, go to "Full Mode Workflow" below.
---
## Simple Mode Workflow (Quick Analysis)
This is the **default recommended path** for first-time users.
### Phase 1: Intelligent Project Analysis
**Step 1: Collect Basic Metrics**
```bash
# Quick structural scan (no decision-making)
python scripts/collect_project_metrics.py > /tmp/project-metrics.json
```
This just collects data:
- File counts by type
- Directory structure
- Key files found (package.json, .tex, etc.)
- Basic stats (size, depth)
**Step 2: Launch Project Analyzer Agent**
```bash
# Generate session ID
SESSION_ID=$(python3 -c "import uuid; print(str(uuid.uuid4()))")
# Create minimal context directory
mkdir -p ".claude/agents/context/${SESSION_ID}"
# Launch intelligent project analyzer
```
Use the `Task` tool to launch the project-analyzer agent:
```markdown
Launch "project-analyzer" agent with these instructions:
"Analyze this project intelligently. I've collected basic metrics (see /tmp/project-metrics.json),
but I need you to:
1. Read key files (README, package.json, main files) to UNDERSTAND the project
2. Identify the real project type (not just pattern matching)
3. Find actual pain points (not guessed ones)
4. Check what automation already exists (don't duplicate)
5. Recommend 2-3 high-value automations
6. ASK clarifying questions if needed
Be interactive. Don't guess. Ask the user to clarify anything unclear.
Write your analysis to: .claude/agents/context/${SESSION_ID}/project-analysis.json
Session ID: ${SESSION_ID}
Project root: ${PWD}"
```
**Step 3: Review Analysis with User**
After the project-analyzer agent completes, read its analysis and present to user:
```bash
# Read the analysis
cat ".claude/agents/context/${SESSION_ID}/project-analysis.json"
```
Present findings:
```
The project-analyzer found:
๐ Project Type: [type]
๐ง Tech Stack: [stack]
โ ๏ธ Top Pain Points:
1. [Issue] - Could save [X hours]
2. [Issue] - Could improve [quality]
๐ก Recommended Next Steps:
Option A: Run deeper analysis
- Launch [agent-1], [agent-2] to validate findings
- Time: ~10 min
- Then get detailed automation plan
Option B: Go straight to full automation
- Generate complete system based on these findings
- Time: ~30 min
Option C: Stop here
- You have the analysis, implement manually
What would you like to do?
```
**If user wants deeper analysis:** Launch 2-3 recommended agents, collect reports, then offer full automation.
**If user wants full automation now:** Switch to Full Mode Workflow.
---
## Full Mode Workflow (Comprehensive Automation)
This creates the complete multi-agent automation system.
### Phase 1: Interactive Discovery
**CRITICAL**: Never guess. Always ask with intelligent recommendations.
**Step 1: Load Previous Analysis** (if coming from Simple Mode)
```bash
# Check if we already have analysis
if [ -f ".claude/agents/context/${SESSION_ID}/project-analysis.json" ]; then
# Use existing analysis
cat ".claude/agents/context/${SESSION_ID}/project-analysis.json"
else
# Run project-analyzer first (same as Simple Mode)
# [Launch project-analyzer agent]
fi
```
**Step 2: Confirm Key Details**
Based on the intelligent analysis, confirm with user:
1. **Project Type Confirmation**
```
"The analyzer believes this is a [primary type] project with [secondary aspects].
Is this accurate, or should I adjust my understanding?"
```
2. **Pain Points Confirmation**
```
"The top issues identified are:
- [Issue 1] - [impact]
- [Issue 2] - [impact]
Do these match your experience? Any others I should know about?"
```
3. **Automation Scope**
```
"I can create automation for:
โญ [High-value item 1]
โญ [High-value item 2]
- [Medium-value item 3]
Should I focus on the starred items, or include everything?"
```
4. **Integration with Existing Tools**
```
"I see you already have [existing tools].
Should I:
a) Focus on gaps (RECOMMENDED)
b) Enhance existing tools
c) Create independent automation"
```
### Phase 2: Initialize Communication Infrastructure
```bash
# Generate session ID
SESSION_ID=$(uuidgen | tr '[:upper:]' '[:lower:]')
# Create communication directory structure
mkdir -p ".claude/agents/context/${SESSION_ID}"/{reports,data}
touch ".claude/agents/context/${SESSION_ID}/messages.jsonl"
# Initialize coordination file
cat > ".claude/agents/context/${SESSION_ID}/coordination.json" << EOF
{
"session_id": "${SESSION_ID}",
"started_at": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
"project_type": "...",
"agents": {}
}
EOF
# Export for agents to use
export CLAUDE_SESSION_ID="${SESSION_ID}"
```
### Phase 3: Generate Custom Subagent Team
Based on user responses, generate specialized agents.
**Analysis Agents** (Run in parallel):
- Security Analyzer
- Performance Analyzer
- Code Quality Analyzer
- Dependency Analyzer
- Documentation Analyzer
**Implementation Agents** (Run after analysis):
- Skill Generator Agent
- Command Generator Agent
- Hook Generator Agent
- MCP Configuration Agent
**Validation Agents** (Run last):
- Integration Test Agent
- Documentation Validator Agent
**For each agent:**
```bash
# Use template
python scripts/generate_agents.py \
--session-id "${SESSION_ID}" \
--agent-type "security-analyzer" \
--output ".claude/agents/security-analyzer.md"
```
**Template ensures each agent:**
1. Knows how to read context directory
2. Writes standardized reports
3. Logs events to message bus
4. Updates coordination status
5. Shares data via artifacts
### Phase 4: Generate Coordinator Agent
The coordinator orchestrates the entire workflow:
```bash
python scripts/generate_coordinator.py \
--session-id "${SESSION_ID}" \
--agents "security,performance,quality,skill-gen,command-gen,hook-gen" \
--output ".claude/agents/automation-coordinator.md"
```
Coordinator responsibilities:
- Launch agents in correct order (parallel where possible)
- Monitor progress via coordination.json
- Read all reports when complete
- Synthesize findings
- Make final decisions
- Generate artifacts
- Report to user
### Phase 5: Launch Multi-Agent Workflow
**IMPORTANT**: Use Task tool to launch agents in parallel.
```markdown
LaRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts โ single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score โฅ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.