name: skill-publisher description: Publish and distribute skills to GitHub and npm. Use when user wants to "publish skill", "release skill", "distribute skill", "share skill", or "deploy skill to npm". Handles GitHub repository creation, npm package publishing, and installation testing.
- Publish new skill - First-time publish to GitHub and npm
- Update existing skill - Release new version
- Check publish readiness - Validate skill structure
- Test installation - Verify npx and skills CLI work
Validate skill:
node scripts/validate.js ./my-skill
Publish to GitHub:
cd my-skill
git init
git add .
git commit -m "Initial release"
gh repo create my-skill --public --source=. --push
Publish to npm:
npm login
npm publish --access public
Test npx:
npx my-package-name --version
- SKILL.md has valid YAML frontmatter
- name: field matches directory name
- description: explains what AND when to use
- No README.md in skill directory (auxiliary)
- Scripts in scripts/ directory
- References in references/ directory (if needed)
- GitHub repo created
- npm package published
- Test installation works