Marketplace claude-code-templates
Boilerplate templates for Claude Code extensions. Triggers on: create agent, new skill, command template, hook script, extension scaffold.
install
source · Clone the upstream repo
git clone https://github.com/aiskillstore/marketplace
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/aiskillstore/marketplace "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/0xdarkmatter/claude-code-templates" ~/.claude/skills/aiskillstore-marketplace-claude-code-templates && rm -rf "$T"
manifest:
skills/0xdarkmatter/claude-code-templates/SKILL.mdsource content
Claude Code Templates
Starter templates for building Claude Code extensions.
Template Selection
| Building | Template | Key Features |
|---|---|---|
| Expert persona | | Focus areas, quality checklist, references |
| Tool capability | | Commands, examples, triggers |
| User workflow | | Execution flow, options |
| Automation | | Input parsing, exit codes |
Quick Start
Create an Agent
# 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
# 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
# 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
# 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 |
|---|---|
| Expert agent boilerplate |
| Skill with YAML frontmatter |
| Slash command scaffold |
| Secure hook script template |
Naming Conventions
| Type | Pattern | Example |
|---|---|---|
| Agent | | |
| Skill | | |
| Command | | |
| Hook | | |
Validation
# 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
- Expert agent scaffold./assets/agent-template.md
- Skill with references pattern./assets/skill-template.md
- Slash command scaffold./assets/command-template.md
- Secure bash hook template./assets/hook-script.sh
See Also:
claude-code-debug for troubleshooting extensions