skill-creator
Scannednpx machina-cli add skill nainishshafi/developer-productivity-skills/skill-creator --openclawSkill Creator
Scaffold and write new Claude Code skills following established conventions. Handles both reference/knowledge skills (rich documentation that Claude loads as context) and task/action skills (step-by-step workflows with scripts).
When to Use This Skill
- User wants to package a repeatable workflow as a skill
- User asks to "create", "add", "write", or "scaffold" a skill
- User describes something they want Claude to do consistently across sessions
- User wants to share a skill across projects or with others
Workflow
Step 1 — Classify the Skill Type
Ask the user:
- What should the skill do? (one sentence)
- Does it perform an action or provide knowledge?
- Action: runs scripts, executes steps, interacts with tools → Task skill
- Knowledge: patterns, templates, conventions, reference material → Reference skill
Decision:
- Reference skill → single rich
SKILL.mdonly (no scripts required) - Task skill →
SKILL.md+references/+scripts/
Step 2 — Gather Details
Collect from the user:
- Skill name — kebab-case, lowercase (e.g.,
lint-python,deploy-staging) - Trigger phrases — what will the user say to invoke it? (list 5–8 examples)
- Target location —
.github/skills/(this project) or~/.claude/skills/(all projects) - For reference skills: topic areas, frameworks, code patterns to cover
- For task skills: step-by-step actions, prerequisites, scripts needed (bash or python?)
Step 3 — Scaffold the Folder
Run the scaffold script to create the directory structure and boilerplate:
[ -d .venv ] || python -m venv .venv
PYTHON=$(if [ -f .venv/Scripts/python ]; then echo .venv/Scripts/python; else echo .venv/bin/python; fi)
$PYTHON .github/skills/skill-creator/scripts/scaffold-skill.py <skill-name> [base-path]
- Default
base-pathis.github/skills/ - Script outputs created file paths to stdout (one per line)
- If the skill folder already exists, the script exits with a warning — do not overwrite
Step 4 — Populate the Files
Use references/skill-anatomy.md as your writing guide.
For a reference skill, write a rich SKILL.md with these sections:
- When to Use This Skill — bullet list of scenarios
- Core Concepts — fundamental ideas with explanations
- Implementation Patterns — named patterns with code examples (3–10+ patterns)
- Best Practices — do's and don'ts
- Common Pitfalls — what to avoid and why
- Resources — links and further reading
For a task skill, write:
SKILL.md— frontmatter + step-by-step workflow (referencereferences/andscripts/by path)references/<skill-name>-reference.md— supporting documentation, patterns, and specsscripts/<script>.pyorscripts/<script>.sh— executable logic with error handling
Confirm all created files with the user before finishing.
Additional Resources
references/skill-anatomy.md— Complete frontmatter field reference, skill type templates, description writing guide, script conventions, naming rulesscripts/scaffold-skill.py— Creates folder structure and boilerplate files for a new skill
Source
git clone https://github.com/nainishshafi/developer-productivity-skills/blob/master/.github/skills/skill-creator/SKILL.mdView on GitHub Overview
Skill Creator helps you scaffold and author Claude Code skills, supporting both reference (knowledge) and task (action) skills. It guides you from classification to file population, ensuring consistent structure and conventions across skills that you share across projects.
How This Skill Works
It starts by classifying the skill as Reference or Task based on what it should do. Then it gathers details like the skill name, trigger phrases, and target location, and uses a scaffold script to create the standard folder structure under the chosen base path. Finally, it prompts you to populate the appropriate files: a rich SKILL.md for reference skills or SKILL.md plus references/ and scripts/ for task skills.
When to Use It
- You want to package a repeatable workflow as a skill
- You need to create, add, write, or scaffold a new skill
- You want Claude to perform something consistently across sessions
- You want to share a skill across projects or with others
- You want to convert a workflow into a reusable Claude Code skill
Quick Start
- Step 1: Classify the Skill Type — decide between Reference or Task.
- Step 2: Gather Details — specify skill name, triggers, and target location.
- Step 3: Scaffold and Populate — run the scaffold script, then add SKILL.md and supporting files as required.
Best Practices
- Define the skill's one-sentence purpose early (Step 1).
- Choose the correct skill type: Reference vs Task.
- Name the skill in kebab-case and document triggers clearly.
- Confirm created files with the user before finishing.
- Follow the guidance in references/skill-anatomy.md for formatting and conventions.
Example Use Cases
- Scaffold a new task skill to automate daily data export to a spreadsheet
- Create a knowledge skill detailing project coding conventions
- Package a repeatable deployment checklist as a skill
- Share a Claude Code workflow across multiple repositories
- Convert an ad-hoc manual process into a reusable skill