SuperAPI AI 工具集

_template

通用与其它

查看项目

更新于 10-16 08:10

技能介绍

用途:_template 是修仙工坊(xiuxian-artisan-workshop)中的模板技能,作为创建新技能的脚手架,演示 Trinity Architecture v4.0 的 scripts/commands.py 模式。

主要能力:提供命令注册示例(template.example、template.example_with_options、template.process_data、template.help),并说明技能目录结构:SKILL.md(元数据与系统提示)、scripts/commands.py(命令函数,经 ModuleLoader 热重载)、tests/(测试文件)。命令通过 @skill_command 装饰器注册,运行时自动应用技能命名空间。

使用方式:复制模板目录 cp -r assets/skills/_template assets/skills/my_new_skill,在 scripts/commands.py 中添加命令,在 tests/ 中添加测试,更新 README.md 与 SKILL.md 的 frontmatter(name、version、description、routing_keywords、permissions)。权限格式为 "category:action",如 "filesystem:read"。对于重依赖场景,可采用 Sidecar 模式:pyproject.toml 管理依赖,scripts/engine.py 承载重实现,scripts/init.py 作为轻量 shim 以子进程方式调用。

适用场景:需要新增技能、统一命令注册与测试流程、或隔离重依赖(如 crawl4ai、playwright)时。

限制:资料未提供具体收费、价格、平台支持范围或实际运行效果;命令行为与依赖管理细节需以实际代码和文档为准。