Claude Code Tools

claude-code-workflows

github

Production-ready development workflows for Claude Code, powered by specialized AI agents.

Stars
⭐ 361
License
MIT
Last Updated
2026-05-20
Source
github

Claude Code Workflows 🚀

Claude Code GitHub Stars License: MIT PRs Welcome

End-to-end development workflows for Claude Code that produce code aligned with design docs and tests. Specialized agents handle requirements, design, implementation, and quality checks, so what you get is code that actually passes its tests and matches its design docs.


⚡ Quick Start

Which plugin should I start with?

Your workInstall
Backend, APIs, CLI tools, or general programmingdev-workflows
React / TypeScript frontenddev-workflows-frontend
Full-stack (backend + React)dev-workflows-fullstack (single plugin, replaces installing both)
You already have your own orchestration and just want the rulesdev-skills (skills only, see Skills only)

Common setup

# 1. Start Claude Code
claude

# 2. Add the marketplace
/plugin marketplace add shinpr/claude-code-workflows

Install and start building

# Backend or general
/plugin install dev-workflows@claude-code-workflows
/reload-plugins
/recipe-implement <your feature>

# Frontend
/plugin install dev-workflows-frontend@claude-code-workflows
/reload-plugins
/recipe-front-design <your feature>

# Fullstack (single plugin)
/plugin install dev-workflows-fullstack@claude-code-workflows
/reload-plugins
/recipe-fullstack-implement "Add user authentication with JWT + login form"

# Or execute from an existing fullstack work plan
/recipe-fullstack-build

The fullstack recipes create separate Design Docs per layer (backend + frontend), verify cross-layer consistency via design-sync, and route tasks to the appropriate executor based on filename patterns. See Fullstack Workflow for details.

Migration notice (v0.19.0): dev-workflows-fullstack is the new home for fullstack recipes. Installing both dev-workflows and dev-workflows-frontend works today, but causes duplicate skill descriptions to compete for context budget. The next release will remove recipe-fullstack-* from dev-workflows. If you do fullstack work, switch to dev-workflows-fullstack now.

Optional add-ons

These optional plugins cover adjacent stages in the workflow:

  • claude-code-discover: turns feature ideas into evidence-backed PRDs.
  • metronome: detects shortcut-taking behavior and nudges Claude to proceed step by step.
  • linear-prism: turns requirements into structured Linear tasks. Validates before decomposing, so downstream design starts clean.
/plugin install discover@claude-code-workflows
/plugin install metronome@claude-code-workflows
/plugin install linear-prism@claude-code-workflows

Skills only

If you already have your own orchestration (custom prompts, scripts, CI-driven loops) and want only the best-practice guides, use dev-skills. If you want Claude to plan, execute, and verify end-to-end, install dev-workflows.

  • Minimal context footprint (no agents or recipe skills loaded)
  • Drop-in best practices without changing your workflow
  • Works as a ruleset layer for your own orchestrator

Do not install alongside dev-workflows, dev-workflows-frontend, or dev-workflows-fullstack. Duplicate skills will be silently ignored. See details below.

# Install skills-only plugin
/plugin install dev-skills@claude-code-workflows

Skills auto-load when relevant. coding-principles activates during implementation, testing-principles during test writing, etc.

Switching between plugins:

# dev-skills -> dev-workflows
/plugin uninstall dev-skills@claude-code-workflows
/plugin install dev-workflows@claude-code-workflows

# dev-workflows -> dev-skills
/plugin uninstall dev-workflows@claude-code-workflows
/plugin install dev-skills@claude-code-workflows

Warning: dev-skills and dev-workflows / dev-workflows-frontend / dev-workflows-fullstack share the same skills. Installing more than one of them makes skill descriptions appear multiple times in the system context. Claude Code limits skill descriptions to ~2% of the context window. Exceeding this limit causes skills to be silently ignored. For fullstack work, install only dev-workflows-fullstack (do not install it alongside dev-workflows or dev-workflows-frontend).


🔧 How It Works

The Workflow

graph TB
    A[User Request] --> B[requirement-analyzer]

    B --> |"Large (6+ files)"| C[prd-creator]
    B --> |"Medium (3-5 files)"| CA[codebase-analyzer]
    B --> |"Small (1-2 files)"| E[Direct Implementation]

    C --> CA
    CA --> D[technical-designer]
    D --> CV[code-verifier]
    CV --> DR[document-reviewer]
    DR --> DS[design-sync]
    DS --> F[acceptance-test-generator]
    F --> G[work-planner]
    G --> H[task-decomposer]

    H --> I[task-executor]
    E --> I

    I --> J[quality-fixer]
    J --> K[Ready to Commit]

This figure shows how a request is routed by size (small / medium / large). Larger work goes through PRD, codebase analysis, and design before reaching implementation. Smaller work skips ahead.

