Claude Code Recipes

July 1, 2026 ยท View on GitHub

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.


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 repos--check-all-prs.md
/audit-reposAudit all repos for health, hygiene, and security--audit-repos.md
/update-statusRefresh a STATUS.md dashboard with live GitHub data--update-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.


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


License

MIT - use these recipes however you want.