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.
Resources
5Install
npx skillscat add l61/skills-661/skill-publisher Install via the SkillsCat registry.
SKILL.md
Publishing a skill involves three stages: preparation, GitHub release, and npm distribution. Each stage has specific requirements and validation steps. Always verify the skill structure before publishing.
</essential_principles>
What would you like to do?
- 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-skillPublish to GitHub:
cd my-skill
git init
git add .
git commit -m "Initial release"
gh repo create my-skill --public --source=. --pushPublish to npm:
npm login
npm publish --access publicTest npx:
npx my-package-name --version</quick_reference>
## Pre-Publish Checklist
- 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