← 返回
未分类 中文

Nm Attune Mission Orchestrator

Orchestrates full project lifecycle by auto-detecting state and routing to the correct phase
自动检测项目状态并路由至相应阶段,完成全项目生命周期的协调。
athola athola 来源
未分类 clawhub v1.9.12 4 版本 100000 Key: 无需
★ 0
Stars
📥 463
下载
💾 1
安装
4
版本
#latest

概述

> Night Market Skill — ported from claude-night-market/attune. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Table of Contents

Mission Orchestrator

Overview

Wraps the entire attune development lifecycle (brainstorm → specify → plan → execute) into a single mission with automatic state detection, type selection, and phase routing. Follows the "persistent presence lens" pattern from spec-kit:speckit-orchestrator — delegates entirely to existing skills via Skill() calls, never re-implements phase logic.

When To Use

  • Starting a new project from scratch (full lifecycle)
  • Resuming an interrupted project workflow
  • Running a focused tactical implementation from existing specs
  • Quick-fixing from an existing implementation plan

When NOT To Use

  • Running a single phase directly (use /attune:brainstorm, /attune:specify, etc.)
  • Non-project work (code review, debugging, research)
  • When you need fine-grained control over phase transitions

Mission Lifecycle

1. State Detection
   Scan for existing artifacts (project-brief.md, specification.md, etc.)
       |
2. Mission Type Selection
   Auto-detect type based on artifacts, or accept user override
       |
3. Phase Routing Loop
   For each phase in the mission type:
       a. Pre-phase validation (check prerequisites)
       b. Invoke Skill(attune:{phase-skill})
       c. Post-phase artifact check (verify output exists)
       d. Post-phase backlog triage (create GitHub issues
          for out-of-scope items after brainstorm/specify)
       e. Update mission state
       f. User checkpoint (skippable with --auto)
       g. Error handling via leyline:damage-control
       |
4. Completion
   All phases complete, final state saved

Mission Types

TypePhasesAuto-detected When
----------------------------------
fullbrainstorm → specify → plan → executeNo artifacts exist
standardspecify → plan → executedocs/project-brief.md exists
tacticalplan → executedocs/specification.md exists
quickfixexecutedocs/implementation-plan.md exists

See modules/mission-types.md for full type definitions and custom type support.

Phase-to-Skill Mapping

PhaseSkill InvokedArtifact Produced
----------------------------------------
brainstormSkill(attune:project-brainstorming)docs/project-brief.md
specifySkill(attune:project-specification)docs/specification.md
planSkill(attune:project-planning)docs/implementation-plan.md
executeSkill(attune:project-execution)Implemented code and tests

The orchestrator never re-implements phase logic. Each phase is a complete Skill() invocation that handles its own workflow.

Session Recovery

Missions persist state to .attune/mission-state.json. On resume:

  1. Load mission state file
  2. Validate referenced artifacts still exist on disk
  3. Identify last completed phase
  4. Continue from next phase in sequence

See modules/mission-state.md for the state schema and recovery protocol.

Interactive Plan Review

The plan-to-execute transition uses an interactive

review loop instead of a simple checkpoint. Plans are

reviewed section by section, revised based on feedback,

and must pass a mandatory war-room gate before execution.

Key capabilities:

  • Section-by-section terminal review (architecture

first, then phases)

  • Approve/revise/reject verdicts with rationale
  • Plan version tracking with diff summaries
  • Context improvement from structured feedback
  • Additive bias scanning before user review
  • Maximum 3 revision rounds before forced decision
  • Mandatory war-room approval with Prosecution Counsel

See modules/plan-review.md for the full protocol.

Review Modules

  • plan-review.md: Main orchestrator for the review loop
  • plan-versioner.md: Version tracking and diff generation
  • feedback-collector.md: Verdict capture and JSON output
  • context-injector.md: Revision prompt construction
  • iteration-governor.md: Round tracking and escalation

User Directive Overrides

The orchestrator parses the user's command-args and

free-text at mission start for natural-language trust

signals. Phrases like "ignore scope guard", "ultrathink",

"don't keep asking", and "be autonomous" are recognized

as directive overrides that adjust the constraint

profile without requiring an explicit

--constraints= flag.

Directive overrides win over mission-type defaults but

never bypass the Safety Floor (pre-commit hooks,

proof-of-work evidence, destructive-operation

confirmation, external-facing actions). When a directive

is detected, the orchestrator acknowledges it once at

mission start and stops asking for the corresponding

checkpoints. Repeated approval-seeking after a directive

override is itself a workflow bug.

See modules/adaptive-constraints.md "User Directive

Override" section for the parsing table.

Mission Charter

