claude-code-templates
Boilerplate templates for Claude Code extensions. Triggers on: create agent, new skill, command template, hook script, extension scaffold.
Best use case
claude-code-templates is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Boilerplate templates for Claude Code extensions. Triggers on: create agent, new skill, command template, hook script, extension scaffold.
Boilerplate templates for Claude Code extensions. Triggers on: create agent, new skill, command template, hook script, extension scaffold.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "claude-code-templates" skill to help with this workflow task. Context: Boilerplate templates for Claude Code extensions. Triggers on: create agent, new skill, command template, hook script, extension scaffold.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/claude-code-templates/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How claude-code-templates Compares
| Feature / Agent | claude-code-templates | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Boilerplate templates for Claude Code extensions. Triggers on: create agent, new skill, command template, hook script, extension scaffold.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# Claude Code Templates
Starter templates for building Claude Code extensions.
## Template Selection
| Building | Template | Key Features |
|----------|----------|--------------|
| Expert persona | `agent-template.md` | Focus areas, quality checklist, references |
| Tool capability | `skill-template.md` | Commands, examples, triggers |
| User workflow | `command-template.md` | Execution flow, options |
| Automation | `hook-script.sh` | Input parsing, exit codes |
## Quick Start
### Create an Agent
```bash
# Copy template
cp ~/.claude/skills/claude-code-templates/assets/agent-template.md \
~/.claude/agents/my-expert.md
# Edit: name, description, focus areas, references
```
### Create a Skill
```bash
# Create skill directory
mkdir -p ~/.claude/skills/my-skill
# Copy template
cp ~/.claude/skills/claude-code-templates/assets/skill-template.md \
~/.claude/skills/my-skill/SKILL.md
# Edit: name, description, commands, examples
```
### Create a Command
```bash
# Copy template
cp ~/.claude/skills/claude-code-templates/assets/command-template.md \
~/.claude/commands/my-command.md
# Edit: name, description, execution flow
```
### Create a Hook Script
```bash
# Copy template
cp ~/.claude/skills/claude-code-templates/assets/hook-script.sh \
.claude/hooks/my-hook.sh
# Make executable
chmod +x .claude/hooks/my-hook.sh
```
## Template Locations
Templates are in `./assets/`:
| File | Purpose |
|------|---------|
| `agent-template.md` | Expert agent boilerplate |
| `skill-template.md` | Skill with YAML frontmatter |
| `command-template.md` | Slash command scaffold |
| `hook-script.sh` | Secure hook script template |
## Naming Conventions
| Type | Pattern | Example |
|------|---------|---------|
| Agent | `{technology}-expert.md` | `react-expert.md` |
| Skill | `{tool-or-pattern}/SKILL.md` | `git-workflow/SKILL.md` |
| Command | `{action}.md` | `review.md` |
| Hook | `{event}-{action}.sh` | `pre-write-validate.sh` |
## Validation
```bash
# Validate YAML frontmatter
head -20 my-extension.md
# Check name matches filename
grep "^name:" my-extension.md
# Run project tests
just test
```
## Official Documentation
- https://code.claude.com/docs/en/skills - Skills reference
- https://code.claude.com/docs/en/sub-agents - Custom subagents
- https://code.claude.com/docs/en/hooks - Hooks reference
- https://agentskills.io/specification - Agent Skills open standard
## Assets
- `./assets/agent-template.md` - Expert agent scaffold
- `./assets/skill-template.md` - Skill with references pattern
- `./assets/command-template.md` - Slash command scaffold
- `./assets/hook-script.sh` - Secure bash hook template
---
**See Also:** `claude-code-debug` for troubleshooting extensionsRelated Skills
running-claude-code-via-litellm-copilot
Use when routing Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic spend, configuring ANTHROPIC_BASE_URL or ANTHROPIC_MODEL overrides, or troubleshooting Copilot proxy setup failures such as model-not-found, no localhost traffic, or GitHub 401/403 auth errors.
varlock-claude-skill
Secure environment variable management ensuring secrets are never exposed in Claude sessions, terminals, logs, or git commits
templates
Project scaffolding templates for new applications. Use when creating new projects from scratch. Contains 12 templates for various tech stacks.
linear-claude-skill
Manage Linear issues, projects, and teams
incident-runbook-templates
Create structured incident response runbooks with step-by-step procedures, escalation paths, and recovery actions. Use when building runbooks, responding to incidents, or establishing incident response procedures.
github-actions-templates
Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications. Use when setting up CI/CD with GitHub Actions, automating development workflows, or creating reusable workflow templates.
ffuf-claude-skill
Web fuzzing with ffuf
fastapi-templates
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
employment-contract-templates
Create employment contracts, offer letters, and HR policy documents following legal best practices. Use when drafting employment agreements, creating HR policies, or standardizing employment documentation.
documentation-templates
Documentation templates and structure guidelines. README, API docs, code comments, and AI-friendly documentation.
defi-protocol-templates
Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and lending systems. Use when building decentralized finance applications or smart contract protocols.
claude-win11-speckit-update-skill
Windows 11 system management