원클릭으로
maestro-update
Detect version, preview changes, apply workflow upgrades
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Detect version, preview changes, apply workflow upgrades
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Manifest-driven knowledge asset generator — converts any structured package into maestro knowhow + spec entries with ref linking. Triggers on "codify-to-knowhow", "style to knowhow", "知识固化".
Check workflow delegation prompts against agent role definitions for content separation violations. Detects conflicts, duplication, boundary leaks, and missing contracts. Triggers on "check delegation", "delegation conflict", "prompt vs role check".
Adversarial review of code quality findings. Challenges insights with counter-evidence, verifies claims against source code, and produces structured verdicts. Triggers on 'insight-challenge', 'challenge finding', '审查发现'.
Quick execution for small tasks (≤1-2 files, no artifact handoff) — minimal run lifecycle (create + complete only) with evidence recording. Can read/write/run any tool, but scoped to tasks completable in a few actions. Not for multi-step workflows or tasks needing downstream gates
Create or sync session worktree for parallel dev
Manage editing boundary restrictions
| name | maestro-update |
| disable-model-invocation | true |
| description | Detect version, preview changes, apply workflow upgrades |
| argument-hint | [--dry-run] [--force] [--setup-only] |
| allowed-tools | ["Bash","Edit","Glob","Grep","Read","Write","request_user_input"] |
| session-mode | none |
| version | 0.5.55 |
Flags:
--dry-run -- Preview migration plan without executing--force -- Skip confirmation prompts (intended for CI/automated contexts). Migration diff is still displayed even with --force to maintain audit visibility.--setup-only -- Skip schema migration, run only the setup for current versionVersion source: .workflow/state.json → version field
Workflow docs: ~/.maestro/workflows/updates/
update-v{TO}-setup.md — post-migration setup for version {TO}Schema registry: maestro update --migrate — handles all intermediate version bumps automatically
Output boundary: ALL file writes MUST target .workflow/state.json (version bump), .workflow/state.json.backup-* (backup), and .workflow/ config files touched by version-specific setup. NEVER modify source code or src/migrations/ files.
GATE 1: Detect → Check
.workflow/state.json.GATE 2: Check → Execute
--force).GATE 3: Execute → Summary
.workflow/state.json.backup-v{current}-{timestamp}.1. Read .workflow/state.json → extract version (default "1.0" if missing)
2. Display:
=== Maestro Update ===
Current version: v{version}
IF --setup-only:
→ Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
→ IF exists: follow that document completely, then EXIT
→ IF not exists: display "No setup script for v{version}" → EXIT
1. Run: maestro update --migrate "$(pwd)" --dry-run --json
2. Parse JSON output
3. IF status = "up-to-date":
Display "Already up to date (v{version})"
→ Glob: ~/.maestro/workflows/updates/update-v{version}-setup.md
→ IF exists: request_user_input "Run setup for v{version}?" → load and follow
→ EXIT
4. Display target:
Update available: v{current} → v{target}
Schema migrations: {N} step(s) (handled automatically)
IF --dry-run → display info and EXIT.
1. Display migration diff (always — even with --force):
Show schema changes that will be applied.
2. Confirm (unless --force):
request_user_input: "Upgrade v{current} → v{target}?"
Options: [执行 / 取消]
3. Create backup:
Bash: cp .workflow/state.json .workflow/state.json.backup-v{current}-{timestamp}
4. Run schema migration (handles all intermediate steps automatically):
Bash: maestro update --migrate "$(pwd)" --json
Parse result, display changes.
5. IF failed → display backup restore command → EXIT
6. Load version-specific setup:
Read: ~/.maestro/workflows/updates/update-v{target}-setup.md
IF exists → follow completely (hooks, deps, knowledge system config)
7. Display: "v{current} → v{target}: done"
=== Update Complete ===
Version: v{current} → v{target}
Backup: .workflow/state.json.backup-v{current}-{timestamp}
Next steps:
/maestro-manage status -- Verify project state
/maestro -- Continue workflow
<error_codes>
| Code | Severity | Condition | Recovery |
|---|---|---|---|
| E001 | error | .workflow/state.json not found or unreadable | Run /maestro-init first |
| E002 | error | Schema migration failed (npx tsx returned error) | Display backup restore command: cp .workflow/state.json.backup-* .workflow/state.json |
| E003 | error | Version-specific setup doc failed to execute | Manual setup: read ~/.maestro/workflows/updates/update-v{target}-setup.md |
| W001 | warning | No version-specific setup doc found for target version | Proceed without setup; schema migration alone is sufficient |
| W002 | warning | --setup-only but no setup script exists for current version | Display message and exit |
| </error_codes> |
<success_criteria>