Claude Code Recipes

September 6, 2026 ยท View on GitHub

CI

47 copy-paste recipes for Claude Code - commands, subagents, hooks, skills, and MCP configs that work out of the box.

Stop configuring from scratch. Drop these recipes into your .claude/ folder and start building.

Something installed but silent? Claude Code config fails quietly, so start at TROUBLESHOOTING.md.


How to Use

  1. Browse the recipe catalog below
  2. Copy the file you need
  3. Paste it into your project's .claude/ directory:
    • Commands go in .claude/commands/
    • Subagents go in .claude/agents/
    • Skills go in .claude/skills/
    • Hooks go in .claude/settings.json
    • MCP configs go in .mcp.json
  4. Use it immediately - every recipe works out of the box

Recipe Catalog

Commands (15 recipes)

Drop these into .claude/commands/ and use them with /command-name.

RecipeWhat It DoesModelLink
/code-reviewReview staged changes for bugs, style, and securitysonnetcode-review.md
/pr-descriptionGenerate PR title + description from branch diffhaikupr-description.md
/commit-messageGenerate conventional commit messagehaikucommit-message.md
/refactorPlan and execute a refactoring with safety checkssonnetrefactor.md
/test-genGenerate tests for a file or functionsonnettest-gen.md
/doc-genGenerate documentation for codehaikudoc-gen.md
/debugSystematic debugging: reproduce, isolate, fix, verifyopusdebug.md
/migrateMigrate between framework versions or languagesopusmigrate.md
/security-auditScan for OWASP Top 10 vulnerabilitiessonnetsecurity-audit.md
/performance-auditFind performance bottleneckssonnetperformance-audit.md
/api-genGenerate REST endpoints from a specsonnetapi-gen.md
/component-genGenerate React/Vue components from descriptionsonnetcomponent-gen.md
/check-all-prsCheck all open PRs across your GitHub reposhaikucheck-all-prs.md
/audit-reposAudit all repos for health, hygiene, and securitysonnetaudit-repos.md
/update-statusRefresh a STATUS.md dashboard with live GitHub datasonnetupdate-status.md

Subagents (9 recipes)

Drop these into .claude/agents/ for specialized delegation.

RecipeSpecialtyModelLink
ResearcherExplore codebase, find patterns, report findingshaikuresearcher.md
Test RunnerRun tests, fix failures, report resultssonnettest-runner.md
Code ReviewerThorough review: bugs, style, security, perfsonnetcode-reviewer.md
Frontend DevReact/Vue/CSS specialistsonnetfrontend-dev.md
Backend DevAPI, database, auth specialistsonnetbackend-dev.md
DevOps EngineerCI/CD, Docker, cloud infrastructuresonnetdevops-engineer.md
Security AnalystVulnerability detection and remediationsonnetsecurity-analyst.md
Tech WriterDocumentation, README, API docshaikutech-writer.md
Database ArchitectSchema design, migrations, query optimizationsonnetdatabase-architect.md

Hooks (5 recipes)

Event-triggered scripts for automation.

RecipeTriggerWhat It DoesLink
Pre-commit LintBefore git commitRun linter and block if errorspre-commit-lint.sh
Post-edit FormatAfter Claude edits a fileAuto-format with Prettier/Blackpost-edit-format.sh
Pre-push TestBefore git pushRun test suite and block if failingpre-push-test.sh
NotificationOn task completionDesktop notification when donenotification.sh
Settings Example--Hook configuration for settings.jsonsettings-hook-examples.json

Skills (5 recipes)

Reusable knowledge modules - drop the folder into .claude/skills/.

RecipeDomainLink
React PatternsComponent patterns, hooks, state managementreact-patterns/
API DesignREST conventions, status codes, paginationapi-design/
Git WorkflowBranch naming, commit format, PR conventionsgit-workflow/
Testing StrategyWhat to test, how to structure teststesting-strategy/
TypeScript StrictStrict mode patterns, type utilitiestypescript-strict/

MCP Configs (5 recipes)

Model Context Protocol server configurations for .mcp.json.

