devflow
πPluginπ§© ModA Claude Code plugin with skills and helper agents for studying a codebase, planning work and carrying it out phase by phase. It also adds code and security review, and tracks progress with Claude Code's built-in task list.
Installation
/plugin marketplace add mhylle/claude-skills-collection/plugin install devflow@mhylleRun these in Claude Code. In a session that is already open, run /reload-plugins after installing.
Permissions to check
- Tool calls
- Your prompts
- Model calls
Also: Interface Β· /commands Β· Reads files Β· MCP Β· Own data Β· Session info
Raw check output (Claude Code 2.1.322)
hooks: session.start, tool.call, tool.call{tool=Skill}, tool.call{tool=Write}, tool.call{tool=Edit}, tool.call{tool=NotebookEdit}, tool.call{tool=AskUserQuestion}, tool.call{tool=Bash}, tool.call{tool=PowerShell}, turn.complete, prompt.submit, command.run{command=hud}, ui.render{component=AbovePrompt}, ui.render{component=Pane, requestId=?}
calls: $.agent.list (via followSkill, noteSkill, pauseIfIdle, pollAgents, runningNote), $.clock.every (via start), $.clock.now (via linkedRequirements, loadPhase, pollAgents, readChecks, tick, viewOf), $.command.register (via start), $.fs.read (via testProjectsOf), $.mcp.call (via call), $.state.get, $.state.set, $.store.get (via linkedRequirements, start), $.store.set (via followTaskTracker, linkedRequirements, refresh, runCommand, setGuardEnabled), $.ui.notify (via notifyStatus), $.ui.open (via openPane), $.ui.resolve, $.ui.toast (via pollAgents, readChecks)
README.md
View on GitHub βClaude Code Skills Collection
Custom skills and agents for Claude Code that enhance codebase research, context management, and implementation planning workflows.
New to this workflow? See the Workflow Overview for a step-by-step guide.
Installing? This repo ships as the
devflowClaude Code plugin β see Installation and Plugin Distribution.
Built on Claude Code Task Tools
This skill collection uses Claude Code's native Task tools for progress tracking.
Progress tracking is handled entirely through Claude Code's built-in Task system:
| Tool | Purpose |
|---|---|
TaskCreate | Create tasks for each phase with dependencies |
TaskUpdate | Mark tasks as in_progress or completed |
TaskList | View all tasks with status and blockers |
TaskGet | Get full task details including description |
Benefits:
- Persistent - Tasks survive session restarts
- Cross-session - Share progress across multiple terminals
- Dependency tracking - Blocked tasks visible, execute in order
- No file pollution - Progress tracked in memory, not plan files
Plans remain pure specification documents. See Progress Tracking for details.
Claude Code 2.1.x Feature Alignment
This collection uses modern Claude Code skill features (v2.1.16+):
| Feature | Skills Using It | Purpose |
|---|---|---|
context: fork | codebase-research | Run in isolated subagent context. Only for skills that run to completion without the user and don't wait on agents of their own: agent reports arrive in the top-level session, so the phase leads (implement-phase, tt-implement-phase) run inline. |
agent: Explore/Plan | (none) | Subagent type for a forked skill. Both built-ins are read-only and lack the Agent tool, so any skill that writes files or spawns subagents must leave this unset. |
allowed-tools | code-review, verification-loop, security-review, adversarial-reviewer, codebase-research, strategic-compact | Restrict available tools (read-only enforcement) |
argument-hint | implement-plan, implement-phase, adr, e2e-testing, code-review, adversarial-reviewer, context-saver, prompt-generator | Show usage hints in autocomplete |
disable-model-invocation | context-saver, prompt-generator | User-only invocation (no auto-trigger) |
user-invocable: false | implement-phase | Hide from user menu (internal skill) |
Never add context: fork to an interactive skill. A forked skill runs in a subagent
with no access to the conversation history, and since Claude Code v2.1.218 it is
backgrounded by default β so a skill that asks the user questions and waits for answers
(brainstorm) simply never reaches the user. agent: Explore compounds it: that agent
type is read-only, so the skill cannot write its output document either.
tests/test-interactive-skills.sh guards this.
Argument Substitution
Skills support the new argument syntax:
$0,$1,$2- Positional arguments$ARGUMENTS- All arguments${CLAUDE_SESSION_ID}- Session tracking
Example: /implement-plan docs/plans/my-feature.md passes the path as $0.
Implementation Workflow
The core workflow for implementing features follows this hierarchy:
βββββββββββββββββββ
β brainstorm β
β (ideation) β
ββββββββββ¬βββββββββ
β
βββββββββββββ΄ββββββββββββ
βΌ βΌ
βββββββββββββββββββ ββββββββββββββββββββ
β adr β β user-story β
β (decisions) β β (requirements) β
ββββββββββ¬βββββββββ ββββββββββββ¬ββββββββ
ββββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββ
β create-plan β
β (spec β phases) β
ββββββββββ¬βββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β implement-plan β
β (orchestrates all phases) β
β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β Phase 1 βββββΆβ Phase 2 βββββΆβ Phase N βββββΆ Complete β
β ββββββββ¬βββββββ ββββββββ¬βββββββ ββββββββ¬βββββββ β
β β β β β
β βΌ βΌ βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β implement-phase (per phase) β β
β β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β
β β β Step 1: Implementation (subagents) [TDD mode: tests first] β β β
β β β Step 2: verification-loop (6-phase exit conditions) βββββββ β β
β β β Step 3: Integration Testing (API/UI via Playwright) ββ β β
β β β Step 4: code-review ββββββββββββββββββββββββββββββββββββββΌβΌβββ β β
β β β βββΊ security-review (optional OWASP audit) βββββββΌβΌβββΌβββ β
β β β Step 5: ADR Compliance βββββββββββββββββββββββββββββββββββΌβΌβββΌββΌβ€ β
β β β Step 6: Plan Sync ββ β ββ β
β β β Step 7: Prompt Archival ββ β ββ β
β β β Step 8: Completion Report ββ β ββ β
β β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβΌβββΌββΌβ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβΌβββΌββΌββββββ
β ββ β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β β
β β βββββββββββββββββββββββββββββββββββββββββββ β β β
β β β ββββββββββββββββββββββββββββββββ β β
β β β β βββββββββββββββββββ β
β βΌ βΌ βΌ βΌ β
β βββββββββββββ βββββββββββββ βββββββββββββ βββββββββββββββββββ β
β βverificationβ βcode-reviewβ βsecurity- β β adr β β
β β -loop β β β β review β β β β
β βββββββββββββ βββββββββββββ βββββββββββββ βββββββββββββββββββ β
β (default) (optional) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββ
β e2e-testing β
β (validation) β
ββββββββββ¬βββββββββ
β
βΌ
ββββββββββββββββββββββββββββ
β continuous-learning β
β (extract session patterns)β
ββββββββββββββββββββββββββββ
Workflow Stages
| Stage | Skill | Purpose |
|---|---|---|
| Ideation | brainstorm | Refine rough ideas through Socratic questioning |
| Requirements | user-story | Generate hierarchical user stories with acceptance criteria |
| Planning | create-plan | Create detailed, phased implementation plans |
| Iteration | iterate-plan | Update plans based on feedback |
| Execution | implement-plan | Orchestrate full plan execution |
| Phase Work | implement-phase | Execute single phase with quality gates |
| Quality | code-review | Verify code quality, patterns, ADR compliance |
| Adversarial Quality | adversarial-reviewer | Subagent-based hostile review (Saboteur, New Hire, Security Auditor) to break self-review blind spots |
| Comprehensive Audit | codebase-audit | Long-running full-codebase audit β partitions the repo, delegates to adversarial-reviewer per partition, synthesizes a written remediation report |
| Security | security-review | OWASP-aligned security audit (optional step) |
| Verification | verification-loop | 6-phase verification: build, type, lint, test, security, diff |
| Metrics Gate | code-quality-audit | Coverage, complexity, module size, deps, mutation β gate or on-demand |
| Decisions | adr | Document architectural decisions |
| Testing | e2e-testing | End-to-end validation with Playwright |
| Evaluation | eval-harness | Formal capability/regression testing with metrics |
| Learning | continuous-learning | Extract patterns from sessions for reuse |
Skills
Skills are invoked via the Skill tool or /skill-name shorthand.
Planning & Implementation
| Skill | Trigger | Description |
|---|---|---|
| brainstorm | /brainstorm, "explore this idea" | Interactive idea refinement using Socratic questioning, written to docs/brainstorms/ for create-plan or tt-create-plan |
| user-story | /user-story, "create user stories" | Generate hierarchical user stories (epics/features/tasks) with Given/When/Then acceptance criteria |
| create-plan | /create-plan, "plan the implementation" | Creates detailed implementation plans through research |
| iterate-plan | "update the plan", "iterate on this plan" | Updates existing plans based on feedback |
| implement-plan | /implement-plan, "implement the plan" | Orchestrates execution of complete plans (subagent mode) |
| implement-phase | Called by implement-plan | Executes single phase with all quality gates |
| tt-create-plan | /tt-create-plan, "plan this in tasktracker" | TaskTracker-native planning: requirements with acceptance criteria and phase tasks from templates instead of a docs/plans/*.md file |
| tt-implement-plan | /tt-implement-plan, "execute the tasktracker plan" | Runs a TaskTracker plan phase by phase, delegating each phase to tt-implement-phase, with active-task time tracking and insight logging |
| tt-workflow-run | /tt-workflow-run, "drive the backlog to done" | Autonomous gated run over a TaskTracker backlog: next ready slice β tt-implement-phase β drift and defect gates β measured-time projection, until the backlog drains |
| tt-workflow-build | /tt-workflow-build, "parallel build (tasktracker)" | Parallel build of a TaskTracker project, on the Workflow tool when it is enabled and on parallel subagents otherwise, driven to done |
| tt-create-build-loop | /tt-create-build-loop, "set up an autonomous build loop" | Writes prompts/autonomous-build-loop.md, the prompt a /loop re-reads every iteration to plan, implement and verify TaskTracker phases unattended under a zero-error gate, with a human-only queue and a per-phase cost ledger. Detects the repo, stack, CI and TaskTracker phases, asks only what it can't, creates missing queue/ledger phases, optionally installs the bundled token-usage tooling, and installs a clean-worktree gate runner |
| workflow-guide | /workflow-guide, "which workflow should I use" | Routes work to a lane: file-based or TaskTracker pipeline, autonomous run, unattended loop, parallel build or audit, or issue-to-merge |
Quality & Documentation
| Skill | Trigger | Description |
|---|---|---|
| code-review | /devflow:code-review (bare /code-review is Claude Code's built-in review), Step 4 of implement-phase and tt-implement-phase | Systematic review: SRP, patterns, ADR compliance |
| adversarial-reviewer | /adversarial-reviewer, "adversarial review", "critical review", "audit this repo" | Spawns three hostile-persona subagents (Saboteur, New Hire, Security Auditor) in parallel; each must find β₯1 issue; cross-persona findings get severity-promoted. Default mode reviews a diff; --codebase [path] reviews a whole repo/subtree with strategic per-persona deep-dives |
| grumpy-reviewer | /grumpy-reviewer, "structural review", "is this well factored" | One isolated-subagent reviewer that judges only maintainability (separation of concerns, helper extraction, small files, the rule of 7) and never learns how the code was produced |
| codebase-audit | /codebase-audit, "comprehensive codebase review", "thorough audit", "code due diligence" | Long-running full-coverage audit. Partitions the repo, delegates to /adversarial-reviewer --codebase per partition, synthesizes systemic findings, produces written remediation report. Resumable. Pairs with code-quality-audit for qualitative + quantitative picture |
| tt-workflow-audit | /tt-workflow-audit, "parallel audit (tasktracker)" | Read-only parallel audit of a TaskTracker project's repo, backlog or architecture: a ranked risk register, with fix tasks written back by the parent on approval. Resumable |
| adr | /adr, "document decision" | Creates Architecture Decision Records |
| e2e-testing | /e2e-testing, "test my webapp" | E2E testing with Playwright MCP |
| security-review | /devflow:security-review (bare /security-review is the built-in), auth/input code | 10-category OWASP-aligned security audit |
| verification-loop | /verification-loop, "verify implementation" | 6-phase verification: build, type, lint, test, security, diff |
| code-quality-audit | /code-quality-audit, "audit code quality", "run mutation testing" | Coverage + complexity + module size + dependency cycles + mutation score. Gate or on-demand modes |
| eval-harness | /eval-harness, "run evals" | Formal evaluation framework with pass@k metrics |
Research & Context
| Skill | Trigger | Description |
|---|---|---|
| codebase-research | "how does X work" | Parallel codebase research with sub-agents |
| context-saver | /context-saver, "save context" | Preserves session state for continuation |
| prompt-generator | /prompt, "generate prompt" | Creates implementation prompts for phases |
Learning & Optimization
| Skill | Trigger | Description |
|---|---|---|
| continuous-learning | "save what we learned", /continuous-learning | Promotes reusable procedures from a session into learned skills at ~/.claude/skills/learned-<slug>/ (on demand; one-liners go to auto-memory) |
| strategic-compact | PreToolUse hook | Suggests /compact at logical boundaries, not arbitrary thresholds |
| skill-visualizer | /skill-visualizer, "visualize skills" | Generate interactive HTML visualizations of skills and codebase |
Development
| Skill | Trigger | Description |
|---|---|---|
| agent-creator | "create agent", "build agent" | Creates composable AI agent systems in NestJS |
| design-language | "design my own design language", "build my design system", "I want my own look not the Claude default" | Guided design-brief β living-styleguide compiler. Reaction-first elicitation (web research + real references + live archetypes rendered in your own tokens β you react β targeted refinement) with a per-dimension 1β5 "safeness" gradient (conventionalβexperimental) across the entire system (color, type, spacing, shape, elevation, motion, imagery, components, patterns, voice). Resumable multi-phase flow; emits a self-contained, portable ./design-system/ (interactive dashboard + css/tokens.css single-source-of-truth + W3C design-tokens.json + DESIGN_LANGUAGE.md contract with an explicit anti-Claude reference + pre-ship checklist + a default-vs-yours compare.html) that future sessions read and build from. Different from frontend-design (which styles one UI in the moment). |
Media & Content
| Skill | Trigger | Description |
|---|---|---|
| visual-explainer | /visual-explainer <topic> [--full], "explain how X works", "make a visual explainer ofβ¦", "TLDR page for management aboutβ¦", "show me how toβ¦" | Turns any topic into one self-contained HTML explainer built on learning research: The short version (the answer as a headline, three takeaways, one animated diagram, "what this means for you"), How it works (plain language, every term and abbreviation explained, up to five question-led sections, each with an animated CSS diagram and a quick check), Show me (an animated walkthrough when there is something to demonstrate: drawn screens with a moving cursor, a typing terminal, messages passing between parties, or a guided screenshot tour) and an optional Deep dive. Calm "Nocturne" design (charcoal and one orange accent, Lucide icons, light/dark). --full turns on the interactive layer: guess-first questions, what-if sliders, put-in-order checks, clickable diagrams, scroll stories, exploded 3D views, zoomable maps and read-aloud. Animations are paced for reading (`--tempo slow |
| video-explainer | /video-explainer <url-or-path>, "make an HTML explainer for this video", "turn this talk into visual notes" | Turns a video (YouTube, any yt-dlp URL, or a local file) into one self-contained HTML explainer page: headline + TL;DR, key takeaways, a section per part of the video, and diagrams built in pure HTML + CSS (17 components: flows, timelines, bar/line/dumbbell charts, threshold scales, comparisons, cycles, layersβ¦). Watches the video via the watch plugin (frames + transcript), adds screenshots only when the video's own image is the information, renders the page headless at desktop and phone width to check its own layout, and links every claim to its timestamp. Requires the watch plugin: see the Video Explainer Guide for install and usage. |
Pipeline (Issue β Merge)
| Skill | Trigger | Description |
|---|---|---|
| ship-issue | /ship-issue <issue-number-or-url> | One-command GitHub issue β merged PR pipeline across nine stages (preflight, plan, implement, review, ci, cloud_review, deploy, e2e, logs) with exactly two human gates β plan approval and merge confirmation. Model-tiered: Fable 5 plans, orchestrates, and runs the merge-gate review; Opus 4.8 implements (TDD); Sonnet 4.6 runs staging E2E and log checks. File-based run state gives lossless crash-resume; per-stage time tracking (work / gate-wait / crash-gap, with a per-model-tier rollup) is embedded in the Gate 2 merge brief. Pair with the single-file dashboard.py for a live view. |
Overview page: open
skills/ship-issue/pipeline.htmlin a browser for a one-page tour β the skill, its five agents, and the full stage-flow diagram with model-tier colour-coding (self-contained, no dependencies).
Agents
Agents are specialized subagents launched with the Agent tool. When the collection is installed as a plugin they are named devflow:<agent>.
| Agent | Purpose |
|---|---|
| implementer | sonnet, medium effort: writes code and tests for one briefed unit of work; used by tt-implement-phase for implementation and fix rounds |
| mechanic | haiku, low effort: runs build/type/lint/test checks and verification-loop, report-only, never edits |
| reviewer | opus, high effort (callers pass fable for security reviews): runs code-review / security-review on code it did not write |
| codebase-analyzer | Traces implementation with file:line references |
| codebase-locator | Finds files by topic/feature ("Super Grep/Glob") |
| codebase-pattern-finder | Finds concrete code examples and patterns |
| docs-analyzer | Extracts insights from docs, ADRs, design docs |
| docs-locator | Finds documentation and research notes |
| web-search-researcher | Web research for APIs, libraries, troubleshooting |
| browser-verification-agent | UI testing via Playwright MCP with screenshot evidence |
| design-researcher | claude-sonnet-4-6 β per-dimension inspiration research for the design-language skill (WebSearch β Playwright screenshots β cached manifest), steering away from the default Claude look |
ship-issue pipeline agents
Each agent pins its model in frontmatter β the tier is part of the contract, never switched mid-task (prompt caches are model-scoped; ADR-0007). A fix cycle is always a fresh task on the same tier, never a resumed task on a different model.
| Agent | Model | Purpose |
|---|---|---|
| issue-planner | claude-fable-5 (Fable 5) | Turns a GitHub issue + codebase into the plan presented at Gate 1. Outcome-prompted (ADR-0008). |
| merge-gate-reviewer | claude-fable-5 (Fable 5) | Last-line diff review at the merge gate; verdict contract APPROVE / FIX (itemized blockers). Outcome-prompted. |
| tdd-implementer | claude-opus-4-8 (Opus 4.8) | Tests-first implementation, UI components, API routes; receives reviewer/CI/E2E blockers verbatim on fix cycles. |
| staging-e2e-verifier | claude-sonnet-4-6 (Sonnet 4.6) | Runs the plan's E2E scenarios against the live staging URL via Playwright MCP; PASS/FAIL/FLAKY/BLOCKED with screenshot evidence. |
| staging-log-verifier | claude-sonnet-4-6 (Sonnet 4.6) | Scans staging service logs over the deploy window; CLEAN vs ERRORS_FOUND with cited lines. |
Installation
This repository is distributed exclusively as a Claude Code plugin named devflow,
published through a marketplace named mhylle. Inside Claude Code:
/plugin marketplace add mhylle/claude-skills-collection
/plugin install devflow@mhylle
Then /reload-plugins (or restart) if the install summary asks for it.
Plugin skills are namespaced, so every skill is invoked as /devflow:<skill>:
/devflow:brainstorm
/devflow:create-plan
/devflow:implement-plan
Nothing is copied into ~/.claude/ β the plugin lives in Claude Code's plugin cache,
carries a version, and updates in place:
/plugin marketplace update mhylle
To remove it: /plugin uninstall devflow.
See Plugin Distribution for the manifest layout, versioning, publishing, and local development.
Migrating from the old install script
Earlier versions shipped an install.sh that copied skills, agents, and hooks into
~/.claude/. It is gone (ADR-0011).
Those copies do not disappear on their own, and plugin skills do not override
same-named personal skills β so until you remove them you will have both /brainstorm
and /devflow:brainstorm pointing at two copies that drift apart, with Claude free to
auto-invoke either. Remove the copies once, after installing the plugin:
# from a checkout of this repo
for s in $(ls skills); do rm -rf "$HOME/.claude/skills/$s"; done
for a in agents/*.md; do rm -f "$HOME/.claude/agents/$(basename "$a")"; done
~/.claude/hooks.json is your own user configuration, not a copy of this repo's file.
The old script overwrote it (leaving hooks.json.backup); the plugin no longer touches
it. Review it by hand and delete only the entries you recognise from this collection.
What the Plugin Ships
Skills, agents, and these hooks β all discovered automatically from the plugin's
default component locations (skills/, agents/, hooks/hooks.json).
Hooks (automatic behaviors):
/devflow:strategic-compact is invoked on demand rather than by a hook β see
ADR-0011.
| Hook Type | Name | Trigger | Purpose |
|---|---|---|---|
| PreToolUse | tmux-dev-block | npm run dev etc. | Block dev servers outside tmux |
| PreToolUse | tmux-reminder | Long-running commands | Suggest tmux for session persistence |
| PreToolUse | git-push-review | git push | Reminder to review before push |
| PreToolUse | doc-file-warn | .md/.txt creation | Warn about docs outside docs/ structure |
| PostToolUse | pr-url-logger | gh pr create | Log PR URL and review command |
| PostToolUse | prettier-format | JS/TS file edits | Auto-format with Prettier |
| PostToolUse | typescript-check | .ts/.tsx edits | Run tsc --noEmit and show errors |
| PostToolUse | console-log-warn | JS/TS file edits | Warn about console.log statements |
| Stop | console-log-audit | Session end | Audit modified files for console.log |
| SessionStart | load-context | Session start | Detect saved context files in docs/context/ |
| PreCompact | save-context-before-compact | Before /compact | Remind to save context before compaction |
HUD (function hooks, hooks/register.tsx): a progress band above the prompt and a /hud pane for TaskTracker
phases (sub-tasks, acceptance criteria, booked time, running agents, the last build or test result), plus an orchestrator guard
that refuses main-thread file edits while a phase lead runs, an in-flight reminder while agents work, a heartbeat
while agents run, and alarms for failed or missing test projects. See the devflow HUD guide.
CLAUDE.md Integration
Enforce the skill workflow in your projects using the init script:
# Initialize a project with workflow enforcement
./init-workflow.sh ~/projects/myapp # Standard level (recommended)
./init-workflow.sh ~/projects/myapp minimal # Lightweight reminder
./init-workflow.sh ~/projects/myapp strict # Full enforcement
# Or from within your project
cd ~/projects/myapp && /path/to/init-workflow.sh .
This script:
- Creates
docs/plans/,docs/brainstorms/,docs/user-stories/,docs/adr/,logs/directories - Appends workflow rules to existing CLAUDE.md (non-destructive)
- Creates new CLAUDE.md from template if none exists
- Backs up existing CLAUDE.md before modifying
Enforcement levels:
| Level | Description |
|---|---|
minimal | Basic 5-line workflow reminder |
standard | Workflow + quality gates + key rules (recommended) |
strict | Complete enforcement with orchestrator pattern, ADRs, security triggers |
Resources:
- CLAUDE.md Snippets - All modular snippets for manual customization
- Enforcement Rules - Complete rule reference
- CLAUDE.md Template - Full project template
Ready to start? Check out the Workflow Overview for a complete guide.
Usage Examples
Full Implementation Workflow
# 1. Brainstorm the idea
/brainstorm
> "I want to add user authentication to the app"
# 2. Define requirements (parallel with ADRs)
/user-story docs/brainstorms/2026-02-17-user-auth.md
> Creates docs/user-stories/EPIC-01-user-auth.md + INDEX.md
# 3. Create a plan
/create-plan
> Creates docs/plans/auth-implementation.md
# 4. Implement the plan
/implement-plan docs/plans/auth-implementation.md
> Executes phases with quality gates
# 5. Run E2E tests
/e2e-testing run
Quick Code Review
/code-review
> Review the changes in src/auth/
Adversarial Review (Before Merge)
/adversarial-reviewer --diff main...HEAD
> Spawns Saboteur, New Hire, and Security Auditor subagents in parallel.
> Each must find at least one issue. Findings caught by 2+ personas are
> promoted one severity level. Produces BLOCK / CONCERNS / CLEAN verdict.
Use this when /code-review came back clean too easily, or before merging
PRs with no human reviewer. The subagent isolation is what breaks the
self-review trap β each persona reviews with no knowledge of prior
conclusions.
Adversarial Codebase Audit (Inherited / Unfamiliar Repo)
/adversarial-reviewer --codebase
/adversarial-reviewer --codebase src/api
> Maps the codebase (structure, entry points, churn, tests), then each
> persona strategically deep-reads 5-10 files chosen by its own lens β
> Saboteur picks churning/stateful files, New Hire picks entry-point and
> knowledge-silo files, Security Auditor picks trust boundaries. Produces
> HIGH-RISK / MEDIUM-RISK / LOW-RISK verdict plus a "most-concerning area"
> summary.
Use this for onboarding audits, inherited-repo assessments, and periodic tech-debt checks. Findings are strategic-depth, not exhaustive β intentionally, because exhaustive whole-repo review from three personas isn't feasible.
Comprehensive Codebase Audit (Long-Running, Full Coverage)
/codebase-audit
/codebase-audit src/ # scope to subtree
/codebase-audit --resume # pick up from crash / previous session
/codebase-audit --only api # re-review just one partition
> Maps repo β proposes partition plan β STOPS for user approval β
> sequentially runs /adversarial-reviewer --codebase on each partition β
> synthesizes systemic findings β produces docs/audits/.../REPORT.md with
> risk register, architectural themes, and a remediation roadmap.
This is a multi-step orchestrator that delegates each partition review to
the adversarial-reviewer skill. Expect 200K-500K tokens and 30-60 minutes
for a typical ~500-file repo. Resumable β losing your session mid-audit
doesn't lose the work. Pair with /code-quality-audit for the quantitative
complement (coverage, complexity, cycles, mutation).
Document a Decision
/adr
> Document the decision to use JWT instead of sessions
Quality Gates (implement-phase)
Each phase passes through these gates:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PHASE PIPELINE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β ββββββββββββββββββββββ β
β β 1. Implementation β βββ Subagents write code β
β β [TDD optional] β (tests first if tdd_mode: true) β
β βββββββββββ¬βββββββββββ β
β β PASS β
β βΌ β
β ββββββββββββββββββββββ β
β β 2. verification-loopβ βββ 6-phase exit conditions (default) β
β β Build,Type,Lint, β Build β Type β Lint β Test β β
β β Test,Security, β Security β Diff β
β β Diff β β
β βββββββββββ¬βββββββββββ β
β β ALL 6 PASS β
β βΌ β
β ββββββββββββββββββββββ β
β β 3. Integration Test β βββ Claude tests via API/Playwright β
β βββββββββββ¬βββββββββββ β
β β PASS β
β βΌ β
β ββββββββββββββββββββββ βββββββββββββββββββββ β
β β 4. Code Review ββββββΆβ security-review β (optional) β
β β SRP, Patterns β β OWASP audit β β
β βββββββββββ¬βββββββββββ βββββββββββββββββββββ β
β β PASS β
β βΌ β
β ββββββββββββββββββββββ β
β β 5. ADR Compliance β βββ Follow & document decisions β
β βββββββββββ¬βββββββββββ β
β β PASS β
β βΌ β
β ββββββββββββββββββββββ β
β β 6. Plan Sync β βββ Verify work items completed β
β βββββββββββ¬βββββββββββ β
β β PASS β
β βΌ β
β ββββββββββββββββββββββ β
β β 7. Prompt Archive β βββ Move prompt to completed/ β
β βββββββββββ¬βββββββββββ β
β β PASS β
β βΌ β
β ββββββββββββββββββββββ β
β β 8. Complete β βββ Report to orchestrator β
β ββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Mandatory Exit Conditions (non-negotiable):
verification-loopmust PASS (all 6 phases: Build, Type, Lint, Test, Security, Diff)- Code review must return PASS β every recommendation is fixed; only informational NOTEs may remain
- All recommendations must be fixed - recommendations are blocking, not optional
- ADR compliance must PASS
Optional steps can be enabled via plan metadata:
security_review: true- Adds OWASP security audit step after code reviewtdd_mode: true- Enforces RED β GREEN β REFACTOR cycle with 80% coverage
Prompt Integration
The prompt-generator skill creates phase prompts that are automatically discovered:
prompt-generator β docs/prompts/phase-N-name.md
β
implement-plan discovers prompts automatically
β
implement-phase uses prompt for orchestration
β
On completion β docs/prompts/completed/
Orchestrator Pattern
Critical: implement-plan and implement-phase are ORCHESTRATORS. They never write code directly.
implement-plan (ORCHESTRATOR)
β β NEVER writes code
β β NEVER uses Write/Edit tools
β
βββ implement-phase (ORCHESTRATOR)
β β NEVER writes code
β
βββ Subagents (DO the work)
β
Write code
β
Create files
β
Run tests
Subagents must be concise - return only STATUS, FILES, ERRORS. Large outputs go to disk.
Code Review: Clean Baseline Principle
Every phase must end clean. Therefore:
- All errors at review time were introduced by this phase
- All errors are blocking - no exceptions
- Inherited codebase errors = our job to fix
Directory Structure
claude-skills-collection/
βββ .claude-plugin/ # NEW: plugin packaging (see documentation/03-plugin-distribution.md)
β βββ plugin.json # plugin manifest β name `devflow`, namespaces every skill
β βββ marketplace.json # marketplace catalog β name `mhylle`, source "./"
βββ skills/
β βββ adr/
β βββ adversarial-reviewer/ # NEW: Hostile-persona subagent review (Saboteur/New Hire/Security)
β βββ agent-creator/
β βββ brainstorm/
β βββ code-quality-audit/ # NEW: Metrics gate (coverage, complexity, size, deps, mutation)
β βββ code-review/
β βββ codebase-audit/ # NEW: Long-running full-codebase audit orchestrator
β βββ codebase-research/
β βββ context-saver/
β βββ continuous-learning/ # NEW: Pattern extraction
β βββ create-plan/
β βββ e2e-testing/
β βββ eval-harness/ # NEW: Formal evaluation framework
β βββ implement-phase/
β βββ implement-plan/
β βββ iterate-plan/
β βββ prompt-generator/
β βββ security-review/ # NEW: OWASP security audit
β βββ strategic-compact/ # NEW: Smart compaction suggestions
β βββ skill-visualizer/ # NEW: Interactive HTML visualizations
β βββ user-story/ # Hierarchical user stories with Given/When/Then
β βββ tt-create-build-loop/ # NEW: Writes an unattended TaskTracker build loop (template, lessons, token tooling)
β βββ workflow-guide/ # NEW: Recommends workflow mode
β βββ ship-issue/ # NEW: Issueβmerge pipeline (SKILL.md, references/, scripts/dashboard.py)
β βββ verification-loop/ # 6-phase verification
βββ agents/
β βββ browser-verification-agent.md # NEW: UI testing
β βββ implementer.md # role agent: code + tests (sonnet)
β βββ mechanic.md # role agent: checks, report-only (haiku)
β βββ reviewer.md # role agent: code/security review (opus)
β βββ codebase-analyzer.md
β βββ codebase-locator.md
β βββ codebase-pattern-finder.md
β βββ docs-analyzer.md
β βββ docs-locator.md
β βββ issue-planner.md # NEW: ship-issue planner (Fable 5)
β βββ merge-gate-reviewer.md # NEW: ship-issue merge-gate review (Fable 5)
β βββ tdd-implementer.md # NEW: ship-issue implementer (Opus 4.8)
β βββ staging-e2e-verifier.md # NEW: ship-issue staging E2E (Sonnet 4.6)
β βββ staging-log-verifier.md # NEW: ship-issue staging logs (Sonnet 4.6)
β βββ web-search-researcher.md
βββ hooks/
β βββ hooks.json # plugin default hooks location
βββ documentation/
β βββ 01-workflow-overview.md
β βββ 02-detailed-workflow.md
β βββ 03-plugin-distribution.md # NEW: packaging, publishing, versioning
βββ tests/
βββ docs/
β βββ decisions/ # ADRs
β βββ plans/ # Implementation plans
βββ LICENSE # NEW: MIT
βββ README.md
Design Principles
- Orchestration over Implementation: Skills coordinate, subagents execute - never write code directly
- Quality Gates: Every phase must pass ALL verification steps before proceeding
- Clean Baseline: Every phase ends clean; all errors are blocking, no exceptions
- Context Preservation: Subagents return concise responses; large outputs go to disk
- Extensibility: Pipeline steps can be added without core changes
- Parallel Execution: Independent tasks run concurrently via background subagents
- Precise References: All analysis includes file:line references
- Task-Based Progress: Progress tracked via Claude Code Task tools, not file modifications
Progress Tracking with Task Tools
This skill collection uses Claude Code's native Task tools for all progress tracking. This replaces the traditional approach of modifying plan file checkboxes.
Why Task Tools?
More from this repository10
Skill
Skill
Skill
Skill
Skill
Skill
Skill
Skill
Skill
Skill