creating-skills
Skill35 starsChanged 8 months agoMITView on GitHub
Guide for creating Claude Code skills following Anthropic's official best practices. Use when user wants to create a new skill, build a skill, write SKILL.md, or needs skill creation guidelines. Provides structure, naming conventions, description writing, and quality checklist.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- AbdullahMalik17/Digital-FTEtheir own version, first seen Sep 26, 2026
- chinkan/RustFoxtheir own version, first seen Sep 22, 2026
- AgentWorkforce/relaytheir own version, first seen Sep 21, 2026
- JustYannicc/skillstheir own version, first seen Aug 15, 2026
- microsoft/FluidFrameworktheir own version, first seen Aug 5, 2026
- xiehuacheng/skillstheir own version, first seen Jul 26, 2026
Used with
Projects with it also use building-chatgpt-apps, building-chat-interfaces and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
mjunaidcaSkillbuilding-chatgpt-apps
Guides creation of ChatGPT Apps with interactive widgets using OpenAI Apps SDK and MCP servers. Use when building ChatGPT custom apps with visual UI components, embedded widgets, or rich interactive experiences. Covers widget architecture, MCP server setup with FastMCP, response metadata, and Developer Mode configuration. NOT when building standard MCP servers without widgets (use building-mcp-servers skill instead).
Also in 4 projects that use this
mjunaidcaSkillbuilding-chat-interfaces
Build AI chat interfaces with custom backends, authentication, and context injection. Use when integrating chat UI with AI agents, adding auth to chat, injecting user/page context, or implementing httpOnly cookie proxies. Covers ChatKitServer, useChatKit, and MCP auth patterns. NOT when building simple chatbots without persistence or custom agent integration.
Also in 4 projects that use this
- +10 more from mjunaidca
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- microsoft/FluidFramework★ 4.9ksame name
- microsoft/vstest★ 968same name
- AgentWorkforce/relay★ 861same name
- pr-pm/prpm★ 122same name
- Shmayro/singularity-claude★ 28same name
- mjunaidca/mjs-agent-skills★ 27same name
- osmontero/opencode-skills★ 14same name
- AbdullahMalik17/Digital-FTE★ 12same name
- AbdullahMalik17/Hacathan_5★ 9same name
- AbdullahMalik17/My_skills★ 9same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- agent-protocolSkill
- context-health-checkSkill
- layered-contextSkill
- muse-commandsSkill
- semantic-searchSkill
- strategic-compactSkill
- using-superpowersSkill
- verification-before-completionSkill
- growth-distributionSkill
- api-design-principlesSkill
- architect-agentSkill
- brainstormingSkill
- build-error-resolverSkill
- changelog-generatorSkill
- code-documentationSkill
- code-refactoringSkill
- code-reviewer-agentSkill
- coding-standardsSkill
- context7-mcpSkill
- coordinator-modeSkill
- deep-diveSkill
- dispatching-parallel-agentsSkill
- doc-coauthoringSkill
- doc-updaterSkill
- e2e-runnerSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- git-commitSkill
- github-pr-creationSkill
- github-pr-mergeSkill
- github-pr-reviewSkill
- git-security-guardSkill
- iterative-retrievalSkill
- markitdownSkill
- planner-agentSkill
- ralph-wiggumSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- sciomcSkill
- security-reviewSkill
- skill-creatorSkill
- skills-updaterSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- theme-factorySkill
- traceSkill
- ui-ux-pro-maxSkill
- using-git-worktreesSkill
- webapp-testingSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 158
Keep SKILL.md focused on workflow
- Distinctive: line 194
Use stdin/stdout for piping
- Distinctive: line 196
Keep focused on single responsibility
- Distinctive: line 230
Start minimal, expand as needed
- Distinctive: line 231
Don't front-load all information
- Distinctive: line 245
Prefer JSON for script output:
- Distinctive: line 256
Before finalizing a skill:
“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Creating Skills
Guide for creating Claude Code skills following Anthropic's official best practices.
Quick Start
# 1. Create skill directory
mkdir -p ~/.claude/skills/<skill-name>/references
# 2. Create SKILL.md with frontmatter
cat > ~/.claude/skills/<skill-name>/SKILL.md << 'EOF'
---
name: <skill-name>
description: <what it does>. Use when <trigger phrases>. <key capabilities>.
---
# <Skill Title>
<One-line description>
## Quick Start
<Minimal steps to use the skill>
## Core Workflow
<Step-by-step instructions>
## Important Rules
<Critical constraints and requirements>
EOF
# 3. Add helper scripts if value-add
# 4. Add reference files for detailed docsSKILL.md Structure
Frontmatter (REQUIRED)
---
name: skill-name # lowercase, hyphens, no spaces
description: <desc> # CRITICAL for discovery (max 1024 chars)
---Advanced Frontmatter (v3.0)
Inspired by Claude Code's internal skills architecture (loadSkillsDir.ts).
---
name: skill-name
description: <What it does>. <Key capabilities>.
# v3.0 fields — separate trigger logic from description
when_to_use: >
Use when user wants to create PR, open pull request,
or merge feature. Also triggers on 'review', 'submit'.
# Security: restrict which tools this skill can use
allowed-tools:
- run_command
- view_file
- grep_search
# Omit dangerous tools like write_to_file for read-only skills
# Auto-activate when editing files matching these paths
paths:
- src/auth/**
- lib/security/**
# Parameterized skills: $1, $2 substitution
arguments: [target_file, test_scope]
argument-hint: "<file> [scope]"
# Control execution depth
effort: thorough # Options: minimal, standard, thorough
# Specify a model for this skill (rare)
# model: claude-sonnet-4-20250514
# Whether users can invoke directly (vs agent-only)
user-invocable: true
# Pure text skill (no LLM invocation)
# disable-model-invocation: false
# Isolated execution context
# context: fork
---When to use when_to_use vs description:
description= WHAT the skill does (appears in listings)when_to_use= WHEN to trigger it (matching logic, trigger phrases)- Keeping them separate prevents the description from becoming a keyword dump
Description Formula
<What it does>. Use when <trigger phrases>. <Key capabilities>.Example:
Creates GitHub Pull Requests with automated validation. Use when user wants
to create PR, open pull request, or merge feature. Validates tasks, runs
tests, generates Conventional Commits format.Trigger phrases to include:
- Action verbs: "create", "handle", "manage", "process"
- User intent: "wants to", "needs to", "asks for"
- Keywords users would say: "PR", "pull request", "review comments"
Body Sections (ORDER MATTERS)
- Title -
# Skill Name - One-liner - Single sentence summary
- Quick Start - Minimal steps (copy-paste ready)
- Core Workflow - Numbered steps with code blocks
- Helper Scripts (if any) - Table with purpose
- Important Rules - Critical constraints (bold ALWAYS/NEVER)
Naming Conventions
Format Options
| Style | Example | When to Use |
| Gerund (verb-ing) | processing-pdfs | Action-focused |
| Noun phrase | github-pr-creation | Entity-focused |
| Prefixed group | github-pr-* | Related skills |
Rules
- Lowercase only
- Hyphens between words (no underscores)
- No spaces
- Descriptive but concise (2-4 words)
Token Budget
| Component | Limit | Notes |
| SKILL.md body | < 500 lines | Split if approaching |
| Description | < 1024 chars | Quality over quantity |
| Quick Start | < 30 lines | Minimal viable example |
If approaching 500 lines:
- Move detailed examples to
references/examples.md - Move troubleshooting to
references/troubleshooting.md - Keep SKILL.md focused on workflow
Helper Scripts Guidelines
When to Create Scripts
DO create scripts for:
- Complex logic (severity classification, commit analysis)
- Multi-step processing with JSON output
- Reusable utilities across invocations
DON'T create scripts for:
- Single command wrappers (
gh api ...) - Simple operations Claude can do inline
- One-line bash commands
Script Requirements
#!/usr/bin/env python3
"""Script description."""
import json
import sys
def main():
# Read from stdin or args
# Process data
# Output JSON to stdout
print(json.dumps(result))
if __name__ == "__main__":
main()- Output JSON for structured data
- Use stdin/stdout for piping
- Include clear error messages
- Keep focused on single responsibility
Directory Structure
~/.claude/skills/<skill-name>/
├── SKILL.md # Main skill file (< 500 lines)
├── scripts/ # Optional helper scripts
│ └── helper.py # Only if value-add
└── references/ # Optional detailed docs
├── examples.md # Extended examples
└── guide.md # Deep-dive documentationCore Principles
1. Claude is Already Smart
"Default assumption: Claude is already very smart. Only add context Claude doesn't already have."
Challenge each line:
- Does Claude really need this explanation?
- Can I assume Claude knows this?
- Does this paragraph justify its token cost?
2. Progressive Disclosure
SKILL.md (primary)
↓ references/ (when needed)
↓ external links (rarely)- Start minimal, expand as needed
- Don't front-load all information
- Let Claude discover details when relevant
3. User Confirmation for Critical Actions
**ALWAYS** confirm before:
- Modifying files
- Running destructive commands
- Creating external resources (PRs, issues)4. Structured Output
Prefer JSON for script output:
# Good: Structured, parseable
python3 script.py | jq '.result'
# Bad: Unstructured text
python3 script.py | grep "Result:"Quality Checklist
Before finalizing a skill:
- Frontmatter: name + description present
- Description: includes WHAT + WHEN triggers + capabilities
- Naming: lowercase, hyphens, descriptive
- Quick Start: copy-paste ready, < 30 lines
- Line count: SKILL.md < 500 lines
- Scripts: only value-add, no wrappers
- Rules: critical constraints marked with bold
- Test: skill triggers on expected phrases
Anti-Patterns to Avoid
| Anti-Pattern | Why Bad | Instead |
| Wrapper scripts | No value-add | Inline commands |
| Explaining basics | Claude already knows | Skip or brief |
| Multiple workflows | Confusing | One clear path |
| Verbose examples | Token waste | Minimal examples |
| Custom systems | Non-standard | Use official patterns |
Examples
Good Description
Handles PR review comments with severity classification. Use when user
wants to resolve PR comments, handle review feedback, or fix review
comments. Fetches via GitHub CLI, classifies by severity, proposes fixes.Good Quick Start
# 1. Get PR number
PR=$(gh pr view --json number -q '.number')
# 2. Fetch and classify comments
gh api repos/{owner}/{repo}/pulls/$PR/comments | \
python3 ~/.claude/skills/github-pr-review/scripts/classify_comments.py
# 3. Process each comment: show → propose → confirm → apply
# 4. Commit: git commit -m "fix(scope): address review - [desc]"
# 5. Reply and pushGood Important Rules
## Important Rules
- **ALWAYS** confirm before modifying files
- **ALWAYS** verify ALL issues in multi-issue comments
- **NEVER** skip user confirmation for file changes
- Group related changes → single commitReferences
references/official_best_practices.md- Full Anthropic documentationreferences/skill_examples.md- Complete skill examples
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

