@ai-slate/playbooks
v0.0.2
Published
采用 **skills-first** 结构:
Readme
AISlate Skills
采用 skills-first 结构:
skills/<skill-id>/SKILL.md
bundles.json
scripts/install.mjs
bin/aislate-skills.jsNPM V1 安装(多平台 + project/global)
# 项目级安装(target 必填)
npx @ai-slate/playbooks install \
--bundle requirement-to-tasks \
--platform cursor \
--scope project \
--target E:/code/your-project
# 全局级安装(按平台写入用户目录)
npx @ai-slate/playbooks install \
--bundle requirement-to-tasks \
--platform codex \
--scope global
# dry-run
npx @ai-slate/playbooks install \
--bundle requirement-to-tasks \
--platform trae \
--scope project \
--target E:/code/your-project \
--dry-run--platform 支持:cursor、trae、claude-code、codex--scope 支持:project、global(必须显式指定)
安装后会在平台配置目录写入:
<config-root>/skills/<skill-id>/** (包含 SKILL.md、scripts 等附属文件)
<config-root>/skills.lock.json
<config-root>/install.manifest.json参数说明:
--bundle:bundles.json中的安装单元 id(必填)--platform: 安装平台(必填)--scope: 安装作用域(必填)--target: 目标项目路径(--scope project时必填)--strategy:merge(默认)或replace--dry-run: 只输出安装计划,不落盘
V1 边界
- 仅支持本地包内 skill/bundle 安装
- 暂不支持远程 URL/Git 动态来源(计划在 V2 引入)
协议与校验
bundles.json仅用于把多个 skill 组成安装单元- 核心资产始终是
skills/*/SKILL.md - 协议定义见
docs/install-protocol.md - 执行
npm run validate可检查 bundle、skill 文件和 frontmatter 约束
