| name | mspec-new |
| description | new step of mspec workflow — bootstrap a change directory and readme.md |
| when_to_use | User runs /mspec:new, or workflow auto-continues to new |
Procedure
- Run
mspec status --json (no --change) to confirm overall repo state.
- Read the user's request and propose a kebab-case feature name (ask once if ambiguous).
- Run
mspec new <feature-kebab> — the CLI creates changes/<YYYY-MM-DD-HHMMSS>-<feature>/readme.md.
- Open
readme.md and write a 1–3 line ## Request summary based on the user's words. Leave ## Artifacts checkboxes unchecked and ## Skipped Steps empty.
4a. モード推定(--mode 明示指定がない場合のみ):
- 説明文から AI がモード(
typo / minor / bugfix)を推定する。
- AskUserQuestion で「
<mode> モードと判断しました。正しいですか?」と 1 問確認する。
- 承認されたら
readme.md の ## Request 直後に > Mode: <mode> 行を追記する。
--mode <value> 明示指定の場合は推定・確認をスキップして直接追記する。
- フルフロー変更(typo / minor / bugfix 以外)の場合は
> Mode: 行を追記しない。
- Run
mspec validate --change <change-dir>.
block: true — stop and ask the user to run /mspec:continue when ready.
Verification (C2)
mspec validate --change <change> — アーティファクト整合性チェック
mspec anchor check --change <change> — アンカー解決確認
mspec status --json — リポジトリ全体の状態確認
Learning (C3)
このスキルの実行で発生した学習候補を記録する:
<!-- LEARNING: <パターン説明> | source: <FR-ID> | confidence: low|medium|high -->
mspec learn コマンドが archive 済み changes からこれらを収集してpost-condition候補をproposeする。