将AI技能作为作曲家依赖分配
概览
将AI技能作为作曲家依赖分配 它会从你的作曲家/厂商包中从任意的 Git 仓库(GitHub 和 GitLab,通过 skills:add 添加)下载 AI 技能,然后将它们同步到项目本地目录(默认为 .agents/skills/)。 AI技能是一个包含 SKILL.md 及任何辅助文件(模板、示例、夹具)的目录。目录名称是技能的身份;编码代理工具读取 SKILL.md 以学习项目特定的指令、约定和配方。 技能按需在消费者项目中组装,或在作曲器安装/更新时自动生成。软件包甚至不必声明任何内容:技能由其所在 SKILL.md 文件自动发现。 Composer 会在安装时提示允许该插件——回答 。(对于非交互式设置,预先允许 “config”: { “allow-plugins”: { “llm/skills”: true } } 在 composer.json 中。) 这就是全部设定。
概述(AI 翻译)
法学博士/技能
将AI技能作为作曲家依赖分配
一个作曲家插件,可以从你的作曲家/厂商包下载AI技能并且
任意的 Git 仓库(GitHub 和 GitLab,添加于 skills:add),然后保持它们与
一个项目本地目录(默认为 .agents/skills/)。
AI 技能是一个包含SKILL.md及任何辅助文件(模板,
示例,fixtules)。目录名称是技能的身份;编码代理工具为
SKILL.md 学习项目特定的操作说明、惯例和食谱。
技能按需在消费者项目中组装,或在composer install/中自动组装
update。一个包甚至不需要声明任何东西:技能是
无论他们住在哪里,都会自动被他们的SKILL.md档案发现。
安装
Composer 在安装时会提示允许该插件——请回答 y。(对于非交互式
设置,预允许 ["config": { "allow-plugins": { "llm/skills": true } }
composer.json)
这就是整个设置。在下一个composer install / update,一个没有
“技能。”
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
llm/skills
Distribute AI Skills as Composer dependencies
A Composer plugin that downloads AI Skills from your Composer/vendor packages and from
arbitrary Git repositories (GitHub and GitLab, added with skills:add), then keeps them synced into
a project-local directory (default .agents/skills/).
An AI Skill is a directory containing a SKILL.md plus any auxiliary files (templates,
examples, fixtures). The directory name is the skill’s identity; coding-agent tools read
SKILL.md to learn project-specific instructions, conventions, and recipes.
Skills are assembled in the consumer project on demand, or automatically on composer install /
update. A package doesn’t even have to declare anything: skills are
auto-discovered by their SKILL.md files wherever they live.
Install
composer require --dev llm/skills
Composer will prompt to allow the plugin during install — answer y. (For non-interactive
setups, pre-allow with "config": { "allow-plugins": { "llm/skills": true } } in
composer.json.)
That is the whole setup. On the next composer install / update, a project with no
skills.json gets a proposed configuration built from the agent directories it already has
(.claude/, .cursor/, …) and a single question to confirm it. Press Enter and the file
is written and your skills are synced; answer n and nothing is written.
To do it yourself, or to revisit the choices later:
composer skills:init # the full wizard: target, aliases, trust, auto-sync
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add roxblnfk/skills