The Diagnosis Workflow

graph LR
    P[Problem] --> INV[investigator]
    INV --> |Failure Points| VER[verifier]
    VER --> |Coverage Check| COV{Sufficient?}
    COV --> |Yes| SOL[solver]
    COV --> |No| INV
    SOL --> |Solutions + Steps| R[Report]

The diagnosis flow loops between investigator and verifier until path coverage is sufficient, then hands off to solver for tradeoff analysis.

The Reverse Engineering Workflow

graph TB
    subgraph Phase1[Phase 1: PRD Generation]
        CMD["/recipe-reverse-engineer"] --> SD[scope-discoverer unified]
        SD --> PRD[prd-creator]
        PRD --> CV1[code-verifier]
        CV1 --> DR1[document-reviewer]
    end

    subgraph Phase2[Phase 2: Design Doc Generation]
        TD[technical-designer] --> CV2[code-verifier]
        CV2 --> DR2[document-reviewer]
        DR2 --> DONE[Complete]
    end

    DR1 --> |"All PRDs Approved (reuse scope)"| TD

Reverse engineering runs in two phases. PRDs come first (one per discovered feature), then Design Docs reuse the scope without re-discovering it.

What Happens Behind the Scenes

  1. Analysis. requirement-analyzer determines task complexity and picks the workflow.
  2. Codebase Understanding. codebase-analyzer scans existing modules and dependencies before design (auth flows, schema definitions, dependency graph).
  3. Planning. PRD, UI Spec, Design Doc, and work plan are generated based on complexity.
  4. Execution. Specialized agents implement the plan autonomously.
  5. Quality. Tests run, types check, errors get fixed.
  6. Review. Implementation is verified against design docs.
  7. Done. Reviewed, tested, ready to commit.

Each phase runs in a fresh agent context, so earlier steps don’t bloat the context or interfere with later decisions.


⚡ Workflow Recipes

All workflow entry points use the recipe- prefix to distinguish them from knowledge skills. Type /recipe- and use tab completion to see all available recipes.

Backend & General Development (dev-workflows)

RecipePurposeWhen to Use
/recipe-implementEnd-to-end feature developmentNew features, complete workflows
/recipe-fullstack-implementEnd-to-end fullstack developmentDeprecated here — moving to dev-workflows-fullstack next release
/recipe-taskExecute single task with precisionBug fixes, small changes
/recipe-designCreate design documentationArchitecture planning
/recipe-planGenerate work plan from designPlanning phase
/recipe-prepare-implementationVerify implementation readiness and resolve gapsPre-build check that the work plan is implementable
/recipe-buildExecute from existing task planResume implementation
/recipe-fullstack-buildExecute fullstack task planDeprecated here — moving to dev-workflows-fullstack next release
/recipe-reviewVerify code against design docsPost-implementation check
/recipe-diagnoseInvestigate problems and derive solutionsBug investigation, root cause analysis
/recipe-reverse-engineerGenerate PRD/Design Docs from existing codeLegacy system documentation, codebase understanding
/recipe-add-integration-testsAdd integration/E2E tests to existing codeTest coverage for existing implementations
/recipe-update-docUpdate existing design documents with reviewSpec changes, review feedback, document maintenance

Frontend Development (dev-workflows-frontend)

The frontend plugin adds React-specific agents (component architecture, Testing Library, TypeScript-first quality checks) and UI Spec generation from optional prototype code.

RecipePurposeWhen to Use
/recipe-front-designCreate UI Spec + frontend Design DocReact component architecture, UI Spec
/recipe-front-planGenerate frontend work planComponent breakdown planning
/recipe-front-buildExecute frontend task planResume React implementation
/recipe-front-adjustAdjust an already-implemented UI with MCP-driven verificationVisual tweaks, component refinements that need design-source comparison
/recipe-front-reviewVerify code against design docsPost-implementation check
/recipe-taskExecute single task with precisionComponent fixes, small updates
/recipe-diagnoseInvestigate problems and derive solutionsBug investigation, root cause analysis
/recipe-update-docUpdate existing design documents with reviewSpec changes, review feedback, document maintenance

Tip: Both plugins share /recipe-task, /recipe-diagnose, and /recipe-update-doc. /recipe-update-doc auto-detects the document’s layer. If your project has frontend Design Docs, the frontend plugin is needed to update them. For reverse engineering, use /recipe-reverse-engineer with the fullstack option to generate both backend and frontend Design Docs in a single workflow.


📦 Specialized Agents

The workflow uses specialized agents for each stage of the development lifecycle.

Shared Agents (Available in Both Plugins)

These agents work the same way whether you’re building a REST API or a React app:

