
Skill Creation
Create a new Stencila workspace skill.
Install
npx skills add stencila/stencila --skill skill-creation -g -a claude-code -y- Repository
- stencila/stencila914
- Category
- Writing
- Updated
- 3d ago
- License
- Apache-2.0
- Context cost
- Mediumabout 2,943 tokens
- Runs scripts
- No, instructions only
What it does
Create a new Stencila workspace skill. Use when asked to create, write, or scaffold a SKILL.md file or skill directory.
Overview
Create a new workspace skill directory and SKILL.md file following the Agent Skills Specification. A skill is a directory under .stencila/skills/ containing a SKILL.md file with YAML frontmatter and a Markdown body. Skills are reusable instruction sets for AI agents.
Skills should be self-contained. Do not rely on documentation or other content outside the skill directory. If the skill needs supporting material from elsewhere in the repository or from another source, copy it, summarize it, or excerpt it into files inside the skill's own references/ directory, then link to those local files from SKILL.md.
Steps
- Determine the skill name from the user's request
- Validate the name against the naming rules below
- Resolve the closest workspace skill directory: walk up from the current directory to find the nearest directory containing
.stencila/, or use the repository root if none exists - Create the directory
<closest-workspace>/.stencila/skills/<name>/ - Write the
SKILL.mdfile with frontmatter and instructions, include activation keywords in thedescriptionso agents can match the skill to user requests - Add
keywordsto the frontmatter to improve discoverability and delegation accuracy, include terms reflecting likely user intents, artifacts, and domains - Replace placeholders such as
TODObefore considering the skill complete - If the skill depends on supporting guidance, examples, or specifications, create focused files in
references/and put that material there rather than referring to files elsewhere in the repo - Optionally create
scripts/,references/, orassets/subdirectories if the skill needs them - Validate the finished skill with
stencila skills validate <name>, the skill directory path, or theSKILL.mdpath
