Claude Code Examples

August 30, 2026 ยท View on GitHub

Annotated templates that teach you why patterns work, not just how to configure them. Each template includes comments explaining trade-offs, alternatives, and when to deviate.

๐Ÿ“š Browse Auto-Generated Catalog: Indexed by complexity, time, and domain (238 templates across six catalog categories; 271 production templates overall) ๐Ÿ” Browse Interactive Catalog โ€” View, copy, and download templates with syntax highlighting

New: Auto-Generated Catalog

CATALOG.md is now auto-generated from template metadata, organized by:

  • Complexity: Beginner, Intermediate, Advanced
  • Time: 5 min to 4+ hours
  • Domain: Security, Testing, Deployment, Performance, Architecture, Automation
  • Keywords: Searchable tags for discoverability

Every template includes metadata:

---
name: template-name
description: One-line description
complexity: beginner|intermediate|advanced
time: 5 min|15 min|30 min|1 hour|2 hours|4+ hours|varies
domain: security|testing|deployment|etc
prerequisites: []
status: stable|experimental|deprecated
keywords: [tag1, tag2]
---

See docs/template-metadata-schema.md for complete specification.

Structure

FolderDescriptionCount
agents/Custom AI personas for specialized tasks21 + 2 collections
commands/Slash commands (workflow automation)52
hooks/Event-driven security and automation scripts39 catalog entries
skills/Reusable knowledge modules, including 9 on SkillHub118 catalog entries
claude-md/CLAUDE.md configuration profiles7
config/Settings, MCP, git templates6
memory/CLAUDE.md memory file templates1
rules/Behavioral rules for common review patterns5
scripts/Diagnostic & utility scripts17
team-config/Team onboarding templates3
templates/Session and workflow templates1
github-actions/CI/CD workflows6
workflows/Advanced development workflows, including a bounded agent loop contract4
plugins/Community plugins (SE-CoVe, claude-mem)2
integrations/External tool integrations (Agent Vibes TTS)3
context-engineering/Context engineering patterns and profiles10
mcp-configs/MCP server configurations1
modes/Behavioral modes (SuperClaude)1
semantic-anchors/Precise vocabulary for better LLM outputs1
multi-provider/Multi-provider bridge โ†’ dedicated repoโ€”

Quick Start

  1. Copy the template you need
  2. Customize for your project
  3. Place in the correct location (see paths below)

File Locations

TypeProject LocationGlobal Location
Agents.claude/agents/~/.claude/agents/
Skills.claude/skills/~/.claude/skills/
Commands.claude/commands/~/.claude/commands/
Hooks.claude/hooks/~/.claude/hooks/
Config.claude/~/.claude/
Memory./CLAUDE.md or .claude/CLAUDE.md~/.claude/CLAUDE.md
Modesโ€”~/.claude/MODE_*.md

Windows: Replace ~/.claude/ with %USERPROFILE%\.claude\

Templates Index

Agents (23)

FilePurposeModel
code-reviewer.mdThorough code reviewSonnet
test-writer.mdTDD/BDD test generationSonnet
security-auditor.mdSecurity vulnerability detectionSonnet
refactoring-specialist.mdClean code refactoringSonnet
output-evaluator.mdLLM-as-a-Judge quality gateHaiku
devops-sre.mdInfrastructure troubleshooting with FIRE frameworkSonnet
planner.mdStrategic planning โ€” read-only, before implementationOpus
implementer.mdMechanical execution โ€” bounded scopeHaiku
architecture-reviewer.mdArchitecture & design review โ€” read-onlyOpus
adr-writer.mdArchitecture Decision Record generator โ€” read-onlyOpus
integration-reviewer.mdRuntime integration validator โ€” read-onlySonnet
plan-challenger.mdAdversarial plan review across 5 dimensions โ€” read-onlySonnet
planning-coordinator.mdSynthesis agent for dynamic research teams โ€” read-onlySonnet
security-patcher.mdApply security patches from audit findings โ€” proposes for reviewSonnet
analytics-with-eval/Collection: analytics agent + evaluation hooksโ€”
cyber-defense/Collection: anomaly detector, log ingestor, risk classifier, threat reporterโ€”

