Package Exports
- @funstack/skill-installer
Readme
@funstack/skill-installer
A CLI tool and library to install AI Agent skills by copying skill files to the appropriate location.
Installation
npm install @funstack/skill-installerUsage
As a working example, see how FUNSTACK Static uses this library to have users install a skill.
Use as a CLI
skill-installer ./path/to/skill-directoryUse as a library
import { install } from "@funstack/skill-installer";
await install("./path/to/skill-directory");How it works
Interactive Mode
When run in an interactive shell, you'll see a menu to select your AI agent:
Select AI Agent (↑↓ to move, Enter to confirm)
❯ 1. Claude Code (./.claude/skills)
2. Codex (./.codex/skills)
3. GitHub Copilot (./.github/skills)
4. Cursor (./.cursor/skills)
5. Gemini CLI (./.gemini/skills)
6. Windsurf (./.windsurf/skills)
7. OpenCode (./.opencode/skills)
8. Antigravity 2 (./.agents/skills)
9. Other (custom path)
Missing your agent? Let us know: https://github.com/uhyo/funstack-skill-installer/issues- Use arrow keys (↑↓) to navigate
- Press a number key (1-9) to jump to an option
- Press Enter to confirm your selection
Non-Interactive Mode
For CI/CD pipelines or scripted installations, set the SKILL_INSTALL_PATH environment variable:
SKILL_INSTALL_PATH=./.claude/skills skill-installer ./path/to/my-skillSupported AI Agents
| Agent | Installation Path |
|---|---|
| Claude Code | ./.claude/skills |
| Codex | ./.codex/skills |
| GitHub Copilot | ./.github/skills |
| Cursor | ./.cursor/skills |
| Gemini CLI | ./.gemini/skills |
| Windsurf | ./.windsurf/skills |
| OpenCode | ./.opencode/skills |
| Antigravity 2 | ./.agents/skills |
Don't see your agent? Open an issue to request support!
License
MIT