Flight Specification
Create a technical flight spec from a mission.
Prerequisites
- •Project must be initialized with
/init-project(.flightops/ARTIFACTS.mdmust exist) - •A mission must exist before creating a flight
Workflow
Phase 1: Context Gathering
- •
Identify the target project
- •Read
projects.mdto find the project's path
- •Read
- •
Verify project is initialized
- •Check if
{target-project}/.flightops/ARTIFACTS.mdexists - •If missing: STOP and tell the user to run
/init-projectfirst - •Do not proceed without the artifact configuration
- •Check if
- •
Read the artifact configuration
- •Read
{target-project}/.flightops/ARTIFACTS.mdfor artifact locations and formats
- •Read
- •
Read the parent mission
- •Understand the outcome being pursued
- •Identify which success criteria this flight addresses
- •Note constraints that apply
- •
Check existing flights
- •What flights already exist for this mission?
- •What's been completed vs. in progress?
- •Are there dependencies on other flights?
Phase 2: Code Interrogation
Explore the target project's codebase to inform the technical approach:
- •
Identify relevant code areas
- •What existing code relates to this flight?
- •What patterns are already established?
- •What dependencies exist?
- •
Find files likely to be affected
- •Source files to modify
- •Test files to create/update
- •Configuration changes needed
- •
Understand existing patterns
- •Code style and conventions
- •Error handling approaches
- •Testing patterns
- •
Check for schema/migration implications
- •Does this flight add or modify database tables?
- •What migration tooling does the project use?
- •Are there existing migration patterns to follow?
Phase 3: Crew Interview
Ask technical questions to resolve the approach:
- •
Technical approach
- •"Should we extend existing code or create new modules?"
- •"What's the preferred pattern for [specific decision]?"
- •"Are there performance considerations?"
- •
Open questions
- •Surface ambiguities in requirements
- •Clarify edge cases
- •Identify unknowns
- •
Design decisions
- •Document choices and rationale
- •Get agreement on trade-offs
- •Note constraints discovered
- •
Prerequisites verification
- •"Is [dependency] ready?"
- •"Do we have access to [resource]?"
- •
Validation approach
- •"How will this flight be validated?"
- •"Is test automation needed, or is manual verification sufficient?"
- •"What tests should be created or updated?"
Phase 4: Spec Creation
Create the flight artifact using the format defined in .flightops/ARTIFACTS.md.
Also create the flight log artifact (empty, ready for execution notes).
Phase 4b: Design Review
Spawn an Architect agent to validate the flight spec against the real codebase before presenting it to the crew.
Read {target-project}/.flightops/agent-crews/flight-design.md for crew definitions and prompts (fall back to defaults at .claude/skills/init-project/defaults/agent-crews/flight-design.md).
Validate structure: The phase file MUST contain ## Crew, ## Interaction Protocol, and ## Prompts sections with fenced code blocks. If the file exists but is malformed, STOP and tell the user: "Phase file flight-design.md is missing required sections. Either fix it manually or re-run /init-project to reset to defaults."
- •Spawn an Architect agent in the target project context (Task tool,
subagent_type: "general-purpose")- •Provide the "Review Flight Design" prompt from the flight-design phase file's Prompts section
- •The Architect reads the flight spec and cross-references design decisions, prerequisites, technical approach, and leg breakdown against actual codebase state and architecture best practices
- •The Architect provides a structured assessment: approve, approve with changes, or needs rework
- •Incorporate feedback — update the flight artifact to address issues raised
- •High-severity issues: must fix before proceeding
- •Medium-severity issues: fix unless there's a clear reason not to
- •Low-severity issues and suggestions: apply at discretion
- •Re-review if substantive changes were made — spawn another Architect for a second pass
- •Skip if only minor/cosmetic fixes were applied
- •Max 2 design review cycles — if issues persist after 2 rounds, escalate to human
- •Proceed to Phase 5 with a codebase-validated spec
Phase 5: Iterate
- •Walk through the spec with the crew
- •Validate technical approach is sound
- •Confirm leg breakdown is appropriate
- •Refine until approved
Guidelines
Role Engagement
Consider involving these roles during flight planning:
- •Technical Architects: Consult on design decisions, especially for architectural changes
- •Mission Liaison: Clarify requirements and answer questions about stakeholder needs
- •Flight Engineer: May provide input on testing strategy and review approach
Flight Sizing
A well-sized flight:
- •Takes 1-3 days of focused work
- •Breaks into 3-8 legs typically
- •Has a clear, verifiable objective
- •Addresses specific mission criteria
Too small: Single leg's worth of work Too large: More than a week of work, vague checkpoints
Leg Identification
Break flights into legs based on technical boundaries:
- •Each leg should be atomic (independently completable)
- •Legs should have clear inputs and outputs
- •Consider dependencies between legs
- •Group related changes together
For scaffolding flights: Include a final verify-integration leg
For interface changes: Identify consumers that need updates
For documentation: Consider whether README, CLAUDE.md, or other docs need updates as part of this flight — especially for flights adding new CLI commands, API endpoints, or configuration options
For schema changes: Include explicit migration legs and verify against the live database, not just mocks
Pre-Flight Rigor
- •Open questions MUST be resolved before execution
- •Design decisions MUST be documented with rationale
- •Prerequisites MUST be verified, not assumed
Adaptive Planning
- •Flights can be modified during
planningstate - •Once
in-flight, create diversions rather than editing - •New legs can be added if scope grows
Output
Create the following artifacts using locations and formats from .flightops/ARTIFACTS.md:
- •Flight spec — The flight plan
- •Flight log — Empty, ready for execution notes