groove-utilities-memory-mistakes
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegroove-utilities-memory-mistakes
groove-utilities-memory-mistakes
Use $ARGUMENTS as the mistake description if provided (e.g. to show open incidents only).
--list如果提供了$ARGUMENTS则将其作为错误描述使用(例如使用仅展示未解决的事件)。
--listOutcome
执行结果
The workflow mistake is logged, its root cause is fixed in the relevant memory or learned file, and the lesson is graduated to . The incident is closed.
<memory>/learned/<topic>.md工作流错误会被记录,其根本原因会在相关记忆或已学习文件中得到修复,经验教训会被归档到中,事件将被关闭。
<memory>/learned/<topic>.mdAcceptance Criteria
验收标准
- Incident is recorded with root cause and fix
- Permanent fix applied to
.groove/memory/learned/<topic>.md - Incident marked resolved
- 事件会记录根本原因和修复方案
- 永久修复会被应用到
.groove/memory/learned/<topic>.md - 事件标记为已解决
Task backend
任务后端
Read from . Incidents are tracked as tasks in the configured backend. If no task backend is configured (), tell the user to run first.
tasks:.groove/index.mdtasks: none/groove-utilities-task-installIncidents are stored as bugs under a shared "Groove Memory" milestone → "Mistakes" epic.
读取中的配置。事件会作为任务在配置的后端中进行跟踪。如果未配置任务后端(),请告知用户先运行。
.groove/index.mdtasks:tasks: none/groove-utilities-task-install事件作为bug存储在共享的"Groove Memory"里程碑下的"Mistakes"史诗中。
Ensure parent hierarchy
确保父层级存在
Before any operation, resolve or create the parent epic:
- Find or create the Groove Memory milestone:
- — if non-empty, use first ID; otherwise
beans list -t milestone --search "Groove Memory" -qbeans create "Groove Memory" -t milestone
- Find or create the Mistakes epic under that milestone:
- — if non-empty, use first ID; otherwise
beans list -t epic --parent <milestone-id> --search "Mistakes" -qbeans create "Mistakes" -t epic --parent <milestone-id>
在执行任何操作前,解析或创建父史诗:
- 查找或创建Groove Memory里程碑:
- — 如果返回非空,使用第一个ID;否则执行
beans list -t milestone --search "Groove Memory" -qbeans create "Groove Memory" -t milestone
- 查找或创建该里程碑下的Mistakes史诗:
- — 如果返回非空,使用第一个ID;否则执行
beans list -t epic --parent <milestone-id> --search "Mistakes" -qbeans create "Mistakes" -t epic --parent <milestone-id>
--list
--list--list
--list- Resolve
<parent-id> beans list --parent <parent-id> -t bug -s in-progress- Display as numbered list:
1. [<id>] <title> - If empty: print "No open incidents."
- 解析得到
<parent-id> beans list --parent <parent-id> -t bug -s in-progress- 以编号列表形式展示:
1. [<id>] <title> - 如果结果为空:打印"无未解决事件。"
Log and resolve an incident
记录并解决事件
- Resolve
<parent-id> - Get description from $ARGUMENTS or ask: "What mistake did I make?"
- Ask: "Root cause — why did it happen?" (propose from context; user confirms)
- Ask: "What fix should be applied?" (propose; user confirms)
beans create "<description>" -t bug --parent <parent-id> -s in-progress- Apply the fix immediately (edit the relevant file)
- Ask: "Which learned topic? (e.g. ,
anti-patterns)" — suggest based on root causetools - Append lesson to under
<memory>/learned/<topic>.mdheading## YYYY-MM-DD beans update <id> -s completed- Report: "Incident resolved → learned/<topic>.md"
- 解析得到
<parent-id> - 从$ARGUMENTS获取描述,或者询问用户:"我犯了什么错误?"
- 询问用户:"根本原因是什么?为什么会发生?"(从上下文给出建议,由用户确认)
- 询问用户:"应该应用什么修复方案?"(给出建议,由用户确认)
beans create "<description>" -t bug --parent <parent-id> -s in-progress- 立即应用修复(编辑相关文件)
- 询问用户:"属于哪个学习主题?(例如、
anti-patterns)" — 根据根本原因给出建议tools - 将经验教训追加到的
<memory>/learned/<topic>.md标题下## YYYY-MM-DD beans update <id> -s completed- 报告:"事件已解决 → learned/<topic>.md"
Constraints
约束条件
- Read and
tasks:frommemory:.groove/index.md - Requires a configured task backend — if , prompt user to install one
tasks: none - Never auto-create incidents without user confirmation
- Root cause is required before resolving — do not skip the audit step
- Parent hierarchy is idempotent — always check before creating
- If the fix targets a file: note that
skills/is managed by groove:update; redirect fix toskills/learned/anti-patterns.md
- 从读取
.groove/index.md和tasks:配置memory: - 需要已配置的任务后端 — 如果,提示用户先安装
tasks: none - 未经用户确认绝不自动创建事件
- 解决前必须明确根本原因 — 不得跳过审计步骤
- 父层级操作是幂等的 — 创建前始终先检查
- 如果修复针对的是目录下的文件:请注意
skills/由groove:update管理,请将修复内容重定向到skills/learned/anti-patterns.md