ワンクリックで
lifecycle
Complete milestone lifecycle -- audit, archive, deferred items, and next version preparation
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Complete milestone lifecycle -- audit, archive, deferred items, and next version preparation
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Initialize a Megazord project with configuration and planning structure
Systematic four-phase debugging (reproduce, isolate, root-cause, fix)
Socratic brainstorming to explore approaches before implementation
Execute the current phase plan (subagent or Agent Teams mode)
Show all available Megazord skills with descriptions and usage examples
Plan a phase into executable tasks with dependencies and waves
SOC 職業分類に基づく
| name | lifecycle |
| description | Complete milestone lifecycle -- audit, archive, deferred items, and next version preparation |
| disable-model-invocation | false |
Orchestrate the full milestone lifecycle: audit verification status, archive the current milestone, collect deferred items, and prepare the next version. Uses existing CLI tools (milestone audit, milestone archive, milestone create, roadmap list, roadmap add-phase) as the execution backbone while providing a guided interactive experience.
Note: This skill handles the entire end-of-milestone flow in a single entry point. When audit finds gaps, it proposes gap-closure phases and exits. When audit passes, it proceeds through archive, deferred item collection, and next-version preparation.
Reference @skills/init/design-system.md for visual output formatting.
Reference @skills/shared/presentation-standards.md for content formatting rules.
Reference @skills/shared/terminology.md for official term definitions.
Output the stage banner:
+===============================================+
| MEGAZORD > LIFECYCLE |
+===============================================+
Read .planning/megazord.config.json. If missing, display error and stop:
## Error
Project not initialized — no megazord.config.json found.
`/mz:init`
If config exists, continue loading:
.planning/STATE.md for current position..planning/ROADMAP.md for phase details..planning/MILESTONE.md if it exists (for version detection and phase scope).Determine the plugin path for CLI commands:
plugin_path from the config JSON.plugin_path is not set in config, try ~/.claude/plugins/mz. Check if ~/.claude/plugins/mz/bin/megazord.mjs exists.## Error
Plugin path not configured.
`/mz:settings` to set plugin_path, or `/mz:init` to re-initialize.
Parse the user's message (text after /mz:lifecycle) for arguments:
--skip-audit -- bypass the audit step entirely (for informal projects){version} -- specify the milestone version to archive (optional; auto-detected from MILESTONE.md if present)Use the resolved {plugin_path} for all node {plugin_path}/bin/megazord.mjs commands below.
LOCKED decision: Always show a milestone status summary before proceeding with any destructive action.
node {plugin_path}/bin/megazord.mjs tools roadmap list to get all phases.node {plugin_path}/bin/megazord.mjs tools progress for overall progress.+===============================================+
| Milestone Status |
+-----------------------------------------------+
| Version: {version} |
| Total phases: {N} |
| Completed: {M}/{N} |
| Progress: {percentage}% |
| |
| ✓ Phase 1: {Name} — {functional_sentence} |
| ✓ Phase 2: {Name} — {functional_sentence} |
| ◆ Phase 3: {Name} — {functional_sentence} |
| ○ Phase 4: {Name} — {functional_sentence} |
+===============================================+
Use status symbols (✓ complete, ◆ in progress, ○ pending) instead of [done] tags. Extract functional sentences from the phase Goal in ROADMAP.md — one line per phase, never a bare phase number.
If no version argument was provided:
.planning/MILESTONE.md for a version: field in frontmatter. If found, use it.If no completed phases found, display error and stop:
## Error
No completed phases found. Complete at least one phase first.
`/mz:go` to execute the current phase.
If --skip-audit was provided:
Display note and jump to Step 6:
> Note: Skipping audit (--skip-audit).
If --skip-audit was NOT provided:
Check for existing MILESTONE-AUDIT.md in .planning/:
> Existing audit from {date} found. Reuse? (yes/re-run)
If no existing audit or user wants re-run:
phases: field. If not available, use all completed phases from ROADMAP.md.node {plugin_path}/bin/megazord.mjs tools milestone audit --phases "{comma-separated phase numbers}"
.planning/MILESTONE-AUDIT.md with version, date, status, and per-phase details.all_passed is trueDisplay passed box and proceed to Step 6:
+===============================================+
| Milestone Audit: PASSED |
+-----------------------------------------------+
| Phases verified: {N}/{N} |
| All verification gates passed. |
+===============================================+
Display gaps clearly with a per-phase status table:
+===============================================+
| Milestone Audit: GAPS FOUND |
+-----------------------------------------------+
| Phases verified: {passed}/{total} |
| |
| Failed: |
| - Phase {N}: {Name} — {reason} |
| - Phase {M}: {Name} — No VERIFICATION.md |
+===============================================+
Then propose gap-closure phases:
node {plugin_path}/bin/megazord.mjs tools roadmap add-phase --description "{gap description}"
> Gap-Closure Proposal
{N} gap-closure phase(s) proposed to address these gaps.
After completing them, re-run `/mz:lifecycle` to re-audit.
Proposed phases:
- Phase {X}: {description}
- Phase {Y}: {description}
Add these phases? (yes/no)
## Next Up
**Plan gap-closure Phase {X}: {description}** — address audit gaps
`/mz:plan {X}`
<sub>`/clear` — start fresh context for the next step</sub>
Show what will be archived:
+===============================================+
| Archive Confirmation |
+-----------------------------------------------+
| The following will be archived: |
| |
| ROADMAP.md -> milestones/{ver}-ROADMAP.md |
| REQUIREMENTS -> milestones/{ver}-REQUIRE... |
| phases/ -> milestones/{ver}-phases/ |
| STATE.md -> milestones/{ver}-STATE.md |
| Git tag: milestone/{version} |
+===============================================+
Check for duplicate archive: If milestones/{version}-ROADMAP.md already exists, display warning:
> Warning: Milestone {version} appears already archived.
Proceeding will overwrite the existing archive.
Continue? (yes/abort)
If no duplicate (or user confirms override):
Proceed with archive? (yes/no)
Run the archive via CLI:
node {plugin_path}/bin/megazord.mjs tools milestone archive --version "{version}"
Parse the JSON result to confirm archived files.
Additionally archive STATE.md manually (since archiveMilestone() does not archive STATE.md):
.planning/STATE.md.planning/milestones/{version}-STATE.mdUpdate MILESTONE.md status from "active" to "archived":
.planning/MILESTONE.mdstatus: active with status: archivedDisplay archive confirmation:
> Archive Complete
{N} files archived to .planning/milestones/
Git tag: milestone/{version}
LOCKED decision: Collect deferred items from CONTEXT.md files; user selects which to carry forward.
.planning/phases/*/NN-CONTEXT.md files (glob pattern: .planning/phases/*/*-CONTEXT.md).<deferred> and </deferred> tags.- ).> No deferred items found across phase contexts.
Skip to Step 9.> Deferred Items from {version}
1. Git worktree isolation for parallel agents
2. Reviewer feedback loops during execution
3. Auto-advance to next phase after completion
4. Agent Teams review-fix loop with direct inter-agent communication
5. Reviewer-executor real-time feedback via SendMessage
6. Full clean code audit of entire codebase
Select which deferred items to carry forward as requirements
for the next milestone (comma-separated numbers, 'all', or 'none'):
all -- carry forward everythingnone -- carry forward nothing1,3,5 -- carry forward selected itemsLOCKED decisions: Semver bump suggestion with user confirmation; config inherited as-is.
Suggest next version:
v1.0 -> v2.0).> Next Version
Current: {version}
Suggested: {suggestion}
Next milestone version? (suggested: {suggestion}, or type a version):
Ask for milestone name:
Milestone name? (e.g., 'Second Release'):
Confirm version and name with the user before proceeding.
Create fresh ROADMAP.md:
# Roadmap: {project_name}
## Overview
{project_name} - {next_version}
## Phases
(No phases planned yet. Run `/mz:plan` to create a roadmap.)
## Progress
| Phase | Plans Complete | Status | Completed |
|-------|----------------|--------|-----------|
Create fresh STATE.md:
# Project State
## Project Reference
See: .planning/PROJECT.md
**Core value:** {from archived STATE.md}
**Current focus:** {next_version} - Ready for planning
## Current Position
Phase: 0 of 0
Plan: 0 of 0
Status: Ready for planning
Last activity: {today} -- Milestone {old_version} archived, starting {next_version}
Progress: [ ] 0%
## Performance Metrics
(New milestone -- no metrics yet)
## Accumulated Context
### Decisions
(None yet)
### Pending Todos
(None yet)
### Blockers/Concerns
(None)
## Session Continuity
Last session: {today}
Stopped at: Milestone {next_version} initialized
Resume file: None
Stash ref: None
Last error: None
Create fresh REQUIREMENTS.md with selected deferred items as initial requirements:
# Requirements: {project_name} {next_version}
## Requirements
| ID | Description | Priority | Status |
|----|-------------|----------|--------|
{For each selected deferred item: | NEW-{NN} | {item text} | Medium | Pending |}
(Requirements will be refined during `/mz:plan` roadmap creation.)
If no deferred items were selected, the table has no rows (just the header).
Create new MILESTONE.md via CLI:
node {plugin_path}/bin/megazord.mjs tools milestone create --version "{next_version}" --name "{name}" --phases ""
Note: phases is empty because the new milestone has no planned phases yet. /mz:plan will populate them.
+===============================================+
| Milestone {old_version} Archived |
+===============================================+
| Archived: {N} files to milestones/ |
| Git tag: milestone/{old_version} |
| Deferred items carried: {M} of {total} |
| Next milestone: {next_version} - {name} |
+===============================================+
## Next Up
**Ready for {next_version}: {name}.** Create the roadmap and start planning.
`/mz:plan`
<sub>`/clear` — start fresh context for the next step</sub>
| Error | Step | Action |
|---|---|---|
| Config missing | Step 2 | Error box, suggest /mz:init. Stop. |
| ROADMAP.md missing | Step 2 | Error box, suggest /mz:plan. Stop. |
| No completed phases | Step 3 | Error: "No completed phases found. Complete at least one phase before running lifecycle." Stop. |
| Archive already exists | Step 6 | Warning: "Milestone {version} appears already archived." Ask to proceed or abort. |
| Archive CLI fails | Step 7 | Display error, suggest manual recovery. Stop. |
| No CONTEXT.md files found | Step 8 | Skip deferred items: "No deferred items found." |
| Milestone create fails | Step 10 | Display error with CLI output. State files already reset; suggest manual MILESTONE.md creation. |
{plugin_path} pattern (from config or fallback ~/.claude/plugins/mz)./mz:plan after completion -- it suggests it as the next step (matches the verify pattern).megazord.config.json) is inherited as-is per user decision -- no config review prompt on new milestone.milestone audit, milestone archive, milestone create, roadmap list, roadmap add-phase). It does NOT reimplement their logic.archiveMilestone() copies files (does not move). Originals remain for gap-closure context. The state reset (Step 10) replaces them with fresh skeletons.archiveMilestone() does not archive STATE.md. The skill handles this manually in Step 7.archiveMilestone() does not update MILESTONE.md status. The skill handles this in Step 7./mz:lifecycle repeatedly until audit passes.<deferred> tags in CONTEXT.md files. Phase references are stripped for clean presentation.