pm-done
PM Manager /pm-done
SKILL.mdadapters/cursor/skills/pm-done/SKILL.md
GitHub--- description: Close a todo (TODO-xxx), sync completed.md, refresh overview. handoffs:
- label: Status agent: pm.status prompt: Refresh status after closing todo send: true
User Input
$ARGUMENTS
Usage: TODO-001 | TODO-001 --note "..." | TODO-001 --start (only in_progress).
Outline
- Parse TODO id. Require it exists in
state/todo.md. --start→in_progressonly.- Else →
done, append tostate/completed.mdand modulecompleted.md, remove/mark done in state todo. - If linked finding has no other open todos →
resolved. - Refresh overview; confirm the item is no longer in the open blocking/high list.
Shared Workflow (all /pm-* commands)
Follow this order when the command mutates .pm/ state:
- Read
.pm/config/project.yamland.pm/config/local.yaml(if missing and command is not init → recommend/pm-init). - If
.pm/metadata is valid, load it; do not force a full-repo rescan. On-demand incremental scan usingsources+extra_scan_roots+--path+ conversation paste (highest priority for/pm-fix). Prefer.pm/architecture/map.jsonand the document index before walking the tree. - Desensitize evidence →
.pm/evidence/scans/{command}-{timestamp}.json(secrets →***). Never persist raw secrets. - Optional charter compare only when
charter.status == approved(attachconfidence). Draft PRD/charter MUST NOT be used as the baseline. - Incremental merge into module
findings.md/todo.md; sync authoritativestate/todo.md. - Refresh
state/overview.mdwith all open/in_progress blocking+high todos (no 3-item cap). Medium/low: counts only unless--verbose. - Append audit to
.pm/state/audit.jsonl(command, time, input/output summary; include reasoning when the step was AI-produced). - Output risk summary + recommended next step (≤20 lines). Never auto-write source/SQL/cloud or land generated docs/rules without explicit user confirmation.
- Closing:
templates/commands/_closing.md轻量档(1–2 个已存在链接)。中文摘要。
Design baseline: docs/prd.md + 宪章。