Claude Skill
antfu/skills-npm
一个TypeScript工具,简化从npm包安装Claude Skill的过程。通过直接的包管理,轻松为项目添加智能体能力。
概览
仓库信息
安装这个 Skill
git clone https://github.com/antfu/skills-npm.gitRegistry 信息
项目简介
一个TypeScript工具,用于直接从npm包安装Claude Skill,便于集成智能体能力。
Install agent skills from npm
要点
- 从npm安装Claude Skill
- TypeScript实现
- 简单的集成流程
- 直接的包管理
使用场景
- 为项目添加智能体能力
- 管理Claude Skill依赖
- 简化AI工具集成
- 共享可复用的AI技能
README 摘要
# skills-npm [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![JSDocs][jsdocs-src]][jsdocs-href] [![License][license-src]][license-href] A CLI that discovers [agent skills](https://agentskills.io) shipped inside npm packages and creates symlinks for coding agents to consume. ## Why? Current skill distribution approaches (e.g. [`@vercel-labs/skills`](https://github.com/vercel-labs/skills)) have friction: - **Git-only source** - Only supports git repos as skills source - **Version mismatch** - Skills and tools update separately, causing compatibility issues - **Manual management** - Cloning skills from git repos requires extra steps per project - **Sharing overhead** - Teams must commit cloned files or repeat setup on each machine This project proposes a convention: **ship skills inside npm packages**. When you `npm install` a tool, its skills come bundled. Run `skills-npm` to symlink them for your agent. **Read the full proposal: [PROPOSAL.md](./PROPOSAL.md)** ## Usage ```bash npm i -D skills-npm ``` Add a `prepare` script to your `package.json` so the skills are symlinked automatically for your agent whenever you install dependencies: ```json { "private": true, "scripts": { "prepare": "skills-npm" } } ``` `skills-npm` will symbol links the skills from `node_modules` to `skills/npm-<package-name>-<skill-name>` for your agent. It's recommend to add the following to your `.gitignore`: ``` skills/npm-* ``` ## Configuration You can create a `skills-npm.config.ts` file in your project root to configure the behavior: ```ts // skills-npm.config.ts import { defineConfig } from 'skills-npm' export default defineConfig({ // Source to discover skills from
话题
暂无话题