@hoshinoren/skill-evo-core
v0.1.3
Published
Core evolution engine for AI Agent Skills
Maintainers
Readme
@hoshinoren/skill-evo-core
skill-evo 的核心引擎。处理演化记录的读写、多平台 skill 扫描、SKILL.md 回注,以及 Agent Profile 的组装和同步。
如果你只是想用命令行管理 skills,装 @hoshinoren/skill-evo-cli 就够了。这个包是给需要在代码里直接调用演化能力的场景准备的。
安装
npm install @hoshinoren/skill-evo-core用法
import { readEvolution, addEvolution, reinjectEvolution } from '@hoshinoren/skill-evo-core'
// 读取演化记录
const evo = await readEvolution('/path/to/skill')
// 添加一条演化
await addEvolution('/path/to/skill', {
type: 'bugfix',
summary: '修复了大文件超时',
context: '用户上传 50MB PDF 时超时退出',
lesson: '对大于 10MB 的文件启用流式处理',
})
// 写回 SKILL.md
await reinjectEvolution('/path/to/skill')模块一览
evolution— 演化记录 CRUD + reinjectscanner— 扫描 6 个平台的 skill 目录manifest— manifest.json 读写profile— Agent Profile CRUDassembly— 多维度组装引擎profile-sync— 通过平台适配器同步到 Claude Code / Codex / Cursor / Gemini CLI / Antigravity / OpenClaw
详见 skill-evo。
License
MIT
