A meta-toolkit for creating optimized Claude Code workflows. Generate complete, production-ready workflows with commands, skills, agents, hooks, and documentation.
- Intelligent Artifact Selection - Decision tree for choosing optimal artifact types
- Context Detection - Auto-detect project language, framework, and conventions
- Quality Patterns - Production-ready security, formatting, CI/CD patterns
- Automated Validation - Validator agent checks all artifacts
- Complete Templates - All 12 hook events, context:fork, async hooks, skill preloading
# Add marketplace
/plugin marketplace add mit17k/claude-code-workflow
# Install plugin
/plugin install claude-code-workflow --scope projectOr use the interactive UI:
/plugin
# → Marketplaces tab → Add → "mit17k/claude-code-workflow"
# → Discover tab → Search "claude-code-workflow" → Installclaude --plugin-dir ./plugin/claude-code-workflow/claude-code-workflow:workflow Create <name>. <description>Example:
/claude-code-workflow:workflow Create code-review. Automated code review with security scanning, performance analysis, and quality checks. Should use subagents for parallel analysis.This generates:
- Commands in
.claude/commands/ - Skills in
.claude/skills/ - Agents in
.claude/agents/ - Hooks in
.claude/settings.json - Documentation in
docs/claude-code/<name>-workflow.md
/claude-code-workflow:workflow Update <doc-path>. <changes to make>Example:
/claude-code-workflow:workflow Update docs/claude-code/code-review-workflow.md. Add test coverage checking and fail if below 80%./claude-code-workflow:workflow Create tdd. TDD workflow that generates tests before implementation. Follow red-green-refactor pattern./claude-code-workflow:workflow Create security-review. Security-focused code review for auth and input validation. Use parallel agents for OWASP analysis./claude-code-workflow:workflow Create format. Auto-format code on save using project's existing formatter.plugin/claude-code-workflow/
├── .claude-plugin/
│ ├── plugin.json # Plugin metadata
│ └── marketplace.json # Marketplace registry
├── commands/claude/
│ └── workflow.md # Main workflow factory command
├── skills/
│ ├── artifact-selector/ # Artifact type decision tree
│ ├── context-detector/ # Project detection
│ ├── quality-patterns/ # Security/formatting patterns
│ └── workflow-optimization/ # Token optimization rules
├── agents/
│ └── workflow-validator.md
├── templates/ # Reference templates
│ ├── command.template.md
│ ├── skill.template.md
│ ├── agent.template.md
│ ├── hook.template.md
│ ├── claude-md.template.md
│ └── workflow-doc.template.md
└── README.md
[/claude-code-workflow:workflow Create <name>. <description>]
│
▼
┌───────────────────────┐
│ 1. Parse Arguments │
│ Extract: name, desc│
└───────────────────────┘
│
▼
┌───────────────────────┐
│ 2. Detect Context │ ◄─── context-detector skill
│ Language/Framework │
│ Existing patterns │
└───────────────────────┘
│
▼
┌───────────────────────┐
│ 3. Select Artifacts │ ◄─── artifact-selector skill
│ Decision tree │
│ Redundancy check │
└───────────────────────┘
│
▼
┌───────────────────────┐
│ 4. Read Templates │ ◄─── Updated templates
│ All 12 hook events │
│ context:fork │
│ async, prompt/agent│
└───────────────────────┘
│
▼
┌───────────────────────┐
│ 5. Generate Artifacts │ ◄─── quality-patterns skill
│ Apply optimization │
│ Match conventions │
└───────────────────────┘
│
▼
┌───────────────────────┐
│ 6. Validate │ ◄─── workflow-validator agent
│ Check all artifacts│
│ Verify dependencies│
│ Test hooks │
└───────────────────────┘
│
▼
┌───────────────────────┐
│ 7. Document │
│ Create/Update docs │
│ Add changelog │
└───────────────────────┘
[/claude-code-workflow:workflow Update <doc-path>. <changes>]
│
▼
┌───────────────────────┐
│ Read Workflow Doc │
│ Parse artifact list │
└───────────────────────┘
│
▼
┌───────────────────────┐
│ Analyze Changes │
│ Map to artifacts │
└───────────────────────┘
│
▼
┌───────────────────────┐
│ Apply Modifications │
│ Update each artifact │
└───────────────────────┘
│
▼
┌───────────────────────┐
│ Validate Changes │ ◄─── workflow-validator agent
└───────────────────────┘
│
▼
┌───────────────────────┐
│ Update Documentation │
│ Add changelog entry │
└───────────────────────┘
┌─────────────────────────┐
│ /claude:workflow │
│ (main command) │
└───────────┬─────────────┘
│
┌───────────────────┼───────────────────┐
│ │ │
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ context- │ │ artifact- │ │ quality- │
│ detector │ │ selector │ │ patterns │
│ skill │ │ skill │ │ skill │
└───────────────┘ └───────────────┘ └───────────────┘
│ │ │
└───────────────────┼───────────────────┘
│
▼
┌─────────────────────────┐
│ workflow-validator │
│ agent │
└─────────────────────────┘
| Artifact | Location | Purpose |
|---|---|---|
| Commands | .claude/commands/ |
User-invoked slash commands |
| Skills | .claude/skills/ |
Auto-invoked knowledge bases |
| Agents | .claude/agents/ |
Specialized subagents |
| Hooks | .claude/settings.json |
Lifecycle event handlers |
| Documentation | docs/claude-code/ |
Workflow docs (enables updates) |
| Skill | Description |
|---|---|
artifact-selector |
Decision tree for choosing artifact types |
context-detector |
Project language/framework detection |
quality-patterns |
Security, formatting, CI/CD hook patterns |
workflow-optimization |
Token optimization rules and validation |
| Agent | Description |
|---|---|
workflow-validator |
Read-only artifact validation |
| Template | Purpose |
|---|---|
command.template.md |
Slash command structure |
skill.template.md |
Model-invoked skill structure |
agent.template.md |
Subagent definitions |
hook.template.md |
Lifecycle hook configuration (all 12 events) |
claude-md.template.md |
Project memory files |
workflow-doc.template.md |
Workflow documentation |
claude --plugin-dir ./plugin/claude-code-workflowAll plugin content lives in plugin/claude-code-workflow/. Edit files there directly.
See CLAUDE.md for detailed guidance on modifying the plugin.
- Update version in
plugin/claude-code-workflow/.claude-plugin/plugin.json - Commit and push to GitHub
/plugin marketplace list
# Verify mit17k/claude-code-workflow is listed/plugin
# Check claude-code-workflow in Installed tabSkills are auto-invoked based on context. Try mentioning:
- "design a workflow" (triggers artifact-selector)
- "detect project type" (triggers context-detector)
- "add security hooks" (triggers quality-patterns)
- Claude Code CLI
- A project directory to generate workflows into
MIT