Skills (68) โ€” 9 on SkillHub

FilePurpose
git-ai-archaeology/Analyze AI config evolution in a git repo โ€” first commits per path, monthly distribution, major PRs, maturity phases
token-audit/Measure fixed-context token overhead, classify rules by usage frequency, audit hook cost, produce prioritized action plan
design-patterns/Detect and analyze GoF design patterns with stack-aware suggestions
tdd-workflow.mdTest-Driven Development process
security-checklist.mdOWASP Top 10 security checks
pdf-generator.mdProfessional PDF generation (Quarto/Typst)
voice-refine/Writing voice refinement with before/after examples
ast-grep-patterns.mdAST-based code search patterns
rtk-optimizer/RTK token optimization analysis
audit-agents-skills/Quality audit for agents, skills, and commands
skill-creator/Create new skills with proper structure and best practices
landing-page-generator/Generate deploy-ready landing pages from any repository
ccboard/Comprehensive TUI/Web dashboard for Claude Code monitoring
guide-recap/Transform CHANGELOG entries into social content (LinkedIn, Twitter/X, Slack)
release-notes-generator/Generate release notes in 3 formats from git commits
pr-triage/4-phase PR backlog management (audit, deep review, validated comments, worktree setup)
issue-triage/3-phase issue backlog management (audit, deep analysis, validated actions)
cyber-defense-team/Multi-agent cyber defense team orchestration
talk-pipeline/6-stage pipeline: raw material to slides via Kimi
eval-rules/Audit .claude/rules/ files โ€” resolves glob patterns against real project files, interactive usefulness review, in-place edits

Commands (52)

FileTriggerPurpose
commit.md/commitConventional commit messages
pr.md/prCreate well-structured PRs with scope analysis
review-pr.md/review-prPR review workflow
release-notes.md/release-notesGenerate release notes in 3 formats
sonarqube.md/sonarqubeAnalyze SonarCloud quality issues for PRs
generate-tests.md/generate-testsTest generation
git-worktree.md/git-worktreeIsolated git worktree setup
git-worktree-status.md/git-worktree-statusCheck worktree background verification tasks
git-worktree-remove.md/git-worktree-removeSafe worktree removal with merge checks
git-worktree-clean.md/git-worktree-cleanBatch cleanup of stale worktrees
diagnose.md/diagnoseInteractive troubleshooting assistant (FR/EN)
validate-changes.md/validate-changesLLM-as-a-Judge pre-commit validation
catchup.md/catchupRestore context after /clear
security.md/securityQuick OWASP security audit
security-check.md/security-checkConfig scan vs known threats (~30s)
security-audit.md/security-auditFull 6-phase audit with score /100
update-threat-db.md/update-threat-dbResearch & update threat intelligence
audit-agents-skills.md/audit-agents-skillsQuality audit for .claude/ config
sandbox-status.md/sandbox-statusSandbox isolation status check
refactor.md/refactorSOLID-based code improvements
explain.md/explainCode explanations (3 depth levels)
optimize.md/optimizePerformance analysis and roadmap
ship.md/shipPre-deploy checklist
learn/quiz.md/learn:quizSelf-testing for learning concepts
learn/teach.md/learn:teachStep-by-step concept explanations
learn/alternatives.md/learn:alternativesCompare different approaches
audit-codebase.md/audit-codebaseCodebase health audit scoring 7 categories
plan-start.md/plan-start5-phase planning: PRD analysis, design review, technical decisions, research team, metrics
plan-execute.md/plan-executeExecute validated plan: worktree isolation, TDD scaffolding, parallel agents, PR creation
plan-validate.md/plan-validate2-layer plan validation: structural checks + specialist agents, auto-fix issues
review-plan.md/review-planStructured plan review across 4 axes before writing code
check-cache-bugs.md/check-cache-bugsAudit for CC#40524 cache bugs that can silently 10-20x API costs

