Get your Claude Code skill up and running in 5 minutes!
Click the "Use this template" button at the top of this repository, or:
git clone https://github.com/YOUR-ORG/agent-skill-npm-boilerplate.git my-skill
cd my-skill
rm -rf .git
git initReplace these placeholders throughout the project:
| Find | Replace With | Files |
|---|---|---|
YOUR-SKILL-NAME |
my-awesome-skill |
package.json, .claude-skill.json |
YOUR SKILL DESCRIPTION |
Your description |
package.json, SKILL.md |
your-skill-name |
my-awesome-skill |
SKILL.md, .claude-skill.json |
YOUR NAME |
Your Name |
package.json |
YOUR-USERNAME |
your-github-username |
package.json, README.md |
YOUR-REPO-NAME |
my-awesome-skill |
package.json |
# macOS/Linux
find . -type f -name "*.json" -o -name "*.md" | xargs sed -i '' 's/YOUR-SKILL-NAME/my-awesome-skill/g'
# Or use your text editor's find-and-replace featureEdit SKILL.md and update:
-
Frontmatter (lines 2-5):
--- name: my-awesome-skill description: Your clear description here. Use when [scenarios]. allowed-tools: Read, Bash ---
-
Instructions section: Add your skill's logic
-
Examples section: Show how it works
# Test installation
npm test
# Or manually
node install-skill.js
# Verify
ls -la ~/.claude/skills/my-awesome-skill/
cat ~/.claude/skills/my-awesome-skill/SKILL.mdOpen Claude Code and ask: "What skills are available?"
# One-time setup
npm login
# Publish
npm publish --access publicBefore publishing, verify:
- Replaced all placeholders
- Updated SKILL.md with your logic
- Tested installation locally
- Verified skill appears in Claude Code
- Updated README.md
- Added examples
- Committed to git
- Share: Tell others about your skill
- Iterate: Get feedback and improve
- Document: Add more examples and use cases
- Contribute: Help improve this template
Good names are:
- ✅ Descriptive:
git-commit-helper - ✅ Specific:
typescript-error-checker - ✅ Clear:
code-reviewer
Avoid:
- ❌ Generic:
helper,tool,utility - ❌ Vague:
my-skill,test
Include:
- What it does
- When to use it
- Keywords users would say
Example:
description: Generates conventional commit messages from git diffs. Use when writing commit messages, creating commits, or reviewing staged changes.Keep SKILL.md concise (<500 lines). Put detailed content in:
reference.md- Detailed documentationexamples.md- More examplesscripts/- Utility scripts
# Check permissions
ls -la ~/.claude/
# Try sudo (if global)
sudo npm install -g @antskill/my-skill
# Or fix npm permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'- Check
~/.claude/skills/my-skill-name/ - Verify SKILL.md has proper frontmatter
- Restart Claude Code
# Check if name is available
npm view @antskill/my-skill
# Verify you're logged in
npm whoami
# Check package.json is valid
cat package.json | jqNeed help? Open an issue or start a discussion!