arcanum
Advanced debugging, code review, deep research, technical documentation, creative ideation, and semi-autonomous development workflows with p
Open source Open in the app JSON README (API)
About
Advanced debugging, code review, deep research, technical documentation, creative ideation, and semi-autonomous development workflows with parallel theory validation, team-based research, war room investigation, root cause analysis, PR review assistance, elite technical writing, and Maestro development pipeline
Details
- Kind
- Plugins
- Topic
- Developer tools
- Publisher
- burnsbert
- Origin
- marketplace
- Category
- ferramentas
- Stars
- 1
- Last push
- 2026-04-15T03:55:19Z
- Repository state
- ativo
- Language
- TypeScript
- License
- MIT
- Added
- 2026-08-30 01:48:58
- Updated
- 2026-08-30 01:48:58
- Origin id
burnsbert/claude-arcanum/arcanum
README
# Claude Arcanum
I've been writing some articles and a lot of training docs lately for Claude Code, but I've decided to apply my talents to an open source library. This will serve as both a practical resource and as a model implementation for what's possible in Claude Code. You'll also notice that this is implemented as a plugin for easy installation, which is an underappreciated recently added feature to Claude Code.
This library contains a powerful core of functionality to supercharge your Claude Code experience. I've figured out some very effective ways to create very powerful workflows by integrating custom commands with agents, sometimes multiple agents, hyperspecialized for different tasks.
This is a collection of powerful custom commands and agents for Claude Code that enhance common developer tasks like troubleshooting tough problems, giving and receiving code reviews over github, deep research of difficult technical questions, and root cause analysis.
**๐ฆ [Installation Instructions](INSTALL.md)** | **๐ Documentation Below**
## Overview
Claude Arcanum provides a comprehensive toolkit for Claude Code to supercharge development tasks.
### Features
**Agent-Powered Custom Commands**
- **arc-investigate** - This is the bunker buster missile for intractable problems. It burns a ton of tokens but can help get Claude Code unstuck.
- **arc-llm** - Generate prompts for external LLM consultation on the current issue. "Phone a friend"
- **arc-rca** - Root cause analysis with git forensics of the bug you just fixed or are fixing. Git blame is for amateurs.
**Agents** (Specialized intelligence engines)
- **arc-root-cause-analyzer** - Root cause analysis for bugs.
- **arc-deep-research** - Deep research that prioritizes completeness and correctness over speed and token efficiency. This is not for asking what the capital of Delaware is. This is for tricky questions that simpler research agents might bounce off of.
- **arc-technical-writer** - Elite technical documentation specialist for creating, checking, and modifying technical docs. Excels at researching codebases and writing clear, accurate documentation with proper verification passes.
- **arc-code-reviewer** - Standalone code review agent. Reviews a GitHub PR or local branch diff and produces a prose review with self-validation. Used by the vet workflow and also available for direct invocation.
**Team-Based Workflows** (Agent teams with dynamic parallel investigation)
- **arc-research-team** - Parallel deep research using a team of 3 researcher agents investigating independent threads simultaneously, with a dedicated synthesizer producing a cohesive final report. For complex, multi-faceted questions that benefit from breadth-first parallel investigation.
- **arc-war-room** - Team-based parallel investigation for intractable bugs. Brainstorms theories, dispatches investigators in parallel, dynamically spawns new investigators when promising leads are discovered mid-investigation. The heavy artillery when arc-investigate isn't enough.
**Creative Ideation** (Multi-round idea generation and ranking)
- **arc-think-tank** - Creative ideation workflow that generates, critiques, evolves, and ranks ideas toward a goal. 5 rounds of thinking (Opus+ultrathink), vetting (Sonnet), and riffing (Opus) โ each round with randomly assigned personalities that change how agents reason, evaluate, and evolve ideas. Final judge (Opus, personality-neutral) produces a ranked report. 17 serial agent calls, comparable to arc-war-room in scope.
**Semi-Autonomous Development** (Story-to-PR pipeline)
- **arc-maestro** - 10-phase pipeline from story to implementation. Researches codebase, creates plan, implements tasks with specialist routing, validates each task. Handles Jira tickets or local story files.
- **arc-maestro-review** - Code review and PR creation. Two-pass review with enhanced bug-finding, fixes bugs with regression tests, creates PR.
**Skills** (Self-contained workflows with scripts and references)
- **arc-pr-review** - Comprehensive validated code reviews on GitHub PRs. Give yourself a code review or run it on a PR you are code reviewing for a code review sidekick.
- **arc-pr-respond** - Helps you respond to a code review you have received on GitHub. Makes next steps easy with recommendations and being queued up to give Claude Code instructions for making requested adjustments to your code quickly.
- **vet** - Quick quality check on your recent work. Auto-selects an agent (code reviewer or technical writer) based on what you changed, runs a review, filters out noise, and gives you actionable recommendations. Run `/vet-apply` to implement them.
- **vet-wf** - Specialized for vetting Claude Code workflows (skills, agents, orchestrators). Runs two agents in parallel โ a technical writer for documentation/logic quality and a code reviewer for implementation correctness.
- **rubber-duck** - A trusted peer developer for talking through technical ideas, designs, and plans. Follows a structured conversation flow: listen and understand, explore together, strengthen the idea, and summarize. Asks one question at a time, uses codebase research to verify claims, and gives honest feedback without being a rubber stamp or a blocker.
**Package Manager** (Electron app)
- **`/pm`** - Launch the Arcanum Package Manager to install, update, and manage workflows, commands, skills, and agents. Provides a visual interface for managing what's installed to `~/.claude/`.
### Architecture
Note: everything a user is meant to call has the arc- preface. Commands and agents with ca- are utility resources that the arc- commands and agents call, but aren't designed for direct use by the user.
```
Skills (Self-contained) Agents (Internal)
โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโ
/arc-pr-review โโโโโโโโโโโโโถ ca-pr-review-pass1 + ca-code-review-validator
/arc-pr-respond โโโโโโโโโโโโถ ca-pr-respond-pass1 + ca-code-review-validator
/vet โโโโโโโโโโโโโโโโโโโโโโโถ arc-code-reviewer OR arc-technical-writer (auto-selected)
/vet-wf โโโโโโโโโโโโโโโโโโโโถ arc-technical-writer + arc-code-reviewer (parallel)
/vet-apply โโโโโโโโโโโโโโโโโถ (applies recommendations from /vet or /vet-wf)
Agent-Powered Commands Agents (Internal)
โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโ
/arc-investigate โโโโโโโโโโโถ ca-store-problem-context (utility)
โ ca-brainstormer
โโโโโโโโโโโโถ ca-problem-theory-validator (ร5-6 parallel)
/arc-rca โโโโโโโโโโโโโโโโโโโถ arc-root-cause-analyzer
/arc-llm โโโโโโโโโโโโโโโโโโโถ ca-store-problem-context (utility)
+ direct file reading
/arc-research-team โโโโโโโโโถ ca-research-agent (ร3 parallel, team)
โโโโโโโโโโโโถ ca-research-synthesizer (team)
/arc-war-room โโโโโโโโโโโโโถ ca-store-problem-context (utility)
โ ca-brainstormer (ultrathink)
โโโโโโโโโโโโถ ca-war-room-investigator (ร3-5 dynamic, team)
/arc-think-tank โโโโโโโโโโโถ ca-think-tank-thinker (ร5 serial, ultrathink)
โ ca-think-tank-vetter (ร6 serial)
โ ca-think-tank-riffer (ร5 serial)
โโโโโโโโโโโโถ ca-think-tank-judge (final report)
/arc-maestro โโโโโโโโโโโโโถ ca-maestro-scout (Opus)
โ ca-maestro-planner (Sonnet)
โ ca-maestro-plan-reviewer (Sonnet)
โ ca-maestro-junior-dev-doer (Haiku)
โ ca-maestro-dev-doer (Sonnet)
โ ca-maestro-senior-dev-doer (Opus)
โ ca-maestro-frontend-dev-doer (Sonnet)
โ ca-maestro-devops-dev-doer (Sonnet)
โ ca-maestro-task-validator (Haiku, diff 4-6)
โ ca-maestro-senior-task-validator (Sonnet, diff 7+)
โ ca-maestro-batch-validator (Haiku, diff 1-3)
โโโโโโโโโโโโถ ca-maestro-ui-validator (Sonnet)
/arc-maestro-review โโโโโโถ ca-maestro-code-review
โโโโโโโโโโโโถ ca-maestro-code-review-responder
User-Invokable Agents Use Cases
โโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
arc-root-cause-analyzer โโโถ Forensic bug analysis
arc-deep-research โโโโโโโโโโโโถ Deep research (four-step methodology)
arc-technical-writer โโโโโโโโโถ Technical documentation creation
arc-code-reviewer โโโโโโโโโโโโถ Standalone code review with self-validation
```
## Quick Start
**Need to implement a story?**
```
/arc-maestro JIRA-123
/arc-maestro ./stories/my-story.md
```
Researches, plans, implements, and validates. Review with `/arc-maestro-review`.
**Stuck on a bug?**
```
/arc-investigate
```
Gets theories, validates them, and gives you ranked next steps.
**Stuck on a *really* tough bug?**
```
/arc-war-room
```
Like arc-investigate but with a persistent team that chases new leads as they emerge during investigation.
**Just fixed a bug?**
```
/arc-rca
```
Understand how it was introduced and how to prevent similar issues.
**Need external help?**
```
/arc-llm
```
Generate a comprehensive prompt for ChatGPT, Gemini, or other LLMs.
**Reviewing a pull request?**
```
/arc-pr-review https://github.com/owner/repo/pull/123
```
Need a code review sidekick? Run this to get a comprehensive three-pass validated code review, and Claude Code all up to speed to be able to answer questions.
**Responding to PR feedback?**
```
/arc-pr-respond https://github.com/owner/repo/pull/123
```
Get validated analysis and prioritized response plan. Claude Code's context will be up to speed and ready to fix those nitpicks (and larger issues).
**Want a quick quality check on your recent work?**
```
/vet
```
Auto-selects a reviewer agent, filters the noise, and gives you actionable recommendations. Run `/vet-apply` to implement them.
**Just built a new skill or workflow?**
```
/vet-wf
```
Two agents in parallel โ one reviews documentation and logic, the other reviews implementation. Synthesized into filtered recommendations.
**Complex research question with multiple facets?**
```
/arc-research-team How does auth work across the frontend, API, and database layers?
```
Decomposes your question into independent threads, dispatches 3 parallel researchers, and synthesizes a cohesive report.
**Need creative ideas for a goal or problem?**
```
/arc-think-tank How can we reduce customer churn for our SaaS product? ./data/churn-analysis.csv
```
5 rounds of ideation, critique, and evolution โ produces a ranked top-5 report with scores, risks, and next steps.
## Structure
```
claude-arcanum/
โโโ commands/ # Custom slash commands for Claude Code
โ โโโ arc-investigate.md
โ โโโ arc-rca.md
โ โโโ arc-llm.md
โ โโโ arc-think-tank.md
โ โโโ arc-research-team.md
โ โโโ arc-war-room.md
โ โโโ arc-maestro.md
โ โโโ arc-maestro-review.md
โ โโโ ca-store-problem-context.md
โโโ skills/ # Self-contained skill workflows
โ โโโ arc-pr-review/
โ โ โโโ SKILL.md
โ โ โโโ scripts/ # collect-pr-context.py, review-to-html.py
โ โ โโโ references/ # review-file-format.md
โ โโโ arc-pr-respond/
โ โ โโโ SKILL.md
โ โ โโโ scripts/ # fetch-feedback.py, respond-to-html.py
โ โ โโโ references/ # respond-file-format.md
โ โโโ arc-rubber-duck/
โ โ โโโ SKILL.md
โ โโโ arc-vet/
โ โ โโโ SKILL.md
โ โโโ arc-vet-wf/
โ โ โโโ SKILL.md
โ โโโ arc-vet-apply/
โ โโโ SKILL.md
โโโ agents/ # Custom agent definitions
โ โโโ arc-root-cause-analyzer.md
โ โโโ arc-deep-research.md
โ โโโ arc-technical-writer.md
โ โโโ arc-code-reviewer.md
โ โโโ ca-pr-review-pass1.md
โ โโโ ca-pr-respond-pass1.md
โ โโโ ca-code-review-validator.md
โ โโโ ca-brainstormer.md
โ โโโ ca-problem-theory-validator.md
โ โโโ ca-think-tank-thinker.md
โ โโโ ca-think-tank-vetter.md
โ โโโ ca-think-tank-riffer.md
โ โโโ ca-think-tank-judge.md
โ โโโ ca-research-agent.md
โ โโโ ca-research-synthesizer.md
โ โโโ ca-war-room-investigator.md
โ โโโ ca-maestro-*.md # Maestro pipeline agents
โ โโโ personalities/ # Think-tank personality definitions
โโโ package-manager/ # Electron app for visual install management (/pm)
โโโ workflows.json # Workflow definitions for package manager
โโโ README.md
```
---
### Skills (GitHub Integration)
Self-contained workflows with their own scripts and reference files.
#### `/arc-pr-review` - Validated PR Review
**Purpose**: Perform comprehensive code review on GitHub pull requests with a two-agent workflow (pass1 reviewer + validator) to ensure high-quality, accurate feedback. Produces an interactive HTML report.
**Prerequisites**: Requires GitHub CLI (`gh`).
**Usage**:
```bash
/arc-pr-review https://github.com/owner/repo/pull/123
/arc-pr-review 123
/arc-pr-review development # Local branch diff mode
/arc-pr-review # Auto-detect PR for current branch
```
**Powered by** (in execution order):
1. `collect-pr-context.py` - Fetches PR metadata, diff, review threads in parallel
2. Generic ticket lookup - Tries available PM MCPs (Jira, Asana, etc.) or searches for local story files
3. `ca-pr-review-pass1` (agent) - First-pass review with C#/I#/M#/S# findings
4. `ca-code-review-validator` (agent) - Validates findings, filters false positives
5. `review-to-html.py` - Generates interactive HTML report
---
#### `/arc-pr-respond` - Validated Feedback Analysis
**Purpose**: Analyze PR review feedback with validation, provide assessments, and create prioritized response plan with an interactive HTML report. Every reviewer comment appears in the report โ the validator determines severity classification, not inclusion.
**Prerequisites**: Requires GitHub CLI (`gh`).
**Usage**:
```bash
/arc-pr-respond https://github.com/owner/repo/pull/123
/arc-pr-respond 123 humans # Only human reviewers (not an ai reviewer like CodeRabbit)
/arc-pr-respond 123 fred and wilma # Specific reviewers
```
**Powered by** (in execution order):
1. `fetch-feedback.py` - Fetches all feedback types in parallel
2. Generic ticket lookup - Tries available PM MCPs or searches for local story files
3. `ca-pr-respond-pass1` (agent) - Classifies, deduplicates, and drafts responses
4. `ca-code-review-validator` (agent) - Validates actionable items
5. `respond-to-html.py` - Generates interactive HTML report with original comment expansion
---
### Custom Commands
#### `/arc-investigate` - Automated Troubleshooting
**Purpose**: Complete troubleshooting workflow that systematically investigates your problem and gives you evidence-based solutions.
**Powered by** (in execution order):
1. `ca-store-problem-context` (command) - Documents the problem
2. `ca-brainstormer` (agent) - Generates theories
3. `ca-problem-theory-validator` (agent ร 5-6 in parallel) - Validates each theory
**How It Works**:
1. **Documents the problem** - Captures what you've been working on from the current session
2. **Generates theories** - Creates 5-6 hypotheses about what's causing the issue
3. **Validates in parallel** - Tests each theory through code investigation (runs simultaneously for speed)
4. **Ranks results** - Organizes findings into actionable categories
5. **Presents action plan** - Gives you clear next steps
**Results Categories**:
- ๐ด **PROVEN** - Confirmed root causes (fix these immediately!)
- ๐ก **High Confidence** - Strong evidence but needs verification
- ๐ข **Worth Investigating** - Plausible but needs more data
- โซ **Ruled Out** - Disproven theories (don't waste time here)
**Usage**:
```bash
# Let Claude extract problem from current session
/arc-investigate
```
---
#### `/arc-rca` - Root Cause Analysis
**Purpose**: Forensic investigation that traces bugs back to their origin, helping you understand how they were introduced and how to prevent them in the future.
**Powered by**:
- `arc-root-cause-analyzer` (agent) - Performs forensic git analysis
**How It Works**:
1. **Extracts context** - Automatically gathers info from your session (or uses provided details)
2. **Determines status** - Figures out if bug is fixed or still being worked on
3. **Git forensics** - Uses git blame, git log, and history analysis
4. **Analyzes intent** - Understands what the original developer was trying to do
5. **Classifies cause** - Identifies the type of mistake (logic error, edge case, refactor issue, etc.)
6. **Vets fix** - For fixed bugs, checks if the solution is complete and sound
7. **Finds similar risks** - Searches for other code with the same pattern
8. **Prevention recommendations** - Suggests how to prevent this category of bug
**Usage**:
```bash
# Auto-extract from current session (most common)
/arc-rca
# Analyze a specific commit
/arc-rca commit abc123
# Analyze a specific bug by description
/arc-rca "authentication tokens expiring immediately"
# Analyze a bug with ticket reference
/arc-rca JIRA-1234
```
---
#### `/arc-llm` - External LLM Consultation
**Purpose**: Generates a comprehensive, self-contained prompt that you can copy-paste into ChatGPT, Google Gemini, or any other LLM to get external help.
**Powered by**:
- `ca-store-problem-context` (command) - Documents the problem
- Direct file reading and code extraction (no agents)
**Why This Exists**: Sometimes you need a second opinion or want to consult a specialized model. This command packages up your entire problem with all necessary code context so the other LLM doesn't need filesystem access.
**How It Works**:
1. **Documents problem** - Captures your current issue from the session
2. **Reads all relevant files** - Extracts code sections mentioned in the problem
3. **Includes architecture** - Adds framework, dependencies, project structure
4. **Packages context** - Creates 200-500 lines of comprehensive, standalone prompt
5. **Displays for copying** - Shows the prompt ready to paste elsewhere
**Usage**:
```bash
# Extract from current session
/arc-llm
```
---
#### `/arc-research-team` - Team-Based Parallel Deep Research
**Purpose**: Orchestrate a team of parallel researcher agents to investigate complex, multi-faceted research questions. Decomposes the question into independent threads, dispatches 3 researchers to investigate simultaneously, then synthesizes findings into a cohesive report.
**Powered by**:
- `ca-research-agent` (agent ร 3, team-based parallel) - Independent thread investigation
- `ca-research-synthesizer` (agent) - Combines findings into unified report
- Claude Code agent teams (TeamCreate, SendMessage, shared TaskList)
**How It Works**:
1. **Decomposes** your question into 3-6 independent research threads
2. **Creates a team** with shared task list and spawns 3 researcher agents
3. **Researchers self-organize** โ claiming tasks, investigating, reporting findings, and picking up new tasks
4. **Follow-up tasks** discovered during research are added dynamically (capped at 12 total)
5. **Synthesizer** combines all findings into a cohesive report organized by theme
6. **Cleanup** โ team is shut down, resources cleaned up, follow-up options presented
**When to Use This vs arc-deep-research**:
- Use `arc-deep-research` for single focused questions needing depth
- Use `arc-research-team` for multi-faceted questions with 3+ independent threads needing breadth
**Usage**:
```bash
/arc-research-team How does the plugin system work in this repository?
/arc-research-team What's the full impact of upgrading from React 17 to 18?
/arc-research-team How does auth work across the frontend, API, and database layers?
```
---
#### `/arc-war-room` - Team-Based Parallel Investigation
**Purpose**: War room for intractable bugs. Brainstorms theories, dispatches a persistent team of investigators to validate them in parallel, dynamically spawns new investigators when promising leads are discovered mid-investigation, and synthesizes ranked results with next steps.
**Powered by**:
- `ca-brainstormer` (agent, ultrathink) - Theory generation
- `ca-war-room-investigator` (agent ร 3-5, team-based dynamic) - Theory validation
- Claude Code agent teams (TeamCreate, SendMessage, shared TaskList)
**How It Works**:
1. **Documents the problem** using existing problem context or creating one
2. **Brainstorms theories** via ca-brainstormer with ultrathink for deep analysis
3. **Assembles a war room** โ creates team, tasks for each theory, spawns 3 investigators
4. **Investigators validate theories** in parallel, reporting findings and new discoveries
5. **Dynamic adaptation** โ lead creates new tasks for discovered leads, spawns additional investigators (up to 5) when needed
6. **Lead synthesizes** all findings into ranked results with cross-theory pattern detection
7. **Cleanup** โ team shut down, actionable next steps presented
**When to Use This vs arc-investigate**:
- Use `arc-investigate` for standard debugging โ fixed theories, efficient parallel validation
- Use `arc-war-room` for tough problems where investigation may reveal new leads that need chasing
**Usage**:
```bash
# Auto-extract problem from current session
/arc-war-room
# With specific problem context
/arc-war-room .problem.20250208-143022.md
```
---
#### `arc-root-cause-analyzer` - Forensic Bug Analysis Agent
**Purpose**: Deep forensic investigation that uses git history to trace bugs back to their origin, understand why they happened, and provide actionable prevention strategies.
**This is the engine behind `/arc-rca`** - You typically use `/arc-rca` command instead of calling this agent directly, but you can invoke it directly for custom analysis workflows.
**How It Works**:
1. **Git archaeology** - Uses git blame, git log, and git history to find when buggy code was introduced
2. **Context analysis** - Reads commit messages, PR descriptions, and related changes to understand developer intent
3. **Timeline construction** - Maps out when bug was introduced, discovered, and fixed
4. **Root cause classification** - Categorizes the mistake (logic error, edge case, incomplete refactor, integration issue, etc.)
5. **Fix vetting** - For fixed bugs, analyzes if the solution is complete, correct, and sustainable
6. **Pattern detection** - Searches codebase for similar code that might have the same bug
7. **Prevention synthesis** - Recommends specific testing, tooling, documentation, and process improvements
**Usage** (via Task tool):
```
Use the arc-root-cause-analyzer agent to analyze:
Bug: Authentication tokens expiring immediately
Status: Fixed in commit abc123
Files: src/auth/tokenService.ts
What changed: Modified expiresIn calculation from time.DAY to time.DAY / 1000
```
---
#### `arc-deep-research` - Four-Step Research Agent
**Purpose**: Deep investigative research using a four-step methodology that prioritizes correctness over speed. Ideal for complex technical questions that require thorough investigation, verification, and synthesis.
**This is a standalone research agent** - Unlike arc-root-cause-analyzer which is primarily called by `/arc-rca`, this agent is designed for direct invocation when you need comprehensive research.
**Four-Step Methodology**:
**Step 1 - Define the Research**:
- Clarifies key terms and their meaning in the codebase
- Determines scope (in/out/boundaries)
- Creates strategic research plan
- Breaks main question into specific subquestions
**Step 2 - Execute the Plan (First Pass)**:
- Systematically works through research plan
- Gathers evidence and answers subquestions
- Uses file:line references for all findings
- Identifies follow-up questions and gaps
**Step 3 - Follow-up Research (Second Pass)**:
- Chases leads from Step 2
- Fact-checks findings against actual code
- Verifies assumptions and fills gaps
- Resolves conflicts between documentation and implementation
**Step 4 - Revision and Final Draft**:
- Synthesizes all findings into polished response
- Organizes information logically with clear narrative
- Includes comprehensive file:line references
- Documents limitations and uncertainties
- Provides recommendations when applicable
**Usage** (via Task tool):
```
Use the arc-deep-research agent to investigate:
Question: How does the authentication workflow work from login to token validation?
Context: Working on bug related to session timeout, need to understand
complete auth flow including middleware, validation, and token refresh.
```
---
#### `arc-technical-writer` - Elite Technical Documentation Agent
**Purpose**: Create, check, and modify comprehensive technical documentation including markdown documents, code comments, and architectural documentation for developers and LLMs. Excels at researching codebases to understand implementation details, writing clear and accurate documentation, and performing thorough verification passes before finalizing.
**This is a standalone documentation agent** - Designed for direct invocation when you need high-quality technical documentation that requires codebase research and verification.
**Core Capabilities**:
- **Feature documentation** with architecture diagrams, examples, and troubleshooting
- **API documentation** with request/response formats, error codes, and usage patterns
- **Code comments** that explain complex logic, integration points, and gotchas
- **Bug pattern guides** (bugfinder.md) documenting common issues and prevention
- **Architecture documentation** with system overviews, data flows, and design decisions
- **Developer onboarding guides** and technical specifications
---
#### `/arc-think-tank` - Creative Ideation Workflow
**Purpose**: Generate, critique, evolve, and rank creative ideas toward a user-provided goal. Produces a ranked report of the top 5 ideas with scores, risks, and next steps.
**Powered by** (17 serial agent calls):
- `ca-think-tank-thinker` (agent ร 5, Opus + ultrathink) - Generates 5 ideas per round
- `ca-think-tank-vetter` (agent ร 6, Sonnet) - Evaluates ideas with (+N) consensus system
- `ca-think-tank-riffer` (agent ร 5, Opus) - Evolves the most promising idea each round
- `ca-think-tank-judge` (agent ร 1, Opus) - Ranks top 5 with scoring and clustering
**How It Works**:
1. **Parse goal and materials** from arguments, create session context files
2. **5 rounds of ideation**, each consisting of:
- **Personality assignment** โ orchestrator randomly assigns a personality to each agent (no consecutive repeats)
- **Thinker** generates 5 new ideas (with ultrathink for deep creative analysis) using assigned personality
- **Vetter** evaluates all ideas, adding comments or incrementing (+N) consensus markers, guided by assigned personality
- **Riffer** picks the idea with the most improvement potential and creates an evolved version, guided by assigned personality
- **Personality logging** โ selections logged to task context for resume support
3. **Final vetting pass** gives all ideas one last evaluation (with assigned personality)
4. **Judge** (personality-neutral) clusters redundant ideas, selects strongest representatives, and ranks the top 5
5. **Report** with ranked ideas, scores, risks, next steps, honorable mentions, and themes
**Context Files Created**:
- `.task-{id}.md` - Session context (goal, materials, progress)
- `.think-tank-{id}-ideas.md` - All ideas with comments and consensus signals
- `.think-tank-{id}-report.md` - Final ranked report
**Usage**:
```bash
# Goal only
/arc-think-tank How can we improve developer onboarding?
# Goal with material files
/arc-think-tank How can we reduce customer churn? ./data/churn-analysis.csv ./docs/roadmap.md
# Resume interrupted session (auto-detects from .task-tt-*.md)
/arc-think-tank
# Add more rounds to an existing session
/arc-think-tank +2
```
**Personality System**:
Each round of the think-tank assigns a random personality to each agent (thinker, vetter, riffer). Personalities affect reasoning style, evaluation criteria, and what the agent prioritizes โ not just tone, but substantive behavioral differences. The orchestrator ensures no agent uses the same personality in consecutive rounds.
**Four Personalities**:
- **Contrarian** โ Challenges assumptions, inverts conventional wisdom. Criteria: Originality > Impact > Feasibility. Values intellectual courage and breaking orthodoxy. Suspicious of consensus thinking and incrementalism.
- **Pragmatist** โ Focused on what's buildable now with real constraints. Criteria: Feasibility > Impact > Originality. Values incremental progress and clear implementation paths. Suspicious of ambitious moonshots and dependency chains.
- **Visionary** โ No constraints, big swings. Criteria: Impact > Originality > Feasibility. Values transformative change and long-term vision. Suspicious of incrementalism and playing it safe.
- **Connector** โ Cross-domain analogies and pattern matching. Criteria: Originality > Impact > Feasibility (via cross-pollination). Values importing proven patterns from other fields. Suspicious of siloed thinking and reinventing solutions.
**How Personalities Work**:
- Auto-assigned randomly at the start of each round via bash randomness (not LLM "random")
- No consecutive repeats โ each agent gets a different personality than it had in the previous round
- Logged per round in the task context file for resume support
- Judge remains personality-neutral โ synthesizes all ideas on their merits regardless of source personality
---
#### `/arc-maestro` - Semi-Autonomous Development Pipeline
**Purpose**: 10-phase pipeline that takes a story (from Jira or a local file) and drives it from research through implementation. Researches codebase, creates plan, implements tasks with specialist routing, validates each task, and prepares for code review.
**Powered by** (in execution order):
- `ca-maestro-scout` (agent) - Codebase researcher
- `ca-maestro-planner` (agent) - Task decomposer
- `ca-maestro-plan-reviewer` (agent) - Quality gate that vets and improves plan
- `ca-maestro-junior-dev-doer` (agent, Haiku) - Junior implementer (difficulty 1-3)
- `ca-maestro-dev-doer` (agent, Sonnet) - Standard implementer (difficulty 4-6)
- `ca-maestro-senior-dev-doer` (agent) - Complex task specialist (difficulty 7+)
- `ca-maestro-frontend-dev-doer` (agent) - UI/UX specialist
- `ca-maestro-devops-dev-doer` (agent) - Infrastructure specialist
- `ca-maestro-task-validator` (agent, Haiku) - Strict pass/fail gate (difficulty 4-6)
- `ca-maestro-senior-task-validator` (agent, Sonnet) - Strict pass/fail gate (difficulty 7+)
- `ca-maestro-batch-validator` (agent, Haiku) - Batch pass/fail gate for untagged difficulty 1-3 tasks
- `ca-maestro-ui-validator` (agent, Sonnet) - Visual validation specialist (frontend tasks, difficulty 4+)
**How It Works**:
Maestro executes **Phases 1-7** with continuous execution between user checkpoints:
| Phase | Name | What Happens | User Checkpoint? |
|-------|------|-------------|------------------|
| 1 | Initialize | Fetch story, create branch, create context files | No |
| 2 | Scout | Research codebase patterns, conventions, test coverage | No |
| 3 | Questions | Present scout's ambiguities to user for answers | Yes (if ambiguities exist) |
| 4 | Plan | Break story into tasks with difficulty/type/TDD structure | No |
| 5 | Review | Quality gate: plan-reviewer vets and improves the plan | No |
| 6 | Approve | User reviews and approves the plan | Yes |
| 7 | Develop | Implement tasks one-by-one with mandatory validation; batch-validate difficulty 1-3 tasks at end | Yes (only on blocker) |
**Agent Roster**:
| Agent | Model | Role |
|-------|-------|------|
| `ca-maestro-scout` | Opus | Codebase researcher โ analyzes patterns, conventions, test coverage |
| `ca-maestro-planner` | Sonnet | Task decomposer โ breaks story into tasks with difficulty/type tags |
| `ca-maestro-plan-reviewer` | Sonnet | Quality gate โ vets and improves plan before user sees it |
| `ca-maestro-junior-dev-doer` | Haiku | Junior implementer โ handles difficulty 1-3 tasks |
| `ca-maestro-dev-doer` | Sonnet | Standard implementer โ handles difficulty 4-6 tasks |
| `ca-maestro-senior-dev-doer` | Opus | Complex task specialist โ handles difficulty 7+ and escalations |
| `ca-maestro-frontend-dev-doer` | Sonnet | UI/UX specialist โ handles `[Type: frontend]` tasks at any difficulty |
| `ca-maestro-devops-dev-doer` | Sonnet | Infrastructure specialist โ handles `[Type: devops]` tasks at any difficulty |
| `ca-maestro-task-validator` | Haiku | Strict pass/fail gate โ validates difficulty 4-6 tasks (per-task) |
| `ca-maestro-senior-task-validator` | Sonnet | Strict pass/fail gate โ validates difficulty 7+ tasks (per-task) |
| `ca-maestro-batch-validator` | Haiku | Batch pass/fail gate โ validates all untagged difficulty 1-3 tasks at end of pipeline |
| `ca-maestro-ui-validator` | Sonnet | Visual validation specialist โ browser screenshots + interaction testing for frontend tasks (difficulty 4+) |
**Routing Rules**:
Tasks are routed using two-dimensional routing:
1. **Type tag** (checked first):
- `[Type: frontend]` โ `ca-maestro-frontend-dev-doer` (regardless of difficulty)
- `[Type: devops]` โ `ca-maestro-devops-dev-doer` (regardless of difficulty)
2. **Difficulty rating** (fallback for untagged tasks):
- Difficulty 7+ โ `ca-maestro-senior-dev-doer`
- Difficulty 4-6 โ `ca-maestro-dev-doer`
- Difficulty 1-3 โ `ca-maestro-junior-dev-doer`
**Validation Routing**:
Difficulty 1-3 untagged tasks are **deferred** during the task loop and batch-validated by `ca-maestro-batch-validator` at the end of Phase 7. All other tasks get per-task validation immediately after implementation.
**Failure Handling**:
- Specialist tasks (frontend/devops) retry with the same specialist (no cross-agent escalation)
- Junior tasks (difficulty 1-3) escalate: junior โ dev-doer โ senior-dev-doer (batch failure counts as attempt 1)
- Standard tasks (difficulty 4+) escalate: same agent โ senior-dev-doer
- Development halts after 3 failures on any single task โ user decides next step
**File Organization**:
Maestro creates a `.maestro/` directory at project root:
```
.maestro/
context-{STORY-ID}.md # Status dashboard โ where things stand now
todo-{STORY-ID}.md # Task list with difficulty/type tags
diary-{STORY-ID}.md # Narrative log โ how we got here
summary-{STORY-ID}.md # Condensed research reference for dev agents (~50 lines)
task-{STORY-ID}-{N}.md # Task receipts for difficulty 1-3 tasks (read by batch validator)
```
**Context File**: Status dashboard. Contains Story Details, Current Status, Research Findings (full), Task Progress, Agent Outputs, Blockers, Decisions. Uses `<!-- @tag -->` anchors for targeted section extraction.
**Diary File**: Narrative log of discoveries, decisions, problems, and successes. Agents read before starting work and write when they discover something that could affect later work. Uses grep-able tags: `[decision]`, `[problem]`, `[learning]`, `[success]`.
**Todo File**: Task list created by planner with difficulty ratings, type tags, implementation notes, and success criteria.
**Summary File**: Condensed ~50-line research reference generated by the orchestrator after scout completes. Dev agents read this first for key patterns, test strategy, and citations. Points to full research in context file.
**Task Receipt Files**: Written by junior dev-doers after each difficulty 1-3 task. Contains implementation summary, files changed, test command, and test output. Read by batch validator at end of pipeline.
**Resume Capability**:
Maestro can resume from where it left off. It reads the "Current Status" section of the context file to determine which phase to resume from. If no context file exists, starts fresh.
**Visual Verification**:
For stories with UI components, Maestro can use browser automation (Playwright MCP or Claude Code browser integration) during Phase 7 to verify that implemented UI actually looks and interacts correctly. If problems are found, new fix tasks are created automatically.
**Usage**:
```bash
# Jira ticket
/arc-maestro JIRA-123
# File-based story
/arc-maestro ./stories/my-story.md
/arc-maestro .stories/implement-auth.md
# Resume interrupted session (reads context file)
/arc-maestro JIRA-123
```
**Example Flow**:
```
User: /arc-maestro JIRA-456
Phase 1: Initialize
โ Fetched story from Jira
โ Created branch: feature/JIRA-456-add-export
โ Created .maestro/ directory with context, diary, todo files
Phase 2: Scout
โ Researched codebase patterns
โ Analyzed test coverage
โ Documented findings in context file
Phase 3: Questions (if needed)
? Scout has 2 ambiguities โ need your input
Phase 4: Plan
โ Created 12-task plan with difficulty ratings
Phase 5: Review
โ Plan-reviewer improved plan (added security tasks, fixed TDD requirements)
Phase 6: Approve
[Presents plan to user]
? Approve plan? (yes/no/changes)
Phase 7: Develop
โ Task 1/12: [dev-doer] Create user model [Difficulty: 3/10] โ COMPLETE
โ Task 2/12: [dev-doer] Add validation layer [Difficulty: 4/10] โ COMPLETE
โ Task 3/12: [senior-dev-doer] Implement OAuth flow [Difficulty: 8/10] โ COMPLETE
...
โ All tasks complete
โ Staged changes
โ Committed: "JIRA-456: Add export functionality"
โ Pushed to remote
Ready for code review. Run: /arc-maestro-review JIRA-456
```
---
#### `/arc-maestro-review` - Code Review and PR Creation
**Purpose**: Executes the final 3 phases of the Maestro pipeline โ code review, bug fixes with regression tests, and PR creation. Always starts fresh from Phase 8.
**Powered by** (in execution order):
- `ca-maestro-code-review` (agent) - Two-pass reviewer with enhanced bug-finding
- `ca-maestro-code-review-responder` (agent) - Addresses vetted concerns, fixes bugs
- `ca-code-review-validator` (agent, existing) - Batch validates review feedback items
**How It Works**:
Maestro-review executes **Phases 8-10**:
| Phase | Name | What Happens |
|-------|------|-------------|
| 8 | Code Review | Two-pass review: generate concerns then batch-vet |
| 9 | Respond | Fix bugs with regression tests, address other concerns |
| 10 | Complete | Commit review fixes, push, create PR |
**Phase 8 โ Code Review**:
- **Pass 1**: Generate concerns across all dimensions (testing, data layer, performance, bugs, security, frontend, code quality, integration)
- **Enhanced bug-finding**: Executable failure paths, tri-state logic detection, framework contract verification, boolean expression substitution
- **Line number verification**: Read actual files at cited lines, quote actual code
- **Pass 2**: Batch validate all concerns via `ca-code-review-validator`, categorize as KEEP/REMOVE/CLARIFY
**Phase 9 โ Respond**:
- **Bugs first**: Understand failure path, implement minimal fix, add regression test (if code has test coverage)
- **Other concerns**: Process via decision tree (critical โ FIX, objectively wrong โ FIX, quick fix โ FIX, time-consuming โ DOCUMENT, out-of-scope โ DOCUMENT, style preference โ DISMISS)
- **Final verification**: All tests pass, no skipped tests, linting clean
**Phase 10 โ Complete**:
- Commit review fixes
- Push to remote
- Create PR via `gh pr create` with generated summary and test plan
- Display PR URL
**Usage**:
```bash
# Explicit story ID
/arc-maestro-review JIRA-456
# Auto-detect (uses most recent context file)
/arc-maestro-review
```
**Example Flow**:
```
User: /arc-maestro-review JIRA-456
Phase 8: Code Review
โ Pass 1: Generated 8 concerns
โ Pass 2: Validated concerns (5 KEEP, 2 REMOVE, 1 CLARIFY)
โ Stored vetted review in context file
Phase 9: Respond
โ BUG 1: Fixed null pointer in export logic (added regression test)
โ BUG 2: Fixed race condition in async handler (added regression test)
โ Concern 3: Refactored error handling (material improvement)
โ Concern 4: Documented performance consideration (out of scope for this PR)
โ Concern 5: Dismissed style preference
โ All tests pass (124 passed, 0 skipped)
Phase 10: Complete
โ Committed: "JIRA-456: Address code review feedback"
โ Pushed to feature/JIRA-456-add-export
โ Created PR: https://github.com/owner/repo/pull/789
Ready for human review!
```
---
### Skills
#### `/rubber-duck` - Trusted Peer Developer
**Purpose**: A conversational sounding board for when you want to talk through a technical idea, design, or plan. Acts as a trusted peer who wants your idea to succeed โ not a rubber stamp, not a blocker.
**How It Works**:
The conversation flows through natural phases:
1. **Listen and Understand** โ Lets you explain your idea, restates it to confirm understanding, asks one clarifying question at a time. Stays here until both the problem and your approach are clear.
2. **Explore Together** โ Probes assumptions, edge cases, and failure modes. Asks "what happens when..." questions. Only explores alternatives after understanding why you chose this approach.
3. **Strengthen** โ Suggests specific improvements one at a time. Points out risks, asks about testing and rollback plans.
4. **Summarize** โ Only when asked or when the conversation wraps naturally. Recaps strengths, open concerns, decisions made, and remaining unknowns.
**Key behaviors**:
- One question or concern per response โ never a wall of feedback
- Understands before suggesting โ won't offer alternatives until it grasps the problem and your thinking
- Uses codebase research to verify claims instead of speculating
- Direct but constructive โ names problems plainly, frames concerns as questions
**Usage**:
```bash
# Start a conversation
/rubber-duck
# With context
/rubber-duck I'm thinking about replacing our REST API with GraphQL
```
---
#### `/vet` - Quick Quality Check
**Purpose**: Review your recent work using a specialized agent, filter out noise, and present actionable recommendations. Auto-selects the right agent based on what you changed.
**Powered by**:
- `arc-code-reviewer` (agent) - For code and test changes
- `arc-technical-writer` (agent) - For agents, skills, prompts, and documentation
**How It Works**:
1. **Determines context** from `git diff HEAD`, `git status`, and `.todo.md`
2. **Selects agent** based on file types โ code/tests get the code reviewer, agents/skills/docs get the technical writer
3. **Runs review** via Task with focus on critical feedback, not nitpicks
4. **Vets feedback** โ keeps real bugs, security issues, and logic errors; discards style nitpicks and subjective preferences
5. **Presents recommendations** with file:line references and brief rationale
**Usage**:
```bash
# Auto-select agent based on recent changes
/vet
# Specify agent explicitly
/vet arc-technical-writer
```
---
#### `/vet-wf` - Workflow Quality Check
**Purpose**: Vet a Claude Code workflow (skills, agents, orchestrators) using two specialist agents in parallel. One reviews documentation and logic quality, the other reviews implementation correctness.
**Powered by** (run in parallel):
- `arc-technical-writer` (agent) - Reviews SKILL.md files, agent definitions, output contracts, delegation logic
- `arc-code-reviewer` (agent) - Reviews Python scripts, shell commands, JSON schemas for bugs
**How It Works**:
1. **Gathers context** from git state and identifies all workflow files
2. **Launches both agents in parallel** (single message, two Task calls)
3. **Synthesizes findings** โ overlapping concerns get higher priority, noise is filtered out
4. **Presents filtered recommendations** with file:line references
**Usage**:
```bash
/vet-wf
```
---
#### `/vet-apply` - Apply Vet Recommendations
**Purpose**: Safely implement recommendations from a prior `/vet` or `/vet-wf` run. Investigates each item before touching code. Only applies changes that are unambiguously correct.
**How It Works**:
1. **Extracts recommendations** from the most recent `/vet` or `/vet-wf` output in the conversation
2. **Investigates each item** โ reads the actual code, verifies the claim, checks if already fixed
3. **Applies or skips** based on strict criteria: problem must demonstrably exist, fix must be unambiguous, no side effects, not a style preference
4. **Reports results** โ what was applied, what was skipped (with reasons), what needs discussion
**Usage**:
```bash
# Apply all recommendations
/vet-apply
# Apply specific items
/vet-apply 1,3,5
/vet-apply 1-3
# Apply by description
/vet-apply "the security items"
```
---
#### `arc-code-reviewer` - Standalone Code Review Agent
**Purpose**: Perform a thorough code review with built-in self-validation in a single pass. Produces a polished prose report. Used by the vet workflow and also available for direct invocation.
**How It Works**:
1. **Auto-detects** what to review: PR on current branch, staged/unstaged changes, or recent commits
2. **Reviews** across all dimensions: database, testing, performance, documentation, correctness bugs, security, frontend, code quality, dependencies, scope alignment
3. **Self-validates** โ re-reads each finding before including it, removing false positives
4. **Outputs** clean prose report with C#/I#/M#/S# severity IDs, checklist summary, and overall recommendation
**Usage** (via Task tool):
```
Use arc-code-reviewer to review my recent changes
Use arc-code-reviewer to review PR #123
```
---
## Notes
This project assumes that `.*.md` files (dot-prefixed markdown files) are gitignored in your projects. Working files and temporary documentation generated by these commands will use this naming pattern to avoid cluttering your repository.
Add this to your `.gitignore`:
```
/.*.md
```
## License
MIT License - See LICENSE file for details.