Add Skill to Template

VerifiedSafe

Adds a new agent skill to an existing project template, creating necessary directories and configuration files.

Sby Skills Guide Bot
DevelopmentIntermediate
107/24/2026
Claude Code
#agent-skill#template#skill-creation#development-workflow

Recommended for

Our review

Adds an agent skill to an existing project template, creating the directory structure and necessary files.

Strengths

  • Structured process for consistent skill creation
  • Automates directory and file setup
  • Incorporates best practices for agent skills

Limitations

  • Only works with Claude Code skill format
  • Requires manual user input for skill details
  • Does not validate the actual skill content
When to use it

Use this skill when you need to add a reusable, context-aware capability to an existing project template.

When not to use it

Avoid using it if the project does not support Claude Code skills or if the skill to add is too complex to be defined interactively.

Security analysis

Safe
Quality score88/100

The skill performs only intended file and directory creation under user-specified paths. No destructive actions, exfiltration, or obfuscation is instructed. Bash is used legitimately for directory operations, and the skill does not invoke hidden or external payloads.

No concerns found

Examples

Add component generator skill to React template
/add-skill react-template component-generator
Add API validator skill to Django template
/add-skill django-template api-validator

description: Add an agent skill to an existing template argument-hint: <template-name> <skill-name> allowed-tools: Read(), Write(), Bash(*)

Add a new agent skill to an existing project template. Skills are automatically activated based on context.

Arguments

  • $1: Template directory name (e.g., "django-template", "react-template")
  • $2: Skill name in lowercase-letters-numbers-hyphens (e.g., "component-generator", "api-validator")

Process

  1. Verify Template Exists

Check that $1/.claude/skills/ directory exists.

  1. Gather Skill Details

Ask the user:

  • What capability does this skill provide?
  • When should it automatically activate?
  • What file types or scenarios trigger it?
  • What patterns or templates does it implement?
  • Should it be read-only or can it modify code?
  1. Create Skill Directory

Create $1/.claude/skills/$2/ with:

  • SKILL.md (required)
  • reference.md (optional - detailed docs)
  • examples/ (optional - example files)
  • templates/ (optional - code templates)
  • scripts/ (optional - helper scripts)
  1. Create SKILL.md

Generate with proper frontmatter and comprehensive instructions.

  1. Update Documentation

Add the skill to $1/README.md in the skills section.

Example Usage

/add-skill react-template component-generator

Best Practices for Skills

  • Specific triggers: Include file extensions, keywords in description
  • Focused capability: One skill, one type of task
  • Complete examples: Show full, working code
  • Framework-specific: Tailor to the template's technology
  • Tool restrictions: Limit to necessary tools
Related skills