internal/skills/content/create-skill/SKILL.md
Agent Skill creation workflow. Use when creating new reusable AI agent skills, scaffolding skill directories, or converting existing guides into the portable Agent Skills standard format.
npx skillsauth add ar4mirez/samuel create-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Agent Skills are capability modules that give AI agents new abilities. Unlike workflows (which guide how to approach tasks), skills define what an agent can do. Skills are portable across 25+ agent products including Claude Code, Cursor, and VS Code.
Use this skill when you need to:
Skills are modular, self-contained packages that extend AI capabilities by providing specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific domains or tasks - they transform a general-purpose agent into a specialized one equipped with procedural knowledge that no model can fully possess.
What Skills Provide:
Before creating the skill, understand it through concrete examples. Ask questions like:
Then clarify its purpose:
What capability does this skill provide?
When should it activate? (Critical for the description field)
What resources does it need?
What's the scope?
Run the Samuel CLI command:
samuel skill create <skill-name>
Name Requirements:
--)This creates:
.claude/skills/<skill-name>/
├── SKILL.md # Pre-filled template
├── scripts/ # For executable code
├── references/ # For additional docs
└── assets/ # For templates, data
Edit the generated SKILL.md with:
---
name: skill-name
description: |
What this skill does and when to use it.
Include specific triggers and keywords.
license: MIT
metadata:
author: your-name
version: "1.0"
---
Description Best Practices:
Write clear instructions that tell the AI agent how to use this skill:
Keep under 500 lines - use reference files for detailed content.
scripts/)Add executable code for deterministic operations:
# scripts/process.py
def process_data(input_path):
# Implementation
pass
Script Best Practices:
references/)Add documentation that AI loads on-demand:
# references/api-guide.md
## API Endpoints
...
Use references for:
assets/)Add templates and data files:
assets/
├── template.html
├── config.json
└── icons/
Run validation to check against Agent Skills spec:
samuel skill validate <skill-name>
Validation Checks:
Fix any errors before proceeding.
Test the skill with real tasks:
If the skill is significant, record in .claude/memory/:
# .claude/memory/YYYY-MM-DD-skill-name.md
## Skill Created: <skill-name>
**Purpose**: Brief description
**Key Decisions**:
- Why this approach
- Alternatives considered
**Testing Notes**:
- What worked
- What needed adjustment
The context window is a public good. Skills share it with everything else: system prompt, conversation history, other skills' metadata, and the actual user request. Default assumption: the AI is already very smart. Only add context it doesn't already have. Challenge each piece of information: "Does this paragraph justify its token cost?"
Good (50 tokens):
## Extract PDF Text
Use pdfplumber:
```python
import pdfplumber
with pdfplumber.open("file.pdf") as pdf:
text = pdf.pages[0].extract_text()
**Bad** (150 tokens):
```markdown
## Extract PDF Text
PDF files are a common format... [unnecessary explanation]
Match the level of specificity to the task's fragility and variability. Think of the AI as exploring a path: a narrow bridge with cliffs needs specific guardrails (low freedom), while an open field allows many routes (high freedom).
| Freedom Level | When to Use | Implementation | Example | |--------------|-------------|---------------|---------| | High | Multiple valid approaches | Text-based instructions | Code review process | | Medium | Preferred pattern exists | Pseudocode or scripts with parameters | Report generation | | Low | Fragile/critical operations | Specific scripts, few parameters | Database migrations |
Keep SKILL.md lean; move details to reference files.
A skill should only contain essential files that directly support its functionality. Do NOT create extraneous documentation like README.md, INSTALLATION_GUIDE.md, QUICK_REFERENCE.md, or CHANGELOG.md. The skill should only contain information needed for an AI agent to do the job at hand.
scripts/): Include when the same code is being rewritten repeatedly or deterministic reliability is needed. Scripts may be executed without loading into context, saving tokens.references/): For documentation the AI should reference while working. Keeps SKILL.md lean; loaded only when determined needed. If files are large (>10k words), include grep search patterns in SKILL.md. Avoid duplication - information should live in either SKILL.md or references, not both.assets/): Files not intended to be loaded into context, but used in the output (templates, images, boilerplate code, fonts).Examples teach better than explanations:
### Example: User Request
**Input**: "Help me merge these PDFs"
**Output**:
```python
# Code that handles the request
---
## Checklist
Before finalizing your skill:
- [ ] Name follows conventions (lowercase, hyphens, max 64 chars)
- [ ] Description is specific and under 1024 chars
- [ ] SKILL.md body is under 500 lines
- [ ] Instructions are clear and step-by-step
- [ ] Examples show input/output pairs
- [ ] Validation passes (`samuel skill validate`)
- [ ] Tested with real scenarios
- [ ] Scripts handle errors gracefully (if applicable)
---
## Related
- **Agent Skills Specification**: https://agentskills.io/specification
- **Example Skills**: https://github.com/anthropics/skills
- **Skills README**: `.claude/skills/README.md`
development
Zig language guardrails, patterns, and best practices for AI-assisted development. Use when working with Zig files (.zig), build.zig, or when the user mentions Zig. Provides comptime patterns, allocator conventions, C interop guidelines, and testing standards specific to this project's coding standards.
tools
WordPress framework guardrails, patterns, and best practices for AI-assisted development. Use when working with WordPress projects, or when the user mentions WordPress. Provides theme development, plugin architecture, REST API, blocks, and security guidelines.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs. Use when testing web apps, automating browser interactions, or debugging frontend issues.
tools
Suite of tools for creating elaborate, multi-component web applications using modern frontend technologies (React, Tailwind CSS, shadcn/ui). Use for complex projects requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX pages.