RecipeWhat It ConnectsLink
GitHubIssues, PRs, repos, actionsgithub.json
FilesystemEnhanced file operationsfilesystem.json
PostgreSQLDatabase queries and schemapostgres.json
MemoryPersistent key-value memorymemory.json
Context7Library documentation lookupcontext7.json

Workflows (5 recipes)

End-to-end guides combining multiple recipes.

RecipeScenarioLink
New FeaturePlan, implement, test, PR - full cyclenew-feature.md
Bug FixReproduce, isolate, fix, verify, commitbug-fix.md
Code MigrationAudit, plan, migrate, test, validatecode-migration.md
PR Review CycleReview, request changes, iterate, approvepr-review-cycle.md
Project SetupConfigure Claude Code for a new projectproject-setup.md

CLAUDE.md Templates (3 recipes)

Optimized project configuration templates.

RecipeBest ForLink
StarterSolo projects, quick setupstarter.md
Team ProjectTeam conventions, CI/CDteam-project.md
MonorepoMulti-package workspacesmonorepo.md

Quick Reference

See the cheatsheet for a one-page summary, and TROUBLESHOOTING.md when a recipe is installed but does nothing.


Verifying a Recipe

Every recipe in this repo is checked on each push and pull request: frontmatter validity, the hook config schema, JSON parsing, shellcheck, working links, and that the recipe counts above match the files on disk.

Run the same checks yourself:

bash scripts/validate-recipes.sh

Installation

One recipe at a time

# Copy a command
cp claude-code-recipes/commands/code-review.md .claude/commands/

# Copy a subagent
cp claude-code-recipes/subagents/researcher.md .claude/agents/

# Copy a skill
cp -r claude-code-recipes/skills/react-patterns .claude/skills/

All recipes at once

# Clone and copy everything
git clone https://github.com/Sagargupta16/claude-code-recipes.git /tmp/recipes
mkdir -p .claude/commands .claude/agents .claude/skills
cp /tmp/recipes/commands/*.md .claude/commands/
rm -f .claude/commands/README.md
cp /tmp/recipes/subagents/*.md .claude/agents/
rm -f .claude/agents/README.md
cp -r /tmp/recipes/skills/* .claude/skills/
rm -f .claude/skills/README.md

Contributing

We welcome recipe contributions! See CONTRIBUTING.md.

Ways to contribute:

  • Add a recipe: Commands, subagents, skills, hooks, or MCP configs
  • Improve existing recipes: Better prompts, additional edge cases
  • Add a workflow: End-to-end guides for common scenarios
  • Report issues: Recipes that don't work as expected

RepoWhat It IsWhy You'd Want It
claude-cost-optimizerStrategies, benchmarks, copy-paste configs, and interactive tools for cutting Claude Code costsOnce the recipes here are installed, this is how you keep the bill down
agent-recipesCopy-paste AI agent workflows for real-world dev tasks - code review, testing, security scanning, DevOps automationThe same idea one layer up: whole workflows rather than single config files
claude-skillsCustom Claude Code plugin marketplace with skills for FARM stack, open source contributions, repo maintenance, and portfolio managementInstall skills as a versioned plugin instead of copying folders
awesome-mcp-serversA curated list of MCP (Model Context Protocol) servers, tools, frameworks, and resourcesWhere to look when the five MCP configs here are not the server you need
ai-git-hooksAI-powered git hooks - auto-review diffs, generate commit messages, scan for secrets. Supports Claude, OpenAI, and OllamaGit-side counterpart to the hooks here, which are Claude-Code-side
skillcheckConformance suite for Agent Skills: lint SKILL.md against the spec, run against real agent runtimes, publish a compatibility matrixValidate a SKILL.md you write from the skills templates
craftsmanshipSkills that encode engineering discipline -- plan, guard, verify, review, audit, shipProcess skills, where the ones here are stack-specific
mcp-toolkitTypeScript middleware toolkit for MCP servers - authentication, caching, rate limiting, CORS, logging (beta)For when you move from configuring MCP servers to writing one
shanraisshan/claude-code-best-practiceBest practices documentationThird-party reading on how to use Claude Code well

License

MIT - use these recipes however you want.