User Input
$ARGUMENTS
Subcommands: create | import <path> | discover | approve | skip.
Outline
If $ARGUMENTS is empty, do not guess a subcommand. Show this Chinese wizard and wait:
宪章还没选定动作。请回复其一:
- create — 按模板起草宪章(仍是草稿,须再 approve)
- import <路径> — 从已有文件导入
- discover — 扫描 charter_candidates(优先 Spec Kit)
- approve — 把宪章升为基线(若 PRD 仍是草稿,同时 confirm)
- skip — 不要宪章基线;技术扫描仍可用
Then:
discover: rescancharter_candidates(Spec Kit constitution first); map into.pm/charter/; updatesources.md.import: parse given path into charter files;source=imported.create: interactive fill from templates.approve:charter.status=approved. If.pm/prd/prd.mdis draft, also setprd.status=confirmed(same as/pm-init confirm).skip:charter.status=absent. If the user is skipping the generated PRD, setprd.status=skipped. Do not use skipped/draft charter to judge whether a demand is “reasonable”.- Any write →
needs_recompare=true. - Prefer
/pm-initfor first-time Spec Kit detection and PRD draft. This command is the charter lifecycle after that. approveis the only path that makes the charter a baseline. Technical/pm-alldoes not require approve.
Shared Workflow (all /pm-* commands)
- Read config; map-first; redact; confirm before landing generated docs.
- Append audit. Closing:
_closing.md完整档(只列已有路径)。
Design baseline: docs/prd.md + 宪章。