Define mission boundaries using the structured template from

references/mission-charter.md. A Mission Charter specifies:

  • Outcome: What success looks like
  • Success metric: Measurable completion criteria
  • Deadline: Time boundary (session, date, or duration)
  • Constraints: Token/time budgets, forbidden actions
  • Scope: In-scope and out-of-scope areas
  • Stop criteria: Conditions that halt the mission

See references/mission-charter.md for the full template and

examples.

Progress Reports

Track progress with structured checkpoints using

references/progress-report.md. Generate reports at:

  • Phase boundaries (between brainstorm→specify→plan→execute)
  • Blocker identification
  • Risk escalation
  • Budget thresholds (50%, 75%, 90%)

See references/progress-report.md for the template and

checkpoint rhythm guidance.

Module Reference

Core modules (always loaded)

  • mission-types.md: Type definitions, auto-detection logic,

custom types

  • state-detection.md: Artifact existence checks, quality

validation, staleness

  • phase-routing.md: Phase execution protocol, transition

hooks, error handling

  • mission-state.md: State schema, persistence, recovery

protocol

Plan-review modules (load when plan phase runs)

  • plan-review.md: Interactive section-by-section review

with bias scanning

  • plan-versioner.md: Version tracking and diff summaries
  • feedback-collector.md: Verdict capture and feedback files
  • context-injector.md: Revision prompt construction from

feedback

  • iteration-governor.md: Round tracking, cap enforcement,

escalation

Conditional modules (load only when triggered)

  • reflexion-buffer.md: Cross-session learning buffer; load

when iteration count > 1 or after a failed revision round.

  • trust-tier.md: Constraint-profile classifier; load when

a user directive override is detected at mission start.

  • adaptive-constraints.md: Constraint adaptation rules;

load alongside trust-tier.md when directive overrides are

active.

Module Loading by Mission Type

This skill declares progressive_loading: true. To keep the

orchestrator's resident token cost minimal, load only the

subset of modules each mission type actually needs. The

orchestrator itself loads only the four core modules at

mission start; the rest are loaded on-demand when their

phase runs.

Mission typeCorePlan-reviewReflexionTrust and adaptive
--------------------------------------------------------------
quickfix (execute only)yes----if directive
tactical (plan -> execute)yesyesif revisingif directive
standard (specify -> plan -> execute)yesyesif revisingif directive
full (brainstorm -> specify -> plan -> execute)yesyesyesif directive

Token cost (approximate, computed from wc -w on hub +

loaded modules and converted at ~1.3 tokens per word):

Mission typeLoaded modulesApprox tokens
---------------------------------------------
quickfixhub and core (4)~4,100
tacticalhub, core, and plan-review (9)~6,900
standardsame as tactical (9)~6,900
fullhub, core, plan-review, and reflexion (10)~7,900

The previous load-all pattern brought in roughly 10,100

tokens for every mission, including quickfix runs that

only need the execute phase. With per-type loading, quickfix

is ~60% lighter and the standard / tactical / full paths

save 22-32%.

When a directive override fires, the trust-tier +

adaptive-constraints pair adds ~2,200 tokens on top of the

mission-type baseline.

Reference Modules

  • mission-charter.md: Structured mission definition

template (load only when defining a charter)

  • progress-report.md: Checkpoint status report template

(load only when emitting a progress report)

Related Skills

  • Skill(attune:project-brainstorming) - Brainstorm phase
  • Skill(attune:project-specification) - Specify phase
  • Skill(attune:project-planning) - Plan phase
  • Skill(attune:project-execution) - Execute phase
  • Skill(attune:war-room-checkpoint) - Risk assessment for RED/CRITICAL tasks
  • Skill(leyline:risk-classification) - Task risk classification
  • Skill(leyline:damage-control) - Error recovery during phases

Related Commands

  • /attune:mission - Invoke this skill
  • /attune:mission --resume - Resume from saved state
  • /attune:mission --type tactical - Override mission type

Exit Criteria

  • All phases in mission type completed successfully
  • Artifacts exist for each completed phase
  • Mission state saved to .attune/mission-state.json
  • Risk summary generated (tier counts across all tasks)
  • No unresolved errors or blockers

版本历史

共 4 个版本

  • v1.9.12 当前
    2026-06-19 19:56 安全 安全
  • v1.0.3
    2026-06-09 17:52 安全 安全
  • v1.0.2
    2026-05-09 16:49 安全 安全
  • v1.0.1
    2026-05-07 20:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Nm Parseltongue Python Performance

athola
分析 Python 代码的性能瓶颈和内存问题
★ 0 📥 735
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,394 📥 322,231
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,097 📥 824,053