packages/opencode-swarm-plugin/global-skills/skill-generator/SKILL.md
Meta-skill for generating new skills with proper format and structure. Use when creating new skills for the swarm system or when agents need to generate skill scaffolds. Ensures skills follow conventions (frontmatter format, directory structure, bundled resources).
npx skillsauth add joelhooks/swarm-tools skill-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate new skills with proper format, structure, and conventions. This meta-skill helps agents create skills without hallucinating the format.
To generate a new skill:
bash scripts/generate-skill.sh <skill-name> [target-directory]
This creates a complete skill scaffold with:
Every skill MUST include:
SKILL.md (required) - Main skill file with:
Bundled Resources (optional):
scripts/ - Executable code (bash/python/etc)references/ - Documentation loaded on-demandassets/ - Files used in output (templates, etc)---
name: skill-name
description: What the skill does AND when to use it. Include triggering scenarios.
---
The description field is critical for skill discovery and triggering. Include:
skill-name/
├── SKILL.md (required)
├── scripts/ (optional)
│ └── example-script.sh
├── references/ (optional)
│ └── conventions.md
└── assets/ (optional)
└── template-file
Target <500 lines in SKILL.md. Move detailed content to references/:
Write instructions as commands:
Skills use three-level loading:
Executable code for deterministic tasks:
Make scripts executable:
chmod +x scripts/my-script.sh
Documentation loaded on-demand:
Keep reference files focused. For files >100 lines, include a table of contents.
Reference from SKILL.md with clear guidance on when to read:
See references/api-docs.md for complete API reference.
Files used in output (not loaded to context):
Do NOT create these files:
Skills should contain only what an AI agent needs to execute the task. No auxiliary documentation.
Before finalizing, validate the skill:
bun scripts/validate-skill.ts path/to/skill
Checks:
See references/conventions.md for complete skill format specification.
development
Patterns for testing code effectively. Use when breaking dependencies for testability, adding tests to existing code, understanding unfamiliar code through characterization tests, or deciding how to structure tests. Covers seams, dependency injection, test doubles, and safe refactoring techniques from Michael Feathers.
tools
Principles for building reusable coding systems. Use when designing modules, APIs, CLIs, or any code meant to be used by others. Based on "A Philosophy of Software Design" by John Ousterhout. Covers deep modules, complexity management, and design red flags.
development
Multi-agent coordination patterns for OpenCode swarm workflows. Use when working on complex tasks that benefit from parallelization, when coordinating multiple agents, or when managing task decomposition. Do NOT use for simple single-agent tasks.
tools
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.