AgentWhat It Does
requirement-analyzerFigures out how complex your task is and picks the right workflow
codebase-analyzerAnalyzes existing codebase before design to produce focused guidance for technical-designer
work-plannerBreaks down design docs into actionable tasks
task-decomposerSplits work into small, commit-ready chunks
code-reviewerChecks your code against design docs to make sure nothing is missing
document-reviewerReviews single document quality, completeness, and rule compliance
design-syncVerifies consistency across multiple Design Docs and detects conflicts
investigatorMaps execution paths, identifies failure points with causal chains for problem diagnosis
verifierValidates failure points, checks path coverage using Devil’s Advocate method
solverGenerates solutions with tradeoff analysis and implementation steps
security-reviewerReviews implementation for security compliance after all tasks complete

Backend-Specific Agents (dev-workflows)

AgentWhat It Does
prd-creatorWrites product requirement docs for complex features
technical-designerPlans architecture and tech stack decisions
scope-discovererDiscovers functional scope from codebase for reverse engineering
code-verifierValidates consistency between documentation and code implementation
acceptance-test-generatorCreates E2E and integration test scaffolds from requirements
integration-test-reviewerReviews integration/E2E tests for skeleton compliance and quality
task-executorImplements backend features with TDD
quality-fixerRuns tests, fixes type errors, handles linting (everything quality-related)
rule-advisorPicks the best coding rules for your current task

Frontend-Specific Agents (dev-workflows-frontend)

AgentWhat It Does
prd-creatorWrites product requirement docs for complex features
ui-spec-designerCreates UI Specifications from PRD and optional prototype code
ui-analyzerReads the project’s external-resources file, fetches design / design-system / guideline sources via inherited MCP access, and analyzes existing UI code
technical-designer-frontendPlans React component architecture and state management
task-executor-frontendImplements React components with Testing Library
code-verifierValidates consistency between documentation and code implementation
quality-fixer-frontendHandles React-specific tests, TypeScript checks, and builds
rule-advisorPicks the best coding rules for your current task
design-syncVerifies consistency across multiple Design Docs and detects conflicts

📚 Built-in Best Practices

The backend plugin includes proven best practices that work with any language:

  • Coding Principles. Code quality standards.
  • Testing Principles. TDD, coverage, test patterns.
  • Implementation Approach. Design decisions and trade-offs.
  • Documentation Standards. Clear, maintainable docs.
  • External Resource Context. Two-tier file recording how to reach resources outside the repo (design source, design system, API schema, IaC, etc.). Available across all three plugins.

These are loaded as skills and automatically applied by agents when relevant.

The frontend plugin has React and TypeScript-specific rules built in.


🎯 Typical Workflows

Backend Feature Development

/recipe-implement "Add user authentication with JWT"

# What you get:
# - PRD, ADR (when applicable), and Design Doc with acceptance criteria
# - Work plan decomposed into commit-ready tasks
# - Backend implementation with TDD, type-checked and linted
# - Code review against the Design Doc before completion

Frontend Feature Development

/recipe-front-design "Build a user profile dashboard"
# 1. requirement-analyzer determines scale
# 2. External-resource hearing captures design source / design system / visual verification access
# 3. codebase-analyzer + ui-analyzer gather facts in parallel
# 4. Optional prototype code is placed under docs/ui-spec/assets/
# 5. UI Spec captures screen structure, components, and interactions
# 6. Frontend Design Doc inherits UI Spec decisions

# Then run:
/recipe-front-build
# Implements components with Testing Library, handles TypeScript types,
# fixes lint and build errors, and commits per task.

Why UI Spec exists. Prototypes capture the visual surface, but rarely the loading, error, empty, and partial states that appear during integration.

For example, two components might each handle their own loading state cleanly while the dashboard that combines them has no defined behavior when one is still loading and the other has errored. UI Spec captures these state-x-display matrices and traces them into the Design Doc and test skeletons, so integration breakage is caught early.

Fullstack Workflow

/recipe-fullstack-implement "Add user authentication with JWT + React login form"

# What happens:
# 1. requirement-analyzer determines scale
# 2. PRD covers the entire feature (single doc for all layers)
# 3. UI Spec captures the screen structure (with optional prototype)
# 4. Separate Design Docs per layer (backend, frontend)
# 5. design-sync verifies cross-layer consistency
# 6. Work plan composes vertical feature slices
# 7. task-decomposer produces layer-aware task files
# 8. Each task routes to its layer-appropriate executor and quality-fixer
# 9. Vertical slices commit early so integration is verified per phase

Install dev-workflows-fullstack for fullstack recipes. Tasks are routed based on filename patterns (*-backend-task-*, *-frontend-task-*). For reverse engineering existing fullstack codebases, use /recipe-reverse-engineer with the fullstack option.

