com um clique
maestro-init
Initialize project with auto state detection
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Initialize project with auto state detection
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional 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-init |
| disable-model-invocation | true |
| description | Initialize project with auto state detection |
| argument-hint | [-y] [--from <source>] [--from-brainstorm SESSION-ID] |
| allowed-tools | ["Bash","Glob","Grep","Read","Write","followup_task","interrupt_agent","list_agents","request_user_input","send_message","spawn_agent","spawn_agents_on_csv","wait_agent"] |
| session-mode | bootstrap |
| version | 0.5.55 |
<bootstrap_mode>
This skill initializes protected project state before a Session exists. It MUST NOT call maestro run create; bootstrap files remain owned by their protected stores.
</bootstrap_mode>
<deferred_reading>
Flags:
| Flag | Effect | Default |
|---|---|---|
-y / --yes | Automatic mode. After config questions, runs research without further interaction. Expects idea document via @ reference. | false |
--from <source> | Load upstream context package (brainstorm:ID, @file, or path). Consumes context-package.json to pre-fill project vision, goals, constraints, and terminology. Skips interactive questioning. Alias: --from-brainstorm | — |
Load project state if exists:
Check for .workflow/state.json -- loads context if project already initialized.
Output boundary: ALL file writes MUST target .workflow/ (project.md, state.json, config.json, specs/) only. NEVER modify source code or files outside .workflow/.
<interview_protocol> Follows @~/.maestro/workflows/interview-mechanics.md standard.
Interaction mode: convergent menu-driven Decision tree (strict order): project type (greenfield / existing codebase onboarding) → tech stack detection and confirmation → directory structure preferences → initial configuration (specs categories, wiki bootstrap) Scope guard: only init decisions; do not prejudge roadmap structure or plan scope Writeback target: project.md (project description) + config.json (settings) + state.json (initial state) Additional skip conditions: --from source (upstream context pre-fills decisions) Exit condition: all configuration questions settled → proceed to workflow execution </interview_protocol>
GATE 1: Pre-flight → Interview
.workflow/ existence check completed.--from source validated (if provided)..workflow/) unresolved.GATE 2: Interview → Research
.workflow/ directory created with initial structure.GATE 3: Research → Completion
.workflow/specs/ initialized..workflow/ already exists — if so, load state and warn (E002 for greenfield conflicts)--from source is accessible if providedFollow '~/.maestro/workflows/init.md' completely.
REQUIRED_ARTIFACTS = [
".workflow/project.md", // Core Value, Requirements, Key Decisions
".workflow/state.json", // artifacts[], initialized to idle state
".workflow/config.json" // Workflow configuration
]
If any artifact is missing: DO NOT report completion. Write the missing file first.
### Standalone report=== WORKFLOW INITIALIZED ===
Project: {project_name}
State: .workflow/state.json (active)
Created:
.workflow/project.md
.workflow/state.json
.workflow/config.json
.workflow/specs/
End the step by calling the CLI (no text block output):
maestro run complete --session {session_id} --verdict {VERDICT} [--evidence {path}]
(run-id 可省略 — 自动解析当前 running 步)
Verdicts:
--note--reason| Condition | Suggestion |
|---|---|
| Roadmap needed (default light) | step roadmap (maestro run prepare --platform codex roadmap + maestro run create roadmap --session YYYYMMDD-roadmap-{topic} --intent "{goal}") |
| Full spec package | step blueprint (maestro run prepare --platform codex blueprint + maestro run create blueprint --session YYYYMMDD-blueprint-{topic} --intent "{goal}") |
| Explore ideas first | step brainstorm (maestro run prepare --platform codex brainstorm + maestro run create brainstorm --session YYYYMMDD-brainstorm-{topic} --intent "{goal}") |
| View project dashboard | /maestro-manage status |
| Quick ad-hoc task | /maestro-companion "{goal}" |
<error_codes>
| Code | Severity | Condition | Recovery |
|---|---|---|---|
| E001 | error | No arguments provided when -y requires @ reference | Check arguments format, re-run with correct input |
| E002 | error | .workflow/ already exists for greenfield init | Check .workflow/ directory state, resolve conflicts |
| E003 | error | Context source not found (--from / --from-brainstorm) | Check arguments format, re-run with correct input |
| W001 | warning | Research agent failed, continuing with partial results | Retry research or proceed with partial results |
| </error_codes> |
<success_criteria>
.workflow/project.md created with Core Value, Requirements (Validated/Active/Out of Scope), Key Decisions.workflow/state.json created with artifacts[] array, initialized to idle state.workflow/config.json created with workflow / execution / git / gates / codebase / guard / collab / specInjection / dashboard segments.workflow/specs/ initialized with convention files