npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agentskill/installer

v1.0.1

Published

CLI tool for installing and managing AI agent skills for Claude Code, Cursor, Windsurf and more

Readme

@agentskill/installer

Tests npm version License: MIT

CLI tool for installing and managing AI agent skills

A simple installer for AI agent skills that works with Claude Code and other AI coding assistants.

Features

  • 🚀 Simple CLI commands for skill management
  • 📦 Automatic installation to the correct directories
  • 🔄 Smart path detection (global vs project-level)
  • 📋 List installed skills
  • 🧪 Dry-run mode to preview changes
  • 📝 Comprehensive logging and error messages

Installation

npm install @agentskill/installer

Or install globally:

npm install -g @agentskill/installer

Usage

Install a skill

agent-skill-installer install

This command will:

  1. Read package.json for the skill name
  2. Detect installation context (global or project-level)
  3. Copy SKILL.md and optional directories (scripts/, references/, assets/) to ~/.claude/skills/
  4. Update the skills manifest

Uninstall a skill

agent-skill-installer uninstall

List installed skills

agent-skill-installer list

Show skills in JSON format:

agent-skill-installer list --json

CLI Options

Global Options:

  • --config <path> - Path to package.json (default: auto-detect)
  • --verbose, -v - Enable verbose logging
  • --help, -h - Show help information
  • --version, -V - Show version number

Install Options:

  • --force, -f - Force reinstall even if already installed
  • --dry-run - Preview installation without making changes
  • --target <targets> - Comma-separated list of targets (e.g., claude-code)

Uninstall Options:

  • --dry-run - Preview uninstallation without making changes
  • --target <targets> - Comma-separated list of targets

List Options:

  • --target <target> - Show skills for specific target only
  • --json - Output in JSON format

Using in Your Skill Package

Add this installer as a dependency in your skill's package.json:

{
  "name": "@your-org/your-skill",
  "version": "1.0.0",
  "scripts": {
    "postinstall": "agent-skill-installer install",
    "preuninstall": "agent-skill-installer uninstall"
  },
  "dependencies": {
    "@agentskill/installer": "^1.0.0"
  },
  "files": [
    "SKILL.md",
    "scripts/"
  ]
}

File Structure

The installer will automatically copy the following files if they exist:

  • SKILL.md (required) - Main skill definition
  • scripts/ (optional) - Utility scripts
  • references/ (optional) - Reference documentation
  • assets/ (optional) - Templates, icons, etc.

How It Works

Installation Flow

  1. Context Detection: Determines if this is a global or project-level installation
  2. Config Reading: Reads package.json for the skill name
  3. Path Resolution: Calculates the correct installation path (defaults to ~/.claude/skills/)
  4. File Copying: Copies SKILL.md and optional directories to the target directory
  5. Manifest Update: Updates .skills-manifest.json to track installation

Installation Paths

  • Global: ~/.claude/skills/your-skill-name/
  • Project: .claude/skills/your-skill-name/

Examples

Install with verbose output

agent-skill-installer install --verbose

Preview installation without changes

agent-skill-installer install --dry-run

Force reinstall

agent-skill-installer install --force

Troubleshooting

Skill not appearing after installation

  1. Check if installation was successful:

    agent-skill-installer list
  2. Verify the skill directory exists:

    ls -la ~/.claude/skills/
  3. Restart your AI coding tool

Permission errors

If you encounter permission errors during global installation:

# Option 1: Fix npm permissions (recommended)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH

# Option 2: Use sudo (not recommended)
sudo npm install -g @agentskill/installer

Configuration not found

Make sure package.json exists in your package root:

agent-skill-installer install --config /path/to/package.json

Development

# Clone the repository
git clone https://github.com/your-org/agent-skill-installer.git
cd agent-skill-installer

# Install dependencies
npm install

# Run tests
npm test

# Run tests in watch mode
npm run test:watch

# Link locally for testing
npm link

# Test the CLI
agent-skill-installer --help

Running Tests

The project uses Mocha and Chai for testing. Tests are automatically run on:

  • Push to main/master/develop branches
  • Pull requests to main/master/develop branches

Tests run on multiple platforms (Ubuntu, macOS, Windows) and Node.js versions (14, 16, 18, 20).

To run tests locally:

npm test

Test coverage includes:

  • config-reader: Reading and parsing package.json, extracting skill names
  • target-detector: Target detection and filtering
  • file-copier: File and directory copying operations

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT License - see LICENSE for details

Support


Made with ❤️ for the AI coding community