UI Adjustment (Frontend Plugin)

/recipe-front-adjust "Tighten Card spacing and align action buttons with the design source"

# What you get:
# - External-resource hearing (saved to docs/project-context/external-resources.md, reused across runs)
# - ui-analyzer fetches design source via MCP and proposes a write set for confirmation
# - Edit / MCP-verify / refine loop in the parent session until the result matches the design source
# - quality-fixer-frontend scoped to edited files, then commit per adjustment unit

Quick Fixes (Both Plugins)

/recipe-task "Fix validation error message"

# Direct implementation with quality checks. Works the same in both plugins.

Code Review

/recipe-review

# Checks your implementation against design docs and reports gaps.

Problem Diagnosis (Both Plugins)

/recipe-diagnose "API returns 500 error on user login"

# What happens:
# 1. investigator maps execution paths and identifies failure points
# 2. verifier checks path coverage and validates each failure point
# 3. Re-investigates if coverage is insufficient (up to 2 iterations)
# 4. solver generates solutions with tradeoff analysis
# 5. Presents actionable implementation steps

Reverse Engineering

/recipe-reverse-engineer "src/auth module"

# What happens:
# 1. Discovers functional scope (user-value + technical) in a single pass
# 2. Generates PRD for each feature unit
# 3. Verifies PRD against actual code
# 4. Reviews and revises until consistent
# 5. Generates Design Docs with code verification
# 6. Produces complete documentation from existing code
#
# Fullstack option: generates both backend and frontend Design Docs per feature unit

If you’re working with undocumented legacy code, these commands generate PRD and design docs to make it AI-friendly. For a quick walkthrough, see: How I Made Legacy Code AI-Friendly with Auto-Generated Docs


📂 Repository Structure

claude-code-workflows/
├── .claude-plugin/
│   └── marketplace.json        # Defines all plugins and curates per-plugin agent/skill subsets

├── agents/                     # Shared agents (curated per plugin via marketplace.json)
│   ├── codebase-analyzer.md     # Pre-design codebase analysis
│   ├── code-reviewer.md
│   ├── code-verifier.md        # Design verification & reverse engineering
│   ├── investigator.md         # Diagnosis workflow
│   ├── verifier.md             # Diagnosis workflow
│   ├── solver.md               # Diagnosis workflow
│   ├── scope-discoverer.md     # Reverse engineering workflow
│   ├── task-executor.md
│   ├── technical-designer.md
│   ├── ui-analyzer.md          # Frontend UI fact gathering
│   └── ...

├── skills/                     # Shared skills (knowledge + recipe workflows)
│   ├── recipe-implement/       # Workflow entry points (recipe-* prefix)
│   ├── recipe-design/
│   ├── recipe-diagnose/
│   ├── recipe-reverse-engineer/
│   ├── recipe-plan/
│   ├── recipe-build/
│   ├── ... (recipe skills)

│   ├── ai-development-guide/   # Knowledge skills (auto-loaded by agents)
│   ├── coding-principles/
│   ├── testing-principles/
│   ├── implementation-approach/
│   ├── external-resource-context/  # Cross-cutting: external resources
│   ├── typescript-rules/       # Frontend-specific
│   └── ...

├── LICENSE
└── README.md

🤔 FAQ

Q: Do I need to learn special commands?

A: Not really. For backend, just use /recipe-implement. For frontend, use /recipe-front-design. The plugins handle everything else automatically.

Q: What if there are errors?

A: The quality-fixer agents (one in each plugin) automatically fix most issues like test failures, type errors, and lint problems. If something cannot be auto-fixed, you’ll get clear guidance on what needs attention.

Q: Is there a version for OpenAI Codex CLI?

A: Yes. codex-workflows provides the same end-to-end development workflows for Codex CLI. Same concept (specialized subagents for requirements, design, implementation, and quality checks), adapted for the Codex CLI environment.

Q: Should I commit the work plan and task files in docs/plans/?

A: No. Recipes treat docs/plans/ as ephemeral working state. Work plans, task files, prep tasks, review-fix tasks, and intermediate analysis files all live there during a recipe run and are cleaned up at the end. Add the following line to your project’s .gitignore so working state stays out of git:

docs/plans/

PRDs, ADRs, UI Specs, and Design Docs live in their own directories (docs/prd/, docs/adr/, docs/ui-spec/, docs/design/) and are intended to be committed.


🔌 Contributing External Plugins

This marketplace supports the full lifecycle of building products with AI: product quality, discovery, implementation control, and verification. If your plugin helps developers build better products with AI coding agents, we’d like to hear from you.

See CONTRIBUTING.md for submission guidelines and acceptance criteria.


📄 License

MIT License. Free to use, modify, and distribute.

See LICENSE for full details.


Built and maintained by @shinpr.