Claude Code Resources

Templates, tools, and curated guides organized by skill level. Copy a template, follow a learning path, or discover your next favorite tool.

Learning Path

Copy-Paste Templates

Ready-to-use configurations. Click to copy, paste into your project.

CLAUDE.md Starter Template

# Project: [Your Project Name]

## Tech Stack
- Language: [TypeScript/Python/etc]
- Framework: [Next.js/FastAPI/etc]
- Database: [PostgreSQL/etc]

## Coding Standards
- Use TypeScript strict mode
- Prefer functional components
- Write tests for all new functions
- No console.log in production code

## Architecture
- /src/app — Next.js app router pages
- /src/components — Reusable UI components
- /src/lib — Utilities and API clients

## Workflow
- Run `npm test` before committing
- Never push directly to main
- Use conventional commit messages

Hooks: Auto-Format on Save

// .claude/settings.json
{
  "hooks": {
    "PostToolUse": [{
      "matcher": "Write|Edit",
      "hooks": [{
        "type": "command",
        "command": "jq -r '.tool_response.filePath // .tool_input.file_path' | { read -r f; prettier --write \"$f\"; } 2>/dev/null || true"
      }]
    }]
  }
}

Hooks: Run Tests After Code Changes

// .claude/settings.json
{
  "hooks": {
    "PostToolUse": [{
      "matcher": "Write|Edit",
      "hooks": [{
        "type": "command",
        "command": "jq -r '.tool_input.file_path // .tool_response.filePath' | grep -E '\\.(ts|js)$' && npm test || true"
      }]
    }]
  }
}

Cost Optimization CLAUDE.md Section

## Model Selection Rules
- File search, simple questions → delegate to Haiku (60x cheaper)
- Code review, bug fixes → delegate to Sonnet (5x cheaper)
- Architecture, complex reasoning → use Opus (current model)
- Always use /compact when context exceeds 50%
- Batch related changes in single sessions
- Use subagents for isolated tasks to keep main context clean

Community Tools

Open-source tools built by the Claude Code community. Each one solves a real workflow problem.