Mission orchestrator

From athola/claude-night-market · View interactive version

Mission orchestrator is an AI agent skill from the GitHub repository athola/claude-night-market. Orchestrates full project lifecycle by auto-detecting state and routing to the correct phase. Use when starting or resuming a project mid-workflow.

How to use this skill

Skill file

Mission Orchestrator

Overview

A router. Detect which phase the project is in, then call that phase's

skill with Skill(). Each phase skill runs its own workflow. The

orchestrator only picks the type, sequences the phases, checks each

phase's artifact, and records state so a later session can resume.

When To Use

When NOT To Use

/attune:specify, /attune:blueprint, /attune:execute)

1. Detect the Mission Type

Check the rows top to bottom and take the first match. --type and

--phases override detection.

| Type | Phases | Selected when |

|------|--------|---------------|

| review | scope, investigate, verify, report | The request asks to review, audit, dogfood, or assess existing software |

| quickfix | execute | docs/implementation-plan.md exists |

| tactical | plan, execute | docs/specification.md exists |

| standard | specify, plan, execute | docs/project-brief.md exists |

| full | brainstorm, specify, plan, execute | No artifact exists |

review is selected from request intent and is checked first, because

a tree of build artifacts looks the same whether the ask is "ship this"

or "audit this". When the wording is ambiguous, show both candidates

and ask. An artifact counts only when it is non-empty and has no

frontmatter status of draft or in-progress. The same names at the

repository root also count.

State the detected type, the reason, and the phases, then confirm

unless --auto is set. A --phases list must keep phase order, and a

mission either builds or reviews: the two phase sets do not mix.

2. Route Each Phase

| Phase | Skill Invoked | Artifact Produced |

|-------|--------------|-------------------|

| brainstorm | Skill(attune:project-brainstorming) | docs/project-brief.md |

| specify | Skill(attune:project-specification) | docs/specification.md |

| plan | Skill(attune:project-planning) | docs/implementation-plan.md |

| execute | Skill(attune:project-execution) | Code, tests, .attune/execution-state.json |

| scope | Skill(pensive:tiered-audit) | Tier selection and bounded scope |

| investigate | Skill(imbue:feature-review) plus the pensive:* domain lenses | Raw findings |

| verify | Skill(imbue:proof-of-work) | Evidence references per finding |

| report | Skill(imbue:structured-output) | reports/<topic>-<YYYY-MM-DD>.md |

For each phase in the sequence:

  1. Confirm the prior phase's artifact exists. If it does not, stop and

report the gap. Do not skip ahead.

  1. Invoke the phase skill. Never re-implement its logic here.
  2. Confirm the phase's artifact now exists. A missing artifact is a

failed phase.

  1. Update .attune/mission-state.json.
  2. Checkpoint with the user (continue, pause, abort, re-run) unless

--auto is set or a directive override applies.

After brainstorm and specify, open a GitHub issue for each "Out of

Scope" item that has no issue reference yet, and add the number to the

artifact. Confirm the list with the user first: opening an issue is an

external-facing action.

On a failed phase, use Skill(leyline:damage-control) to classify it.

Retry a transient failure up to twice. Otherwise give the user the

choice to retry, skip (when safe), or abort.

3. Gate Plan to Execute

Before the execute phase, challenge the plan:

  1. Run Skill(leyline:additive-bias-defense) over each plan section,

then walk the user through the sections with the findings.

  1. Send revisions back to Skill(attune:project-planning). After three

rounds, the user must approve as-is, abort, or restart from the

specification.

  1. Run Skill(attune:war-room) on the approved plan. Approval is

required. Concerns or a rejection start another revision round.

  1. Classify every task with Skill(leyline:risk-classification) and

record the tier counts. RED and CRITICAL tasks go through

Skill(attune:war-room-checkpoint) when execution reaches them.

A review mission never enters the war-room gate, because it has no

plan-to-execute transition.

Delegation During a Mission

Missions delegate execution by default.

Skill(conjure:delegation-core) governs the decision, and its default

posture is on: a phase that reaches execution work hands it to an

external CLI without waiting to be asked.

| Phase | Delegates | Why |

|-------|-----------|-----|

| brainstorm | No | Reasoning; the Keep Local clause holds |

| specify | No | Reasoning |

| plan | No | Reasoning |

| execute | Yes, per task | Task execution is the eligible half |

| scope, investigate, verify, report | Report and verify only | Findings are judgment; bulk extraction is not |

The split follows conjure's own line: delegate execution, retain

reasoning.

A mission phase that is entirely judgment stays local and does not

consult the delegator at all.

Two outcomes need handling rather than reporting:

were tried, then hand the task to a subagent on the session's model.

Skill(attune:project-execution) module subagent-fallback.md

carries the rule: which agent each phase uses, how to keep the model

and the branch, and when inline work is allowed. This is the ordinary

path on a machine with no CLI installed and it does not fail the phase.

Take the same path when conjure is not installed and its skill cannot

load.

Do the task locally, because a subagent is still a delegation, and do

not offer to re-enable it.

To run a whole mission without external models, set

CONJURE_DELEGATION=off before invoking it.

User Directive Overrides

Read the command arguments and free text at mission start for trust

signals. "ignore scope guard", "ultrathink", "stop asking", and

"be autonomous" lower the checkpoint load. "supervised" and "ask before

each step" raise it. When several match, the most restrictive wins.

Acknowledge a matched directive once, record it, and stop asking for

the checkpoints it waives.

No directive waives the safety floor: pre-commit hooks, proof-of-work

evidence, confirmation before destructive operations, and confirmation

before external-facing actions.

Mission State

.attune/mission-state.json is the resume contract. /attune:mission

and Skill(attune:skill-library-mission) both write it. Keep these

field names:

| Field | Holds |

|-------|-------|

| mission_id | A stable id such as mission-YYYYMMDD-HHMMSS |

| type | The mission type, or custom for a --phases list |

| phases | The ordered phase list, each with a status and artifact path |

| current_phase | The phase to run next |

| decisions | Each checkpoint choice, with a timestamp |

| directive_overrides | Each matched directive and what it waived |

| risk_summary | Task counts per risk tier, written after the plan gate |

To resume (--resume), load the file, confirm each recorded artifact

still exists, and continue from current_phase. --resume --force

resets a failed phase and retries it. With no state file, start fresh.

Related Commands

Exit Criteria

.attune/mission-state.json

across all tasks

recorded in decisions

Local clause, never skipped for want of a delegation decision

subagent, or inline when the harness has no subagent tool, and

reported with the providers it tried

is left unresolved

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.