davila7/claude-code-templates
Open-source registry and CLI for Claude Code components: agents, commands, skills, hooks, MCPs, settings and mods
field: unknown workflow: Frontend & designTesting & TDDCI/CD & deployGit & commitsPlanning & specs runs claude in CI
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
up to ~27.6k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Context hog · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 24/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code $ claude mcp add linear -- npx -y mcp-remote https://mcp.linear.app/mcp $ claude mcp add --transport http neon https://mcp.neon.tech/mcp $ npx degit davila7/claude-code-templates/cli-tool/templates/javascript-typescript/.claude ./rig-claude-code-templates # inspect, then merge into .claude/
MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ claude mcp add linear -- npx -y mcp-remote https://mcp.linear.app/mcp $ claude mcp add --transport http neon https://mcp.neon.tech/mcp
$ npx degit davila7/claude-code-templates/.claude-plugin/skills/owasp-security .claude/skills/owasp-security $ npx degit davila7/claude-code-templates/cli-tool/components/skills/design-to-code .claude/skills/design-to-code $ npx degit davila7/claude-code-templates/cli-tool/components/skills/gmod-addon-maker .claude/skills/gmod-addon-maker
$ curl -fsSL --create-dirs -o .claude/agents/agent-expert.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/agent-expert.md $ curl -fsSL --create-dirs -o .claude/agents/blog-writer.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/blog-writer.md $ curl -fsSL --create-dirs -o .claude/agents/build-checker.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/build-checker.md $ curl -fsSL --create-dirs -o .claude/agents/catalog-generator.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/catalog-generator.md $ curl -fsSL --create-dirs -o .claude/agents/cli-ui-designer.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/cli-ui-designer.md $ curl -fsSL --create-dirs -o .claude/agents/command-expert.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/command-expert.md $ curl -fsSL --create-dirs -o .claude/agents/component-improver.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/component-improver.md $ curl -fsSL --create-dirs -o .claude/agents/component-migrator.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/component-migrator.md $ curl -fsSL --create-dirs -o .claude/agents/component-researcher.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/component-researcher.md $ curl -fsSL --create-dirs -o .claude/agents/component-reviewer.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/component-reviewer.md $ curl -fsSL --create-dirs -o .claude/agents/deployer.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/deployer.md $ curl -fsSL --create-dirs -o .claude/agents/docusaurus-expert.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/docusaurus-expert.md $ curl -fsSL --create-dirs -o .claude/agents/frontend-developer.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/frontend-developer.md $ curl -fsSL --create-dirs -o .claude/agents/linear-tracker.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/linear-tracker.md $ curl -fsSL --create-dirs -o .claude/agents/mcp-expert.md https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/mcp-expert.md
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Bash(curl:*)",
"Bash(wget:*)",
"Bash(rm -rf:*)",
"Bash(curl:*)",
"Bash(wget:*)",
"Bash(rm -rf:*)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "jq -r '\"\\(.tool_input.command) - \\(.tool_input.description // \"No description\")\"' >> ~/.claude/bash-command-log.txt"
},
{
"type": "command",
"command": "jq -r '\"\\(.tool_input.command) - \\(.tool_input.description // \"No description\")\"' >> ~/.claude/bash-command-log.txt"
}
]
},
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // \"\"); CONTENT=$(echo $STDIN_JSON | jq -r '.tool_input.content // \"\"); if [[ \"$FILE\" =~ \\.(js|jsx|ts|tsx)$ ]] && echo \"$CONTENT\" | grep -q 'console\\.log'; then echo 'Warning: console.l"
},
{
"type": "command",
"command": "FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // \"\"'); if [[ \"$FILE\" == \"package.json\" ]]; then echo 'Checking for vulnerable dependencies...'; npm audit --audit-level=moderate; fi"
},
{
"type": "command",
"command": "FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // \"\"); CONTENT=$(echo $STDIN_JSON | jq -r '.tool_input.content // \"\"); if [[ \"$FILE\" =~ \\.py$ ]] && echo \"$CONTENT\" | grep -q 'print('; then echo 'Warning: print() statements should be"
},
{
"type": "command",
"command": "FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // \"\"'); if [[ \"$FILE\" == \"requirements.txt\" ]] || [[ \"$FILE\" == \"pyproject.toml\" ]] || [[ \"$FILE\" == \"setup.py\" ]]; then echo 'Checking for vulnerable dependencies...'; if command -v s"
}
]
}
]
}
} MCP servers (2)
| server | source | est. tokens |
|---|---|---|
| Linear | remote | 5.5k |
| mcp.neon.tech · "neon" | remote · remote | 2.5k |
Skills (3)
Subagents (15)
| agent-expert | Use this agent when creating specialized Claude Code agents for the claude-code-templates components system. Specializes in agent design, prompt engineering, domain expertise modeling, and agent best |
| blog-writer | Use this agent to create blog articles for aitmpl.com from Claude Code Templates components. Reads the component, asks the user to confirm details, generates SVG cover, HTML article, and updates blog- |
| build-checker model: sonnet | Runs pre-deploy build checks on the dashboard. Validates Astro build, checks for common esbuild/JSX issues, verifies API endpoints compile, and reports errors with fixes. Use before merging PRs that t |
| catalog-generator | Regenerates the component catalog (docs/components.json) by running the Python script. Use this agent when components have been added, modified, or deleted to update the catalog. Handles the full rege |
| cli-ui-designer model: sonnet | CLI interface design specialist. Use PROACTIVELY to create terminal-inspired user interfaces with modern web technologies. Expert in CLI aesthetics, terminal themes, and command-line UX patterns. |
| command-expert | Use this agent when creating CLI commands for the claude-code-templates components system. Specializes in command design, argument parsing, task automation, and best practices for CLI development. Exa |
| component-improver model: sonnet | Applies researched improvements to Claude Code components, validates changes with the component-reviewer agent, and creates pull requests. The only agent that modifies files and creates PRs. |
| component-migrator model: sonnet | Migrates components (agents, commands, skills, hooks, settings, MCPs) from external GitHub repositories to claude-code-templates, validates them with component-reviewer, and regenerates the catalog |
| component-researcher model: sonnet | Investigates best practices and improvement opportunities for Claude Code components using web search and codebase analysis. Returns structured research reports without modifying files. |
| component-reviewer model: sonnet | Expert component reviewer for Claude Code Templates. Use PROACTIVELY when adding or modifying components in cli-tool/components/ directory (agents, commands, MCPs, hooks, settings, skills, loops). Val |
| deployer | Assists with deploy verification and troubleshooting. Deployments happen automatically via GitHub Actions on push to main. Use when the user needs to check deploy status or debug deploy issues. |
| docusaurus-expert model: sonnet | Docusaurus documentation specialist. Use PROACTIVELY when working with Docusaurus documentation in the docs_to_claude folder for site configuration, content management, theming, build troubleshooting, |
| frontend-developer model: sonnet | Frontend development specialist for React applications and responsive design. Use PROACTIVELY for UI components, state management, performance optimization, accessibility implementation, and modern fr |
| linear-tracker model: haiku | Manages Linear issues for the Component Reviews project. Handles CRUD operations for review tracking, finding next components to review, and reporting results. |
| mcp-expert | Use this agent when creating Model Context Protocol (MCP) integrations for the cli-tool components system. Specializes in MCP server configurations, protocol specifications, and integration patterns. |
Hooks (21)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Bash | jq -r '"\(.tool_input.command) - \(.tool_input.description // "No description")"' >> ~/.claude/bash-command-log.txt |
| PreToolUse | Write | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""); CONTENT=$(echo $STDIN_JSON | jq -r '.tool_input.content // ""); if [[ "$FILE" =~ \.(js|jsx|ts|tsx)$ ]] && echo "$CONTENT" | grep -q 'console\.log'; then echo 'Warning: console.l |
| PreToolUse | Write | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" == "package.json" ]]; then echo 'Checking for vulnerable dependencies...'; npm audit --audit-level=moderate; fi |
| PostToolUse | Write|Edit|MultiEdit | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" =~ \.(js|jsx|ts|tsx)$ ]]; then npx prettier --write "$FILE"; fi |
| PostToolUse | Write|Edit|MultiEdit | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" =~ \.(ts|tsx)$ ]]; then RESULT=$(npx tsc --noEmit 2>&1); if [ $? -ne 0 ]; then echo "TypeScript errors found: $RESULT" >&2; exit 2; fi; fi |
| PostToolUse | Write|Edit|MultiEdit | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" =~ \.(js|jsx|ts|tsx)$ ]] && grep -q 'import \* from' "$FILE"; then echo 'Warning: Avoid wildcard imports for better tree-shaking' >&2; exit 2; fi |
| PostToolUse | Write|Edit|MultiEdit | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" =~ \.(js|jsx|ts|tsx)$ && "$FILE" != *".test."* && "$FILE" != *".spec."* ]]; then DIR=$(dirname "$FILE"); BASENAME=$(basename "$FILE" | sed -E 's/\.(js|jsx|ts|tsx) |
| Notification | * | echo "Claude Code notification: $(date)" >> ~/.claude/notifications.log |
| Stop | * | if [[ -f package.json && $(git status --porcelain | grep -E '\.js$|\.jsx$|\.ts$|\.tsx$') ]]; then echo 'Running linter on changed files...'; npx eslint $(git diff --name-only --diff-filter=ACMR | grep -E '\.js$|\.jsx$|\.ts$|\.tsx$'); fi |
| Stop | * | if [[ -f package.json && $(git status --porcelain | grep -E '\.js$|\.jsx$|\.ts$|\.tsx$') ]]; then echo 'Analyzing bundle size impact...'; if command -v bundlesize >/dev/null 2>&1; then npx bundlesize; elif npm list webpack-bundle-analyzer > |
| PreToolUse | Bash | jq -r '"\(.tool_input.command) - \(.tool_input.description // "No description")"' >> ~/.claude/bash-command-log.txt |
| PreToolUse | Write | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""); CONTENT=$(echo $STDIN_JSON | jq -r '.tool_input.content // ""); if [[ "$FILE" =~ \.py$ ]] && echo "$CONTENT" | grep -q 'print('; then echo 'Warning: print() statements should be |
| PreToolUse | Write | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" == "requirements.txt" ]] || [[ "$FILE" == "pyproject.toml" ]] || [[ "$FILE" == "setup.py" ]]; then echo 'Checking for vulnerable dependencies...'; if command -v s |
| PostToolUse | Write|Edit|MultiEdit | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" =~ \.py$ ]]; then black "$FILE" 2>/dev/null || echo 'Black formatting skipped (not installed)'; fi |
| PostToolUse | Write|Edit|MultiEdit | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" =~ \.py$ ]]; then isort "$FILE" 2>/dev/null || echo 'isort skipped (not installed)'; fi |
| PostToolUse | Write|Edit|MultiEdit | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" =~ \.py$ ]]; then RESULT=$(flake8 "$FILE" 2>&1); if [ $? -ne 0 ] && command -v flake8 >/dev/null 2>&1; then echo "Flake8 linting issues found: $RESULT" >&2; exit |
| PostToolUse | Write|Edit|MultiEdit | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" =~ \.py$ ]]; then RESULT=$(mypy "$FILE" 2>&1); if [ $? -ne 0 ] && command -v mypy >/dev/null 2>&1; then echo "MyPy type checking issues found: $RESULT" >&2; exit |
| PostToolUse | Write|Edit|MultiEdit | FILE=$(echo $STDIN_JSON | jq -r '.tool_input.file_path // ""'); if [[ "$FILE" =~ \.py$ && "$FILE" != *"test_"* && "$FILE" != *"_test.py" ]]; then DIR=$(dirname "$FILE"); BASENAME=$(basename "$FILE" .py); for TEST_FILE in "$DIR/test_$BASENAM |
| Notification | * | echo "Claude Code notification: $(date)" >> ~/.claude/notifications.log |
| Stop | * | if [[ -f requirements.txt || -f pyproject.toml || -f setup.py ]] && [[ $(git status --porcelain | grep '\.py$') ]]; then echo 'Running linter on changed Python files...'; if command -v flake8 >/dev/null 2>&1; then flake8 $(git diff --name-o |
| Stop | * | if [[ -f requirements.txt || -f pyproject.toml || -f setup.py ]] && [[ $(git status --porcelain | grep '\.py$') ]]; then echo 'Running type checking on changed files...'; if command -v mypy >/dev/null 2>&1; then mypy $(git diff --name-only |
Slash commands (42)
/cleanup-cache/create-blog-article/lint/git-workflow/project-setup/api-endpoint/debug/lint/npm-scripts/refactor/test/typescript-migrate/components/services/api-endpoint/database/middleware/route/component/hooks/state-management/components/composables/lint/test/admin/django-model/views/api-endpoints/auth/database/deployment/testing/app-factory/blueprint/database/deployment/flask-route/testing/model/test/authentication
Permissions
deny (6)
Bash(curl:*)
Bash(wget:*)
Bash(rm -rf:*)
Bash(curl:*)
Bash(wget:*)
Bash(rm -rf:*)
ask (0)
—
allow (24)
Bash(npm:*)
Bash(yarn:*)
Bash(npx:*)
Bash(node:*)
Bash(git:*)
Bash(eslint:*)
Bash(prettier:*)
Bash(tsc:*)
Bash(jest:*)
Bash(vitest:*)
Bash(webpack:*)
Bash(vite:*)
Bash(python:*)
Bash(pip:*)
Bash(pytest:*)
Bash(black:*)
Bash(isort:*)
Bash(flake8:*)
Bash(mypy:*)
Bash(django-admin:*)
Bash(flask:*)
Bash(uvicorn:*)
Bash(gunicorn:*)
Bash(git:*)
Similar rigs
qepilot/qepilot-stack
QEPilot Stack — a browsable catalogue of Claude Code agents, commands, skills, MCPs and hooks. Fork of the MIT-licensed claude-code-templates by Daniel (San) Ávila.
YOLO Cowboy 78.0k tok · · Q8
marnixGeerkens/rocketlauncher-claude-code
Free Claude Code skills, agents, commands, hooks, settings and MCP servers · RocketLauncher
Minimalist 85 tok · · Q0
mikededo/.dotfiles
Dotfiles when I'm distro hopping.
MCP Hoarder 32.9k tok · · Q3
agamm/claude-code-owasp
Claude Code skill for OWASP security best practices (2025-2026). Includes Top 10:2025, ASVS 5.0, Agentic AI security, and 20+ language-specific security quirks.
Minimalist 380 tok · · Q0