Hooks (37)

Security-first: 12 security hooks, 8 productivity hooks, 5 automation hooks, 5 monitoring hooks.

Security Hooks (13 bash):

FileEventPurpose
dangerous-actions-blocker.shPreToolUseBlock rm -rf, force-push, production ops
prompt-injection-detector.shPreToolUseDetect injection patterns in prompts
unicode-injection-scanner.shPreToolUseDetect zero-width, RTL override, ANSI escape
repo-integrity-scanner.shPreToolUseScan README/package.json for hidden injection
security-check.shPreToolUseBlock secrets in commands
sandbox-validation.shPreToolUseValidate sandbox isolation
file-guard.shPreToolUseProtect sensitive files from modification
permission-request.shPreToolUseExplicit permission flow for risky ops
mcp-config-integrity.shSessionStartVerify MCP config hash (CVE protection)
claudemd-scanner.shSessionStartDetect CLAUDE.md injection attacks
output-secrets-scanner.shPostToolUsePrevent API keys/tokens in Claude responses
pre-commit-secrets.shGit hookBlock secrets from entering commits
security-gate.shPreToolUseDetect vulnerable code patterns before writing to source files

Productivity Hooks (10):

FileEventPurpose
auto-format.shPostToolUseAuto-format after edits (Prettier, Black, go fmt)
auto-checkpoint.shPostToolUseAuto-checkpoint work at intervals
typecheck-on-save.shPostToolUseRun TypeScript checks on save
test-on-change.shPostToolUseRun tests on file changes
rtk-auto-wrapper.shPreToolUseAuto-wrap commands with RTK for token savings
rtk-baseline.shSessionStartSave RTK baseline for session savings tracking
setup-init.shSessionStartInitialize session environment
subagent-stop.shStopClean up sub-agent resources
auto-rename-session.shSessionEndAI-powered session title generation (Haiku)
velocity-governor.shPreToolUseRate-limit tool calls to avoid API throttling

Monitoring Hooks (6):

FileEventPurpose
output-validator.shPostToolUseHeuristic output validation
session-logger.shPostToolUseLog operations for monitoring
session-summary.shSessionEndDisplay session stats (duration, tools, cost, RTK savings)
session-summary-config.shCLI toolConfigure session-summary sections and display
learning-capture.shStopPrompt for daily learning capture
privacy-warning.shPostToolUseWarn on potential privacy leaks

Notification & TTS (3):

FileEventPurpose
notification.shNotificationContextual macOS sound alerts
tts-selective.shPostToolUseText-to-speech for selected outputs
pre-commit-evaluator.shGit hookLLM-as-a-Judge pre-commit

PowerShell (2):

FileEventPurpose
security-check.ps1PreToolUseBlock secrets in commands
auto-format.ps1PostToolUseAuto-format after edits

See hooks/README.md for full documentation, configuration examples, and security hardening patterns

Config (6)

FilePurpose
settings.jsonHooks configuration
mcp.jsonMCP servers setup
.gitignore-claudeGit ignore patterns
CONTRIBUTING-ai-disclosure.mdAI disclosure template for CONTRIBUTING.md
PULL_REQUEST_TEMPLATE-ai.mdPR template with AI attribution
sandbox-native.jsonNative Claude Code sandbox configuration
settings-personalization.jsonUI personalization: spinner verbs, custom tips carousel
settings.local.json.exampleLocal overrides example (gitignored)

Memory (1)

FilePurpose
CLAUDE.md.project-templateTeam project memory
CLAUDE.md.personal-templatePersonal global memory

CLAUDE.md Configurations (7)

FilePurpose
learning-mode.mdLearning-focused development configuration
devops-sre.mdDevOps/SRE project configuration
product-designer.mdProduct designer workflow configuration
tts-enabled.mdText-to-speech enabled configuration
rtk-optimized.mdRTK token-optimized configuration
session-naming.mdAuto-rename sessions with descriptive titles for parallel work
design-reference-file.mdBrand-book and UI kit context for consistent UI generation

