ask-matt
MAmattpocock/skills337k4,978 new stars in the last 7 days
Create, edit, improve, or audit skills for SwarmClaw agents. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory. Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".
Guidance for creating effective skills that extend SwarmClaw agent capabilities.
Skills are modular, self-contained packages that provide specialized knowledge, workflows, and tools. They transform a general-purpose agent into a specialized one equipped with procedural knowledge that no model can fully possess.
The context window is a shared resource. Only add context the agent doesn't already have. Challenge each piece of information: "Does the agent really need this explanation?" Prefer concise examples over verbose explanations.
skill-name/
├── SKILL.md (required)
│ ├── YAML frontmatter (name + description, required)
│ └── Markdown instructions (required)
└── Bundled Resources (optional)
├── scripts/ — Executable code (Python/Bash/etc.)
├── references/ — Documentation loaded into context as needed
└── assets/ — Files used in output (templates, icons, fonts)
name: Skill name (hyphen-case, lowercase)description: Primary triggering mechanism. Include what the skill does AND when to use it. All "when to use" info goes here — not in the body.scripts/)Executable code for tasks that require deterministic reliability or are repeatedly rewritten. Token efficient and may be executed without loading into context.
references/)Documentation loaded as needed to inform the agent's process. Keep only essential instructions in SKILL.md; move detailed reference material here.
assets/)Files not loaded into context but used in output (templates, images, fonts). Separates output resources from documentation.
Ask the user clarifying questions:
Analyze each example to identify what scripts, references, and assets would be helpful:
scripts/ (e.g., scripts/rotate_pdf.py)assets/ (e.g., assets/hello-world/ template)references/ (e.g., references/schema.md)Use the bundled init script to create the directory structure:
python3 {baseDir}/scripts/init_skill.py <skill-name> --path <output-directory> [--resources scripts,references,assets] [--examples]
Examples:
python3 {baseDir}/scripts/init_skill.py my-skill --path skills
python3 {baseDir}/scripts/init_skill.py my-skill --path skills --resources scripts,references
Write instructions that would help another agent instance execute tasks effectively. Include information that is beneficial and non-obvious.
Writing guidelines: Use imperative/infinitive form. Keep SKILL.md body under 500 lines.
Frontmatter description: Include both what the skill does and specific triggers for when to use it. This is the primary mechanism for skill selection.
Run the validator to check structure and frontmatter:
python3 {baseDir}/scripts/quick_validate.py <path/to/skill-folder>
Skills use a three-level loading system:
Keep SKILL.md lean. Move detailed information to reference files and describe clearly when to read them.
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
OBobra/superpowers331k4,772 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days