A template for creating and publishing Claude Code skills as npm packages. Enables operations teams to distribute AI agent skills with version control and easy updates. Connects to AI coding tools like Claude Code, Cursor, and Windsurf.
git clone https://github.com/neovateai/agent-skill-npm-boilerplate.gitThe agent-skill-npm-boilerplate is a powerful template designed for developers looking to create and publish Claude Code skills as npm packages. This automation skill streamlines the process of skill development, allowing users to focus on coding rather than the intricacies of package management. By leveraging this boilerplate, developers can quickly set up their projects and ensure they adhere to best practices in the npm ecosystem, which is crucial for maintaining code quality and usability. One of the key benefits of using the agent-skill-npm-boilerplate is the significant reduction in setup time. While the exact time savings are not quantified, the skill is designed to be implemented in just 30 minutes, making it an efficient choice for developers who need to get their projects off the ground quickly. This efficiency is particularly valuable in fast-paced environments where time-to-market is critical. Additionally, by utilizing this boilerplate, developers can ensure that their skills are compatible with the Claude Code framework, enhancing their integration into AI automation workflows. This skill is ideal for developers, product managers, and AI practitioners who are involved in creating AI agent skills. Whether you are working in a startup or a larger organization, the agent-skill-npm-boilerplate can help streamline your development process, allowing you to focus on building innovative features rather than worrying about the underlying infrastructure. With its intermediate complexity, it is suitable for those who have some experience with npm and JavaScript, making it accessible yet challenging enough to provide value. In practical terms, the agent-skill-npm-boilerplate can be used to develop various AI automation applications, such as chatbots, data processing tools, or any other AI-driven functionalities that require a robust backend. By implementing this skill, teams can enhance their productivity and ensure that their AI solutions are built on a solid foundation. As businesses increasingly adopt AI-first strategies, skills like the agent-skill-npm-boilerplate become essential for maintaining a competitive edge in the market.
["Run the initialization command with your skill details: `claude create-npm-skill --name [SKILL_NAME] --description [DESCRIPTION] --version [VERSION]`","Edit the generated files in `/src/skill/` to implement your skill logic. Start with `index.js` and `manifest.json`.","Test your skill locally using `npm run test` or by importing it into Claude Code.","Build your skill package with `npm run build` to generate a distributable file.","Publish to npm with `npm run publish` after logging in to npm (`npm login`).","Tip: Use `claude test-skill` to validate your skill before publishing. For Sortd integrations, ensure you have API credentials configured."]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/neovateai/agent-skill-npm-boilerplateCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a new Claude Code skill as an npm package using the agent-skill-npm-boilerplate. Initialize the project with [SKILL_NAME], [DESCRIPTION], and [INITIAL_VERSION]. Include a basic skill structure with a manifest.json file, a skill directory with index.js, and a README.md. Set up npm scripts for testing, building, and publishing. Use [AI_CODING_TOOL] for implementation.
```bash
$ claude create-npm-skill --name "sortd-email-tracker" --description "A Claude Code skill to track and manage Sortd email workflows directly from Gmail" --version "1.0.0"
✅ Project initialized successfully!
📁 Project Structure:
/sortd-email-tracker
├── /src
│ ├── skill
│ │ ├── index.js # Main skill logic
│ │ └── manifest.json # Skill metadata
├── /tests
│ └── index.test.js # Basic tests
├── package.json # Project config
├── README.md # Documentation
└── .npmignore # Ignore files
📦 NPM Scripts Configured:
- npm run test # Run tests
- npm run build # Package skill
- npm run publish # Publish to npm
🔧 Next Steps:
1. Edit src/skill/index.js to implement your skill logic
2. Update manifest.json with your skill details
3. Run 'npm run build' to package your skill
4. Publish with 'npm run publish'
💡 Tip: Use Claude Code to test and refine your skill before publishing.
```
**Example manifest.json:**
```json
{
"name": "sortd-email-tracker",
"version": "1.0.0",
"description": "Track and manage Sortd email workflows from Gmail",
"author": "Your Name <[email protected]>",
"license": "MIT",
"main": "src/skill/index.js",
"keywords": ["sortd", "gmail", "email", "workflow", "ai-agent"],
"dependencies": {
"@claude-sdk/core": "^1.0.0"
}
}
```
**Example index.js:**
```javascript
const { Skill } = require('@claude-sdk/core');
const skill = new Skill({
name: 'Sortd Email Tracker',
description: 'Manages Sortd email workflows directly from Gmail',
version: '1.0.0'
});
skill.addCommand({
name: 'track-sortd-email',
description: 'Track an email in Sortd and add it to a workflow',
parameters: {
emailId: { type: 'string', description: 'The Gmail message ID' },
workflowId: { type: 'string', description: 'The Sortd workflow ID' }
},
async execute({ emailId, workflowId }) {
// Implementation to track email in Sortd
return {
success: true,
message: `Email ${emailId} added to workflow ${workflowId}`
};
}
});
module.exports = skill;
```AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan