Skill Creator
Guidance for building lean, effective agent skills and validating them before deployment.
Deployment (scope, target paths, verification in
<available_skills>) is handled by skill-deployer. Finish creation and validation here first.
Quick Process
- Understand — gather concrete usage examples (see creation-process.md Step 1)
- Plan — identify scripts, references, and assets to bundle
- Implement — write SKILL.md and bundled resources
- Validate —
python3 scripts/skill.py validate <skill-folder>(see validation.md) - Deploy —
python3 scripts/skill.py deploy <skill-folder>for a global user skill; skill-deployer handles GitHub URLs, workspace/assistant scope, update and remove - Iterate — refine after real usage, re-validate after edits
Write flow: `skill.py`
User skills are read-only to the agent. Write them only with skill.py deploy; never cp, tee, sed -i, or file-tool writes into the user skills folder.
python3 <skill_base>/scripts/skill.py new <name> [--to <dir>] # template in the workspace
python3 <skill_base>/scripts/skill.py clone <name> [--to <dir>] # copy a user/system skill into the workspace
python3 <skill_base>/scripts/skill.py validate <dir> # strict checks, stdlib only
python3 <skill_base>/scripts/skill.py deploy <dir> # validate, then copy to <user skills>/<name>/
In a Docker session the user skills mount is read-only: deploy stages the skill in .libragent/skill-outbox/<name>/ and the host installs it when the command finishes. Read .libragent/skill-outbox/<name>.status afterwards (installed or rejected: <reason>).
Edit the workspace copy between new/clone and validate. deploy refuses invalid skills, overwrites an existing skill of the same name, and restores it if the deployed copy fails validation.
Validation (required before deploy)
python scripts/validate_skill.py <path/to/skill-folder>
python scripts/validate_skill.py <path/to/skill-folder> --strict # before deployment
Checks frontmatter (same rules as the Rust scanner) and warns about common path mistakes. Full checklist: validation.md.
Core Rules
- Concise body: SKILL.md under ~150 lines; move detail to
references/ - Triggers in frontmatter: all "when to use" guidance goes in
description, not the body - Cross-platform by default: never assume Linux/Bash; provide dual recipes (Bash + PowerShell) or OS-neutral commands/scripts
- Name matches folder:
name:in frontmatter must equal the directory name - Safe YAML: use double quotes in
descriptionwhen text contains apostrophes ("Telegram's", not'Telegram\'s') - No duplicate reads: information lives in SKILL.md or references, not both
- Imperative voice in body instructions
- No auxiliary docs: no README, CHANGELOG, or INSTALLATION_GUIDE in the skill folder
Structure
See anatomy.md for directory layout (SKILL.md, scripts/, references/, assets/).
Design Guidance
- design-principles.md — concision, degrees of freedom, progressive disclosure
- creation-process.md — full walkthrough
- validation.md — validate_skill.py usage and rules
- workflows.md — sequential and conditional workflow patterns
- output-patterns.md — template and example patterns
Frontmatter Checklist
---
name: skill-name
description: "What it does + specific triggers/contexts for when to use it."
---
Only name and description are required. The description is the primary trigger mechanism.