SuperAPI AI 工具集

paw-cra-setup

通用与其它

查看项目

更新于 10-16 07:57

技能介绍

用途:在项目中安装并配置 Pawbytes Creative Suites 模块(模块标识为 cra)。模块名称、代码、版本来自 ./assets/module.yaml。

主要能力:收集用户偏好并写入 {project-root}/.pawbytes/config/config.yaml(共享配置,含 cra: 段)与 config.user.yaml(个人设置,含 API 密钥及标记 user_setting: true 的变量,应加入 gitignore);通过 module-help.csv 注册模块能力;两个配置脚本采用反僵尸模式,写入前先移除该模块已有条目。{project-root} 是配置值中的字面标记,不应替换为实际路径。

使用方式:激活时读取 module.yaml,检查 config.yaml 是否已有 cra: 段(有则提示为更新),并检查旧版 _bmad/config.yaml 是否可迁移。若用户提供参数(如接受全部默认、--headless 或内联值),则映射到配置键、其余用默认值并跳过交互提示,但仍显示确认摘要。默认优先级:已有配置值 > module.yaml 默认值。核心配置仅在尚无核心键时询问 user_name(默认 user)、communication_language 与 document_output_language(默认 English)。API 密钥包括 fal_key(图像/视频生成必需)、elevenlabs_api_key(可选,AI 配音)、pexels_api_key(可选,素材检索)。随后写入临时 JSON 并运行:python3 ./scripts/merge-config.py --config-path "{project-root}/.pawbytes/config/config.yaml" --user-config-path "{project-root}/.pawbytes/config/config.user.yaml" --module-yaml ./assets/module.yaml --answers {temp-file};再运行:python3 ./scripts/merge-help-csv.py --target "{project-root}/.pawbytes/config/module-help.csv" --source ./assets/module-help.csv --module-code cra。脚本输出 JSON,非零退出则报错停止。之后创建目录:mkdir -p "{project-root}/.pawbytes/creative-suites"、brands、knowledge、daily。最后依据脚本输出确认写入内容并显示 module.yaml 中的问候语。

适用场景:需要为项目初始化或更新 Pawbytes Creative Suites 配置时。

限制:资料未提供具体收费、价格、平台支持范围及更多功能细节;配置值中的 {project-root} 必须保持原样。