用途:在项目中安装并配置 Agentic Marketing Suite(AMS)模块,适用于用户要求“install ams module”“configure Agentic Marketing Suite”或“setup Agentic…”等场景。模块身份(名称、代码、版本)来自 ./assets/module.yaml。
主要能力:收集用户偏好并写入 {project-root}/.pawbytes/config/config.yaml(共享生态配置,含核心设置与各模块分区)、config.user.yaml(个人设置,如 user_name、communication_language 及标记 user_setting: true 的模块变量,适合加入 gitignore)、module-help.csv(注册模块能力供帮助系统使用)。两个配置脚本采用 anti-zombie 模式,写入前先移除该模块已有条目,避免残留旧值。{project-root} 是配置值中的字面 token,不应替换为实际路径。
使用方式:激活时读取 ./assets/module.yaml 获取元数据与变量定义;检查 config.yaml 是否已存在该模块代码分区以判断是更新还是新装;检测并自动迁移旧路径(marketing-suites/config/ → .pawbytes/config/,brands/ → .pawbytes/marketing-suites/brands/,reports/ → .pawbytes/marketing-suites/reports/,以及 skills/reports/)。若用户提供参数(如接受全部默认、--headless 或内联值),则映射到配置键、其余用默认值并跳过交互提示,但仍显示完整确认摘要。收集配置时展示默认值,默认优先级为:现有新配置值 > 迁移的旧值 > module.yaml 默认值。核心配置仅在尚无核心键时询问 user_name(默认 Pawbytes)与语言(communication_language 和 document_output_language 同答,默认 English)。随后写入临时 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 mkt 脚本输出 JSON,非零退出需报错并停止。之后创建配置的输出目录(如 brands、reports),磁盘路径解析 {project-root},但配置文件中仍保留字面 token。最后依据脚本输出确认写入内容、迁移情况,并显示 module.yaml 中的 module_greeting。
适用场景:项目首次接入 AMS 或更新其配置,需要统一生态配置、个人设置与帮助注册。
限制:资料未提供收费、价格、平台支持范围及具体效果信息;版权归 PawBytes,免费技能版与付费 playbook 的关系需按原文说明,不得暗示付费内容为使用免费技能所必需。