원클릭으로
leg
Generate detailed implementation guidance for LLM execution. Use when creating atomic implementation steps from a flight.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate detailed implementation guidance for LLM execution. Use when creating atomic implementation steps from a flight.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Initialize a project for Flight Control. Creates .flightops directory with methodology reference and artifact configuration. Run before using other Flight Control skills on a new project.
Run a behavior test — spawn two live agents (an Executor that performs each step's actions and a Validator that judges each step's expected results), drive them through the spec's step table communicating mid-test so failures surface immediately, then write a run log with evidence. Tests are specs that follow the Witnessed pattern: every action is judged by an independent agent. Verifies system properties through observables (UI state, HTTP responses, shell output, filesystem state) measured via whichever apparatus (MCP, tool) is registered. Invocation: `/behavior-test <slug>` to run a test by slug. Specs are authored inline during flight/leg/mission planning — see `AUTHORING.md` sibling file for the authoring guide. Spec format lives in the target project's `.flightops/ARTIFACTS.md`.
Active orchestrator for multi-agent flight execution. Drives leg design per leg, then batches implementation across all autonomous legs, with a single code review and commit at the end of the flight.
Create technical flight specifications from missions. Use when breaking down a mission into implementable work or planning technical approach.
Between-mission codebase health assessment. Run after `/mission-debrief`, never after an individual flight, to verify the codebase is flight-ready or scaffold a maintenance mission. Per-flight findings instead roll into the next flight or accumulate into an end-of-mission maintenance flight — not into this skill.
Create outcome-driven missions through research and user interview. Use when starting a new project, feature, or initiative that needs planning.
| name | leg |
| description | Generate detailed implementation guidance for LLM execution. Use when creating atomic implementation steps from a flight. |
Generate detailed implementation guidance for LLM execution.
/init-project (.flightops/ARTIFACTS.md must exist)Identify the target project
projects.md to find the project's pathVerify project is initialized
{target-project}/.flightops/ARTIFACTS.md exists/init-project firstRead the artifact configuration
{target-project}/.flightops/ARTIFACTS.md for artifact locations and formatsRead the parent flight
Read the flight log in detail (critical)
The flight log captures ground truth from actual implementation. Read it fully and extract:
Identify this leg's scope
Identify environment constraints
Deep dive into the specific implementation:
Identify exact files to modify
Understand existing patterns
Determine inputs and outputs
Identify edge cases
State-machine reachability audit
For every state, status, or lifecycle value this leg introduces or relies on, verify nothing in a lower layer makes the state unreachable.
test_X_does_Y → test_X_does_not_do_Y with the assertion inverted) is preferred over delete-and-readd because it documents the intent shift in git blame.ON DELETE CASCADE on a referencing column will silently delete the row your design needs to keep.Cache freshness contract
For every cache (in-memory dict, query result cache, computed derived state, frontend session storage) this leg reads from or populates, declare an explicit freshness contract.
Conflating "the cached object works fine" with "the cached object reflects current config" is a common error. State health and state freshness are different contracts.
Identify dependent code (for interface changes)
grep -rn '<changed_symbol>' tests/ src/; if any test or non-leg-scope source imports or calls it, signature changes break any "prior tests pass UNMODIFIED" acceptance criterion.Identify platform considerations
Create the leg artifact using the format defined in .flightops/ARTIFACTS.md.
Before marking the leg ready, mechanically validate every code-location citation in the draft artifact against current code. Citations drift between when a flight is designed and when its legs are designed (intervening legs commit changes; source artifacts age). Catching drift here prevents the implementing agent from chasing a stale file:line into the wrong code.
Extract citations
path/to/file.ext:line or path/to/file.ext:line-line patternspath/to/file.ext:symbol_namemission.md:42, flight.md:100) — those are out of scopeVerify each citation
OK — content at the cited location matches the descriptiondrifted — content moved; the description is still accurate but the line number is wronggone — described content no longer exists in the file (or the file itself is gone)unverifiable — citation has no snippet/symbol and the description is too vague to confirmRepair drift inline
drifted: locate the new line number via grep on the snippet/symbol and update the citation in the leg artifactgone: do not silently retire — flag for human review (the gap may have been independently fixed, OR the leg may now be obsolete)unverifiable: rewrite the citation using one of the durable forms (see "Citing Code Locations" guideline)Append a Citation Audit summary
## Citation Audit if the project's leg conventions don't dictate otherwise) summarizing the auditN citations verified against current code at leg design time.State exactly what the leg accomplishes:
Weak: "Set up the database stuff"
Strong: "Create the User model with email, password_hash, and timestamp fields"
Criteria must be:
Weak: "Code is clean" (subjective)
Strong: "User model exists in prisma/schema.prisma"
Behavior tests as acceptance criteria. When a criterion can only be verified by acting on the running system (UI flow, multi-component interaction, AI agent behavior), author a behavior test spec inline rather than enumerating fragile verification steps in the leg. If the owning flight already drafted a spec during planning, a verification or HAT leg references that draft rather than designing the apparatus from scratch here. A behavior test is a Zephyr-style Action | Expected Result table run via /behavior-test {slug} with two live agents using the Witnessed pattern. Write the spec to the configured behavior-test directory (per ARTIFACTS.md; default tests/behavior/{slug}.md); reference the slug in this leg's acceptance criteria as "Run /behavior-test {slug} and confirm pass." See .claude/skills/behavior-test/AUTHORING.md for the authoring guide.
Tell the agent exactly how to confirm each criterion:
Weak: "Make sure it works"
Strong:
## Verification Steps
- Run `npx prisma migrate status` — should show no pending migrations
- Run `npm test` — all tests pass
- Tab through form fields — focus order matches visual order
For accessibility work, include specific checks:
When the leg artifact references specific code, prefer durable forms over bare line numbers. Line numbers drift; symbols and snippets do not.
| Form | Example | When to use |
|---|---|---|
file:symbol | src/api.py:create_provider | Most cases — symbol names survive line shifts |
file:line — "snippet" | src/api.py:805 — "raise ProviderConfigError" | When a specific line matters; the snippet is a self-verifier |
file:CONSTANT_NAME | web/middleware.py:GATED_METHODS | Module-level constants and assignments |
file:line (bare) | api.py:805 | Avoid — brittle, no way to verify drift |
The snippet form is especially valuable: it lets Phase 3b mechanically confirm the cited content didn't move, and it tells the implementing agent exactly what they're looking at without needing to chase the line number.
When in doubt, include both — src/api.py:805 (in create_provider) — "raise ProviderConfigError if base_url is empty" — symbol + line + snippet covers all three drift modes.
Be explicit, not implicit:
Implicit: "Add validation to the email field"
Explicit: "Add email validation using the validator library's isEmail function. Return HTTP 400 with { "error": "Invalid email format" } on validation failure."
Provide examples when:
A well-sized leg:
Too small: Single-line change with no meaningful criteria Too large: Would benefit from intermediate checkpoints
When implementing a workaround, document:
Once a leg is in-flight:
aborted (changes rolled back)Create the leg artifact using the location and format defined in .flightops/ARTIFACTS.md.