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.
Boilerplate templates for Claude Code extensions. Triggers on: create agent, new skill, command template, hook script, extension scaffold.
Teams using claude-code-templates should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
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
continue-claude-work
Recover actionable context from local `.claude` session artifacts and continue interrupted work without running `claude --resume`. This skill should be used when the user provides a Claude session ID, asks to continue prior work from local history, or wants to inspect `.claude` files before resuming implementation.
claude-skills-troubleshooting
Diagnose and resolve Claude Code plugin and skill issues. This skill should be used when plugins are installed but not showing in available skills list, skills are not activating as expected, or when troubleshooting enabledPlugins configuration in settings.json. Triggers include "plugin not working", "skill not showing", "installed but disabled", or "enabledPlugins" issues.
claude-md-progressive-disclosurer
Optimize CLAUDE.md files using progressive disclosure. Goal: Maximize information efficiency, readability, and maintainability. Use when: User wants to optimize CLAUDE.md, information is duplicated across files, or LLM repeatedly fails to follow rules.
fixing-claude-export-conversations
Fixes broken line wrapping in Claude Code exported conversation files (.txt), reconstructing tables, paragraphs, paths, and tool calls that were hard-wrapped at fixed column widths. Includes an automated validation suite (generic, file-agnostic checks). Triggers when the user has a Claude Code export file with broken formatting, mentions "fix export", "fix conversation", "exported conversation", "make export readable", references a file matching YYYY-MM-DD-HHMMSS-*.txt, or has a .txt file with broken tables, split paths, or mangled tool output from Claude Code.
claude-code-history-files-finder
Finds and recovers content from Claude Code session history files. This skill should be used when searching for deleted files, tracking changes across sessions, analyzing conversation history, or recovering code from previous Claude interactions. Triggers include mentions of "session history", "recover deleted", "find in history", "previous conversation", or ".claude/projects".
../../../project-management/atlassian-templates/SKILL.md
No description provided.
claude-md-enhancer
Analyzes, generates, and enhances CLAUDE.md files for any project type using best practices, modular architecture support, and tech stack customization. Use when setting up new projects, improving existing CLAUDE.md files, or establishing AI-assisted development standards.
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.