See guide/roles/learning-with-ai.md for learning mode documentation See guide/ops/devops-sre.md for DevOps/SRE guide

Scripts (17)

FilePurposeOutput
audit-scan.shFast setup audit scannerJSON / Human
check-claude.shHealth check diagnostics (macOS/Linux)Human
check-claude.ps1Health check diagnostics (Windows)Human
clean-reinstall-claude.shClean reinstall procedure (macOS/Linux)Human
clean-reinstall-claude.ps1Clean reinstall procedure (Windows)Human
session-stats.shAnalyze session logs & costsJSON / Human
session-search.shFast session search & resumeHuman
cc-sessions.pyAdvanced session search with incremental indexingHuman
fresh-context-loop.shAuto-restart sessions at context limitsHuman
bridge.pyPlan bridging between sessionsJSON
bridge-plan-schema.jsonJSON Schema for bridge plan v1 formatโ€”
migrate-arguments-syntax.shMigrate v1 โ†’ v2 argument syntax (bash)Human
migrate-arguments-syntax.ps1Migrate v1 โ†’ v2 argument syntax (PowerShell)Human
rtk-benchmark.shBenchmark RTK token savingsHuman
sync-claude-config.shSync Claude config across machinesHuman
sonnetplan.shAlias to run Claude with Sonnet instead of Opus (cost optimization)Human

See scripts/README.md for detailed usage

Rules (5)

FilePurpose
architecture-review.mdRules for architecture review sessions
code-quality-review.mdRules for code quality review sessions
first-principles.mdFirst-principles reasoning rules
performance-review.mdRules for performance review sessions
test-review.mdRules for test review sessions

Team Config (3)

FilePurpose
claude-skeleton.mdMinimal CLAUDE.md skeleton for new team members
profile-template.yamlProfile assembly template for multi-tool teams
sync-script.tsSync Claude config across team machines

Templates (1)

FilePurpose
session-handoff-lorenz.mdSession handoff template for context continuity

GitHub Actions (6)

FileTriggerPurpose
claude-code-review.yml โญPR open/sync + /claude-review commentPrompt-based review (externalized prompt + anti-hallucination protocol)
claude-pr-auto-review.ymlPR open/updateAuto code review with inline comments
claude-security-review.ymlPR open/updateSecurity-focused scan (OWASP)
claude-issue-triage.ymlIssue openedAuto-triage with labels and severity

See github-actions/README.md for setup instructions and customization

Workflows (3)

FilePurpose
database-branch-setup.mdIsolated feature dev with database branches (Neon/PlanetScale)
memory-stack-integration.mdMulti-day workflow with memory tools (claude-mem + Serena + grepai)
remotion-quickstart.mdVideo generation workflow with Remotion

Plugins (2)

FilePurpose
se-cove.mdChain-of-Verification for independent code review (Meta AI, ACL 2024)
claude-mem.mdPersistent memory management plugin

Integrations (3)

ToolPurpose
Agent Vibes TTSText-to-speech narration for Claude Code responses

See agent-vibes/README.md for installation and voice catalog

MCP Configs (1)

FilePurpose
figma.jsonFigma MCP server configuration

Modes (1)

FilePurposeActivation
MODE_Learning.mdJust-in-time explanations--learn flag

See modes/README.md for installation and SuperClaude framework reference

Semantic Anchors (1)

FilePurpose
anchor-catalog.mdComprehensive catalog of precise technical terms for prompting

See Section 2.7 in the guide for how to use semantic anchors

Multi-Provider Bridge

ToolPurpose
cc-copilot-bridgeBridge GitHub Copilot to Claude Code CLI for flat-rate access

Moved to dedicated repository: github.com/FlorianBruniaux/cc-copilot-bridge


See the main guide for detailed explanations, or the architecture guide for how Claude Code works internally.