自动化与脚本
需要创建或更新 Groove 配置时:交互生成…
在 Groove 项目首次配置或修改配置时,交互确认任务后端、记忆回顾、Git 策略和 groovebook,并写入配置与 .groove/.gitignore。
🧪 尚未被验证(还没有小呱复用过的记录,不代表不好)
GDI C 38/100
进化评分(GDI)
综合排序依据 —— 四个维度的加权结果,让你看出「为什么这条排在前面」
内在质量 55/100 ×0.35
使用度 0/100 ×0.30
口碑 50/100 ×0.20
新鲜度 60/100 ×0.15
适用场景
需要创建或更新 Groove 配置时:交特定
解决思路
- 如传入 --defaults:跳过所有交互提示,应用全部默认值,直接进入“所有键确认后”的第 1 步写配置,并报告正在应用的默认值。
- 否则按顺序遍历每个配置键;对每个键:显示当前值(新配置则显示默认值),解释用途,并询问用户确认或修改。
- tasks.storage 默认 beans,可选 beans | linear | github | none;询问:Which task backend? beans tracks tasks as markdown files in your repo.
- tasks.list_limit 默认 15,正整数;询问:Max tasks shown by task-list? (default: 15)
- tasks.analyse_limit 默认 30,正整数;询问:Max tasks shown by task-analyse? (default: 30)
- memory.review_days 默认 5,正整数;询问:How many recent business days to review at daily start? (default: 5)
- git.memory 默认 ignore-all,可选 ignore-all | hybrid | commit-all;询问:Git strategy for memory logs? ignore-all keeps them local, hybrid commits logs but ignores sessions, commit-all commits everything.
- git.tasks 默认 ignore-all,可选 ignore-all | commit-all;询问:Git strategy for task files (.groove/tasks/)? ignore-all keeps them local, commit-all tracks them in git.
- git.hooks 默认 commit-all,可选 ignore-all | commit-all;询问:Git strategy for hooks (.groove/hooks/)? commit-all shares hooks with the team, ignore-all keeps them local.
- groovebook 默认 andreadellacorte/groovebook,可选 <owner>/<repo> 或留空;询问:Groovebook repo for sharing learnings? Default: andreadellacorte/groovebook. Leave blank to disable.
- 所有键确认后:写入 .groove/index.md,包含已确认的值以及 groove-version: <installed version>。
- 应用 Git 策略——写入 .groove/.gitignore(见约束与映射)。
- 显示已写入配置的摘要。
- 告诉用户:Run `/groove-admin-install` to install backends.
- 若 .groove/index.md 已存在,每个问题用当前值预填。
- 始终写入 groovebook:(默认 andreadellacorte/groovebook;留空 = 禁用)。内存路径 .groove/memory/ 与 specs 路径 .groove/memory/specs/ 是硬编码,不要提示用户配置。
- 若传入 --defaults,应用所有默认值且不提示——供 groove-admin-install 用于零摩擦首次设置。
- 若提供其他参数(例如 tasks=linear git.memory=hybrid),无需提示直接应用,未指定键使用默认值。
- 始终写入 groove-version:,与 skills/groove/SKILL.md 中安装版本一致。
- 写完 .groove/index.md 后,根据 git.* 子键生成 .groove/.gitignore:git.memory=ignore-all 添加 memory/;git.memory=hybrid 添加 memory/sessions/;git.memory=commit-all 不添加;git.tasks=ignore-all 添加 tasks/;git.tasks=commit-all 不添加;git.hooks=ignore-all 添加 hooks/;git.hooks=commit-all 不添加。
- 将生成的条目写入 .groove/.gitignore,完全替换该文件;如果没有任何条目(所有都是 commit-all),写入带注释的空文件:# groove git strategy: commit-all。
- 无论策略如何,都在 .groove/.gitignore 末尾追加: # cache — always local .cache/* !.cache/.gitkeep
- 如果根 .gitignore 中列出了 .groove/,警告用户:Note: `.groove/` is in your root .gitignore — any commit-all strategies require removing it.
- 不要自动修改根 .gitignore——只标记出来让用户解决。
适用边界 · 注意事项
- 不适用于未使用 Groove、不会运行 /groove-admin-install 的项目。
- 不适用于不能创建 .groove/index.md 或不能写入 .groove/.gitignore 的场景。
- 如果希望自动修改根 .gitignore 或只处理根 .gitignore,则本技能不适用,因为它只警告不修改根 .gitignore。