An open API service indexing awesome lists of open source software.

https://github.com/shinpr/claude-code-workflows

Production-ready development workflows for Claude Code, powered by specialized AI agents.
https://github.com/shinpr/claude-code-workflows

agent-skills agentic-ai ai-agents automation claude-code claude-code-plugin code-quality developer-tools development-workflow productivity prompt-engineering skills

Last synced: 6 days ago
JSON representation

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

Awesome Lists containing this project

README

          

# Claude Code Workflows ๐Ÿš€

[![Claude Code](https://img.shields.io/badge/Claude%20Code-Plugin-purple)](https://claude.ai/code)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/shinpr/claude-code-workflows/pulls)

**Build production-ready software with Claude Code** - Plugins and tools that bring best practices, specialized agents, automated quality checks, and safety guardrails to your development process.

---

## โšก Quick Start

This marketplace includes the following plugins:

- **dev-workflows** - Backend and general-purpose development
- **dev-workflows-frontend** - React/TypeScript specialized workflows

### External Plugins

- **[metronome](https://github.com/shinpr/metronome)** - During repetitive tasks, Claude may switch to bulk bash operations under the guise of "working efficiently," potentially breaking files. This plugin detects that behavior and intercepts execution, nudging Claude to slow down and proceed step by step.

Choose what fits your project:

### Backend or General Development

```bash
# 1. Start Claude Code
claude

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

# 3. Install backend plugin
/plugin install dev-workflows@claude-code-workflows

# 4. Restart session (required)
# Exit and restart Claude Code

# 5. Start building
/implement
```

### Frontend Development (React/TypeScript)

```bash
# 1-2. Same as above (start Claude Code and add marketplace)

# 3. Install frontend plugin
/plugin install dev-workflows-frontend@claude-code-workflows

# 4-5. Same as above (restart and start building)

# Use frontend-specific commands
/front-design
```

### Full-Stack Development

Install both plugins to get the complete toolkit for backend and frontend work.

### External Plugins

```bash
# Install metronome (prevents shortcut-taking behavior)
/plugin install metronome@claude-code-workflows
```

> **Note**: If you encounter SSH errors during installation, see [SSH Setup FAQ](#ssh-authentication-error-during-plugin-installation) below.

---

## ๐Ÿ”ง How It Works

### The Workflow

```mermaid
graph TB
A[๐Ÿ‘ค User Request] --> B[๐Ÿ” requirement-analyzer]

B --> |"๐Ÿ“ฆ Large (6+ files)"| C[๐Ÿ“„ prd-creator]
B --> |"๐Ÿ“ฆ Medium (3-5 files)"| D[๐Ÿ“ technical-designer]
B --> |"๐Ÿ“ฆ Small (1-2 files)"| E[โšก Direct Implementation]

C --> D
D --> 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]
```

### The Diagnosis Workflow

```mermaid
graph LR
P[๐Ÿ› Problem] --> INV[๐Ÿ” investigator]
INV --> |Evidence Matrix| ASS{Complex?}
ASS --> |Yes| VER[โš–๏ธ verifier]
ASS --> |No| SOL[๐Ÿ’ก solver]
VER --> |Validated Conclusion| SOL
SOL --> |Solutions + Steps| R[๐Ÿ“‹ Report]
```

### The Reverse Engineering Workflow

```mermaid
graph TB
subgraph Phase1[Phase 1: PRD Generation]
CMD[๐Ÿ“œ /reverse-engineer] --> SD1[๐Ÿ” scope-discoverer]
SD1 --> PRD[๐Ÿ“„ prd-creator]
PRD --> CV1[โœ… code-verifier]
CV1 --> DR1[๐Ÿ“‹ document-reviewer]
end

subgraph Phase2[Phase 2: Design Doc Generation]
SD2[๐Ÿ” scope-discoverer] --> DD[๐Ÿ“ technical-designer]
DD --> CV2[โœ… code-verifier]
CV2 --> DR2[๐Ÿ“‹ document-reviewer]
DR2 --> DONE[๐Ÿ“š Complete]
end

DR1 --> |All PRDs Approved| SD2
```

### What Happens Behind the Scenes

1. **Analysis** - Figures out how complex your task is
2. **Planning** - Creates the right docs (PRD, design doc, work plan) based on complexity
3. **Execution** - Specialized agents handle implementation autonomously
4. **Quality** - Runs tests, checks types, fixes errors automatically
5. **Review** - Makes sure everything matches the design
6. **Done** - Clean, production-ready code

---

## โšก Workflow Commands

### Backend & General Development (dev-workflows)

| Command | Purpose | When to Use |
|---------|---------|-------------|
| `/implement` | End-to-end feature development | New features, complete workflows |
| `/task` | Execute single task with precision | Bug fixes, small changes |
| `/design` | Create design documentation | Architecture planning |
| `/plan` | Generate work plan from design | Planning phase |
| `/build` | Execute from existing task plan | Resume implementation |
| `/review` | Verify code against design docs | Post-implementation check |
| `/diagnose` | Investigate problems and derive solutions | Bug investigation, root cause analysis |
| `/reverse-engineer` | Generate PRD/Design Docs from existing code | Legacy system documentation, codebase understanding |
| `/add-integration-tests` | Add integration/E2E tests to existing code | Test coverage for existing implementations |
| `/update-doc` | Update existing design documents with review | Spec changes, review feedback, document maintenance |

### Frontend Development (dev-workflows-frontend)

| Command | Purpose | When to Use |
|---------|---------|-------------|
| `/front-design` | Create frontend design docs | React component architecture |
| `/front-plan` | Generate frontend work plan | Component breakdown planning |
| `/front-build` | Execute frontend task plan | Resume React implementation |
| `/front-review` | Verify code against design docs | Post-implementation check |
| `/front-reverse-design` | Generate frontend Design Docs from existing code using PRD | Frontend component documentation |
| `/task` | Execute single task with precision | Component fixes, small updates |
| `/diagnose` | Investigate problems and derive solutions | Bug investigation, root cause analysis |
| `/update-doc` | Update existing design documents with review | Spec changes, review feedback, document maintenance |

> **Tip**: Both plugins share `/task`, `/diagnose`, and `/update-doc` commands with the same functionality. For reverse engineering, use `/reverse-engineer` (backend) to generate PRD, then `/front-reverse-design` (frontend) to generate frontend Design Docs from that PRD.

---

## ๐Ÿ“ฆ Specialized Agents

### Shared Agents (Available in Both Plugins)

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

| Agent | What It Does |
|-------|--------------|
| **requirement-analyzer** | Figures out how complex your task is and picks the right workflow |
| **work-planner** | Breaks down design docs into actionable tasks |
| **task-decomposer** | Splits work into small, commit-ready chunks |
| **code-reviewer** | Checks your code against design docs to make sure nothing's missing |
| **document-reviewer** | Reviews single document quality, completeness, and rule compliance |
| **design-sync** | Verifies consistency across multiple Design Docs and detects conflicts |
| **investigator** | Collects evidence, enumerates hypotheses, builds evidence matrix for problem diagnosis |
| **verifier** | Validates investigation results using ACH and Devil's Advocate methods |
| **solver** | Generates solutions with tradeoff analysis and implementation steps |
| **scope-discoverer** | Discovers PRD/Design Doc targets from codebase for reverse engineering |
| **code-verifier** | Validates consistency between documentation and code implementation |

### Backend-Specific Agents (dev-workflows)

| Agent | What It Does |
|-------|--------------|
| **prd-creator** | Writes product requirement docs for complex features |
| **technical-designer** | Plans architecture and tech stack decisions |
| **acceptance-test-generator** | Creates E2E and integration test scaffolds from requirements |
| **integration-test-reviewer** | Reviews integration/E2E tests for skeleton compliance and quality |
| **task-executor** | Implements backend features with TDD |
| **quality-fixer** | Runs tests, fixes type errors, handles linting - everything quality-related |
| **rule-advisor** | Picks the best coding rules for your current task |

### Frontend-Specific Agents (dev-workflows-frontend)

| Agent | What It Does |
|-------|--------------|
| **prd-creator** | Writes product requirement docs for complex features |
| **technical-designer-frontend** | Plans React component architecture and state management |
| **task-executor-frontend** | Implements React components with Testing Library |
| **quality-fixer-frontend** | Handles React-specific tests, TypeScript checks, and builds |
| **rule-advisor** | Picks the best coding rules for your current task |
| **design-sync** | Verifies 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

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

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

---

## ๐Ÿš€ Why Use These Plugins?

### The Problem

When building with AI coding assistants, you often run into:

- Context gets exhausted in long sessions
- Code quality drops over time
- Patterns become inconsistent
- You end up fixing test failures and type errors manually

### The Solution

These plugins fix that by:

- **Fresh context for each phase** - Specialized agents handle different parts without context exhaustion
- **Enforced best practices** - Language-agnostic rules (backend) and React patterns (frontend) keep quality consistent
- **Automated quality checks** - Tests, types, and linting run automatically and get fixed if they fail
- **Complete lifecycle** - From requirements to implementation to review

### Frontend-Specific Benefits

The frontend plugin is built specifically for React development:

- Component architecture planning with state management decisions
- React Testing Library integration from the start
- TypeScript-first approach with automatic type generation
- Handles build errors, test failures, and type issues automatically

---

## ๐Ÿ’ก Real-World Examples

### What People Have Built

#### [Sub-Agents MCP Server](https://github.com/shinpr/sub-agents-mcp)
Built in 2 days - 30 TypeScript files with full test coverage, now running in production.

#### [MCP Image Generator](https://github.com/shinpr/mcp-image)
Built in 1.5 days - Complete creative tool with multi-image blending and character consistency.

> The right workflow structure + specialized agents = production-quality code at AI speed.

---

## ๐ŸŽฏ Typical Workflows

### Backend Feature Development

```bash
/implement "Add user authentication with JWT"

# What happens:
# 1. Analyzes your requirements
# 2. Creates design documents
# 3. Breaks down into tasks
# 4. Implements with TDD
# 5. Runs tests and fixes issues
# 6. Reviews against design docs
```

### Frontend Feature Development

```bash
/front-design "Build a user profile dashboard"

# What happens:
# 1. Plans React component structure
# 2. Defines state management approach
# 3. Creates work plan
#
# Then run:
/front-build

# This:
# 1. Implements components with Testing Library
# 2. Writes tests for each component
# 3. Handles TypeScript types
# 4. Fixes lint and build errors
```

### Quick Fixes (Both Plugins)

```bash
/task "Fix validation error message"

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

### Code Review

```bash
/review

# Checks your implementation against design docs
# Catches missing features or inconsistencies
```

### Problem Diagnosis (Both Plugins)

```bash
/diagnose "API returns 500 error on user login"

# What happens:
# 1. Investigator collects evidence from code, logs, git history
# 2. Builds evidence matrix with multiple hypotheses
# 3. Verifier validates findings with ACH and Devil's Advocate
# 4. Solver generates solutions with tradeoff analysis
# 5. Presents actionable implementation steps
```

### Reverse Engineering

**Backend (dev-workflows):**

```bash
/reverse-engineer "src/auth module"

# What happens:
# 1. Discovers PRD targets (user value units) from code
# 2. Generates PRD for each feature
# 3. Verifies PRD against actual code
# 4. Reviews and revises until consistent
# 5. Discovers Design Doc targets (technical components)
# 6. Generates backend Design Docs with code verification
# 7. Produces complete documentation from existing code
```

**Frontend (dev-workflows-frontend):**

```bash
# First, generate PRD using backend plugin's /reverse-engineer
# Then, generate frontend Design Docs from existing PRD:

/front-reverse-design "docs/prd/my-feature-prd.md"

# What happens:
# 1. Uses existing PRD as basis
# 2. Discovers frontend component targets
# 3. Generates frontend Design Docs with code verification
# 4. Reviews and revises until consistent
```

> If you're working with undocumented legacy code, these commands are designed to make it AI-friendly by generating PRD and design docs.
> For a quick walkthrough, see: [How I Made Legacy Code AI-Friendly with Auto-Generated Docs](https://dev.to/shinpr/how-i-made-legacy-code-ai-friendly-with-auto-generated-docs-4353)

---

## ๐Ÿ“‚ Repository Structure

```
claude-code-workflows/
โ”œโ”€โ”€ .claude-plugin/
โ”‚ โ””โ”€โ”€ marketplace.json # Manages both plugins
โ”‚
โ”œโ”€โ”€ agents/ # Shared agents (symlinked by both plugins)
โ”‚ โ”œโ”€โ”€ code-reviewer.md
โ”‚ โ”œโ”€โ”€ investigator.md # Diagnosis workflow
โ”‚ โ”œโ”€โ”€ verifier.md # Diagnosis workflow
โ”‚ โ”œโ”€โ”€ solver.md # Diagnosis workflow
โ”‚ โ”œโ”€โ”€ scope-discoverer.md # Reverse engineering workflow
โ”‚ โ”œโ”€โ”€ code-verifier.md # Reverse engineering workflow
โ”‚ โ”œโ”€โ”€ task-executor.md
โ”‚ โ”œโ”€โ”€ technical-designer.md
โ”‚ โ””โ”€โ”€ ... (17 agents total)
โ”‚
โ”œโ”€โ”€ commands/ # Shared commands
โ”‚ โ”œโ”€โ”€ implement.md
โ”‚ โ”œโ”€โ”€ design.md
โ”‚ โ”œโ”€โ”€ diagnose.md # Problem diagnosis
โ”‚ โ”œโ”€โ”€ reverse-engineer.md # Reverse documentation
โ”‚ โ”œโ”€โ”€ plan.md
โ”‚ โ”œโ”€โ”€ build.md
โ”‚ โ””โ”€โ”€ ... (10 commands for backend, 8 for frontend)
โ”‚
โ”œโ”€โ”€ skills/ # Skills (auto-loaded by agents)
โ”‚ โ”œโ”€โ”€ ai-development-guide/
โ”‚ โ”œโ”€โ”€ coding-principles/
โ”‚ โ”œโ”€โ”€ testing-principles/
โ”‚ โ”œโ”€โ”€ implementation-approach/
โ”‚ โ”œโ”€โ”€ typescript-rules/ # Frontend-specific
โ”‚ โ””โ”€โ”€ ... (11 skills total)
โ”‚
โ”œโ”€โ”€ backend/ # dev-workflows plugin
โ”‚ โ”œโ”€โ”€ agents/ # Symlinks to shared agents
โ”‚ โ”œโ”€โ”€ commands/ # Symlinks to shared commands
โ”‚ โ”œโ”€โ”€ skills/ # Symlinks to shared skills
โ”‚ โ””โ”€โ”€ .claude-plugin/
โ”‚ โ””โ”€โ”€ plugin.json
โ”‚
โ”œโ”€โ”€ frontend/ # dev-workflows-frontend plugin
โ”‚ โ”œโ”€โ”€ agents/ # Symlinks to shared agents
โ”‚ โ”œโ”€โ”€ commands/ # Symlinks to shared commands
โ”‚ โ”œโ”€โ”€ skills/ # Symlinks to shared skills
โ”‚ โ””โ”€โ”€ .claude-plugin/
โ”‚ โ””โ”€โ”€ plugin.json
โ”‚
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ README.md
```

---

## ๐Ÿค” FAQ

**Q: Which plugin should I install?**

A: Depends on what you're building:
- **Backend, APIs, CLI tools, or general programming** โ†’ Install `dev-workflows`
- **React apps** โ†’ Install `dev-workflows-frontend`
- **Full-stack projects** โ†’ Install both

Both plugins can run side-by-side without conflicts.

**Q: Can I use both plugins at the same time?**

A: Yes! They're designed to work together. Install both if you're building a full-stack app.

**Q: Do I need to learn special commands?**

A: Not really. For backend, just use `/implement`. For frontend, use `/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 can't be auto-fixed, you'll get clear guidance on what needs attention.

**Q: SSH authentication error during plugin installation?**
A: Set up SSH keys for GitHub:

```bash
# 1. Check if SSH key already exists
ls ~/.ssh/id_ed25519.pub

# 2. Generate new SSH key (if needed)
ssh-keygen -t ed25519 -C "your_email@example.com"
# โ†’ Press Enter to save to default location
# โ†’ Enter a strong passphrase when prompted (recommended for security)

# 3. Add SSH key to ssh-agent
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519

# 4. Copy public key to clipboard
cat ~/.ssh/id_ed25519.pub
# โ†’ Copy the output

# 5. Add to GitHub
# Go to https://github.com/settings/keys
# Click "New SSH key"
# Paste your public key and save

# 6. Test connection
ssh -T git@github.com
# โ†’ Should see: "Hi username! You've successfully authenticated..."
```

---

## ๐Ÿ“„ License

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

See [LICENSE](LICENSE) for full details.

---

**Happy Coding with Claude Code Workflows!** ๐Ÿš€โœจ