Best for
- "Build this feature end to end": you give a description, mission-brief
- You want a converge loop with a circuit breaker and an audit trail.
- You want to resume an interrupted mission across sessions
tikalk/adlc-team-skills/skills/mission-brief/SKILL.md
Mission-driven SDD orchestrator: take a feature description, structure it into a Mission Brief (goal, constraints, success criteria), generate an ordered step list with prompts that trigger installed SDD skills via model invocation or command-file discovery, and walk those steps to converged implementation. Use when you want an end-to-end specify → plan → implement ↔ converge loop with gates, a circuit breaker, resume, and an audit trail — without YAML files or per-framework profiles.
Decision brief
Mission-driven SDD orchestrator: take a feature description, structure it into a Mission Brief (goal, constraints, success criteria), generate an ordered step list with prompts that trigger installed SDD skills via model invocation or command-file discovery, and walk those steps to converged implementation.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/tikalk/adlc-team-skills --skill "skills/mission-brief"Inspect the Agent Skill "mission-brief" from https://github.com/tikalk/adlc-team-skills/blob/a6ea2fd3d9cf46c5cba9ff384e1099ce62481b8b/skills/mission-brief/SKILL.md at commit a6ea2fd3d9cf46c5cba9ff384e1099ce62481b8b. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. mkdir -p .adlc/workflow (and .adlc/workflow/tmp, .adlc/workflow/runs). 2. If .adlc/workflow/workflow-config.yml does not exist, copy it from the skill's config-template.yml (located alongside this SKILL.md). 3. Read .adlc/workflow/workflow-config.yml. Defaults if fields are a…
= .adlc/workflow/runs// (defined in Phase 4, but referenced here for the completed-mission check).
Structure specdescription into the Mission Brief template:
Classify into spec / change / quick:
Read references/agent-integrations.md (alongside this SKILL.md). For each agent directory listed in the table, check if it exists in the project root. Record discovered directories in state:
Permission review
The documentation asks the agent to create, modify, or delete local files.
Write the state file. Discard the full subagent response.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 94/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 97 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
mission-brief takes a feature description, structures it into a Mission
Brief (goal, constraints, success criteria), generates an ordered step
list with prompts, and executes those steps — each step dispatched to a
subagent whose prompt triggers the installed SDD skills. No YAML workflow
files, no per-framework profiles, no profile detection. The step prompts use
canonical SDD terminology (specify, plan, implement, converge) that works with
any SDD skill set — model-invoked skills auto-trigger, command-based
frameworks match by filename, and if neither exists the subagent executes
directly.
mission-brief --resume).mission-brief --async).Before generating steps, the description is structured into:
## Mission Brief
**Goal**: <what to build — one sentence>
**Constraints**: <tech stack, limitations, dependencies, requirements>
**Non-Goals**: <what is explicitly out of scope — e.g., "no database storage, local memory cache only">
**Success Criteria**:
- <measurable outcome 1>
- <measurable outcome 2>
- <measurable outcome 3>
The brief serves two purposes:
$ARGUMENTS
The text in the $ARGUMENTS block above IS your mission description —
proceed with it immediately. Do not ask the user what they want to build.
Parse flags from the arguments first, then treat the remaining text as
spec_description:
--async / --sync — execution mode flag (overrides config default).--resume — explicit resume from state.spec_description).If no description and not --resume: derive a best-effort description from the
feature name (git branch, or the last state's feature). If --resume and no
state: report "No interrupted mission found" and stop.
Feature name derivation: slugify the description to lowercase-hyphenated,
drop stop words (a, an, the, new, to, with, for, add, fix, update). Example:
"add a new react dashboard with telemetry" → react-dashboard-telemetry.
If .adlc/workflow/runs/ already contains a dir with that name, append -2,
-3, etc.
All paths are relative to the current working directory (the project root where the agent operates). Do not look in subdirectories for config or state unless explicitly stated.
mkdir -p .adlc/workflow (and .adlc/workflow/tmp, .adlc/workflow/runs)..adlc/workflow/workflow-config.yml does not exist, copy it from the
skill's config-template.yml (located alongside this SKILL.md)..adlc/workflow/workflow-config.yml. Defaults if fields are absent:workflow:
execution: sync # sync | async
supervision: gated # gated | hybrid | autonomous
max_iterations: 5
max_spec_corrections: 2
circuit_breaker: 3
quality_threshold: null # optional 0-100, blocks DONE below threshold
# models: { strong: "...", fast: "..." } # optional
Resolve the effective execution mode: --async/--sync flag > config
execution > sync. If --async and supervision is gated/hybrid: warn
("async forces ungated; running autonomous") and treat as autonomous for
this run.
--resume only)
<FEATURE_DIR>=.adlc/workflow/runs/<feature>/(defined in Phase 4, but referenced here for the completed-mission check).
If --resume was passed:
.adlc/workflow/.mission-state.json.<FEATURE_DIR>/mission-log.json exists → report "Mission already
completed for feature X. Audit trail: …" → stop.completed_steps → resume: load the step
list from state.steps, skip to Phase 5 (Execute) at the first incomplete
step.mission-brief \"<desc>\" to start one." → stop.If --resume was NOT passed and a state file with non-empty completed_steps
exists: ask — "An interrupted mission for feature X exists (N/M steps
done). Run mission-brief --resume to continue, or confirm to start fresh
(this discards the state)." Do not silently clobber.
Structure spec_description into the Mission Brief template:
package.json, go.mod,
language files, existing specs). If unclear, leave a placeholder and mark
it for the user to fill.Present the brief to the user:
--async → proceed without confirmation (autonomous, ungated).Store the brief in .mission-state.json.brief.
Classify into spec / change / quick:
| Route | When | Steps |
|---|---|---|
spec | New feature, greenfield, "add/create/build" | brainstorm? → specify → clarify? → plan → tasks → analyze? → implement↺converge → trace? |
change | Modification, brownfield, "fix/update/refactor" | specify → implement↺converge |
quick | Small task, trivial, "just/quick/simple" | implement only (full brief as input) |
For spec route only, assess optional-phase candidates (hands-off,
recorded in state; the user approves each at a runtime gate if supervision is
gated/hybrid):
| Phase | Candidate when |
|---|---|
brainstorm | prompt is architectural/ambiguous ("design", "approach", "compare", "how should we", multiple viable solutions) |
clarify | success criteria are vague / constraints missing |
analyze | route is spec (symmetric) |
trace | prompt mentions persistence, audit, traceability, compliance |
Read references/agent-integrations.md (alongside this SKILL.md). For each
agent directory listed in the table, check if it exists in the project root.
Record discovered directories in state:
"discovered": {
"skills_dirs": [".claude/skills"],
"commands_dirs": [{"dir": ".opencode/commands", "ext": ".md"}]
}
This discovery is done once at generation time and reused on --resume. See
the reference file for the full algorithm.
After discovering skills directories (4a), build an inventory of every
installed skill across all skills_dirs. For each <skills_dir>/<skill-name>/
subdirectory that contains a SKILL.md:
SKILL.md frontmatter (YAML between --- fences).name and description (fall back to the directory name if
frontmatter is missing or unparseable).discovered.local_skills:"discovered": {
"skills_dirs": [".claude/skills"],
"commands_dirs": [{"dir": ".opencode/commands", "ext": ".md"}],
"local_skills": [
{"name": "tdd", "path": ".claude/skills/tdd", "description": "Test-driven development with red-green-refactor..."},
{"name": "grill-me", "path": ".claude/skills/grill-me", "description": "Get relentlessly interviewed about a plan..."},
{"name": "code-review", "path": ".claude/skills/code-review", "description": "Two-axis review of the diff..."}
]
}
This inventory is vendor-agnostic — it captures skills from any source (mattpocock/skills, addy osmani/agent-skills, superpowers, custom team skills, or any Agent-Skills-standard repository). The inventory is passed to every subagent at dispatch time (Phase 5) so the LLM decides which skill fits the current step — no hard-coded phase-to-skill mapping tables.
Generate an ordered list of steps based on the route and optional-phase
candidates. Each step is a structured object stored in state.steps:
{
"id": "specify",
"phase": "specify",
"tier": "strong",
"prompt": "Write a feature specification for the goal below. ...",
"status": "pending"
}
The step list is the reviewable artifact — present it to the user in gated/hybrid mode before execution:
## Mission Steps
1. [specify] (strong) Write a feature specification for: react dashboard with telemetry
2. [plan] (strong) Break down the specification into an implementation plan
3. [tasks] (fast) Generate the detailed task list from the plan
4. [implement](strong) Implement the next pending task from the plan
5. [converge] (fast) Review the implementation against the spec and success criteria
↺ loop 4–5 until converged (max 5 iterations, circuit breaker 3)
For quick route: single implement step with the full brief as input.
For change route: specify + implement↺converge loop (no optional phases).
For spec route: full pipeline with optional phases inserted as gated
candidates.
Each step's prompt is built from three parts:
1. Phase instruction — canonical SDD terminology per phase:
| Phase | Tier | Instruction |
|---|---|---|
| brainstorm | strong | "Explore approaches and tradeoffs for the goal below. Consider multiple viable solutions and present a recommended design." |
| specify | strong | "Write a feature specification for the goal below. Include requirements, constraints, and measurable success criteria." |
| clarify | fast | "Review the specification and interview the team to resolve any vague success criteria or missing constraints." |
| plan | strong | "Break down the specification into an implementation plan with ordered, verifiable tasks." |
| tasks | fast | "Generate the detailed task list from the plan — each task must have exact file paths and verification steps." |
| analyze | fast | "Adversarially review the plan before implementation. Challenge every non-trivial decision." |
| implement | strong | "Implement the next pending task from the plan. Follow test-driven practices." |
| converge | fast | "Review the implementation against the specification and success criteria. Verify independently — you are the checker, not the maker." |
| trace | fast | "Document the decisions made during this feature as ADRs or a handoff document." |
2. Mission Brief context — the goal, constraints, and success criteria from Phase 2 are appended to every prompt.
3. Delegation wrapper — added by the executor at dispatch time (Phase 5).
The wrapper includes discovered.local_skills so the subagent can decide
which installed skill (if any) to invoke for the current step.
Create a todowrite list mirroring state.steps. Mark steps in
completed_steps as completed. Update after every step.
For each step with status: pending:
Emit:
## Workflow Step: <id>
**Phase**: <phase> (<tier>)
If the step is a converge step (phase is converge), prepend the
independence hint to the delegation prompt:
You are grading work that another agent produced. Do NOT assume the implementation is correct — verify against the spec independently. Try to make each requirement fail at the primary source (run the test, check the file, grep for the reference). You are the checker, not the maker.
CRITICAL: Verify that NO features or implementations listed under Non-Goals have been introduced. If any out-of-scope work was built, report CONTINUE as your outcome signal, and list the non-goals violation in your summary.
Delegate to a subagent with this prompt verbatim:
You are being invoked by the `mission-brief` executor.
## Task
<step.prompt>
## Mission Brief
**Goal**: <goal>
**Constraints**: <constraints>
**Non-Goals**: <non-goals>
**Success Criteria**: <success criteria>
## Available Skills in This Workspace
<LOCAL_SKILLS_LIST>
The list above shows skills installed in this workspace from any source
(ADLC team skills, mattpocock/skills, addy osmani/agent-skills,
superpowers, or custom). Review each skill's name and description.
If one matches the goal of your current task, **invoke it** (via the
skill tool or by reading its SKILL.md inline) and use it to execute
this step. If multiple skills could apply, pick the best fit. If none
apply, proceed with direct execution.
## How to execute
Try these in order:
1. **Skill match**: If an installed skill's description matches this task,
invoke it (via skill tool or by reading its SKILL.md inline).
2. **Command match**: If a command file for this phase exists, read and
execute it. <DISCOVERED_PATHS>
Look for a file whose name matches the phase (e.g., `*specify*`,
`*implement*`, `*converge*`).
3. **Direct execution**: If neither exists, execute the task directly using
your available tools.
**Confidence Self-Estimation**:
Evaluate your confidence (HIGH/MEDIUM/LOW) in this implementation or task. If
you are missing critical context, have low confidence, or find the requirements
ambiguous, report `Confidence score: LOW` (or `MEDIUM`) and list the specific
unresolved details in your return summary.
If you found a skill or command, note its name in your summary.
Do NOT follow handoffs to other skills or commands — return your results to
the executor when you finish.
Return:
1. A 1-2 sentence summary (mention which skill/command you used, if any).
2. Files changed (if any).
3. Test results (if any).
4. Outcome signal: DONE | CONTINUE | SPEC_CORRECTION_NEEDED.
- DONE: work is complete and verified.
- CONTINUE: more work is needed (tasks remain, review found issues).
- SPEC_CORRECTION_NEEDED: verification found spec-level issues that
require re-running specify. Include a `spec_corrections` field with
the specific issues.
5. (optional) Quality score: "X/Y (Z%)" — if a verification skill ran
quality gates, report the score.
6. (optional) Gate summary: "N passed, M failed" — if quality gates were
checked, list which passed and which failed.
7. (optional) Confidence score: HIGH | MEDIUM | LOW. Self-estimated confidence in the correctness of your work.
8. (optional) Unresolved details: <brief description of what is uncertain or missing context>.
<LOCAL_SKILLS_LIST> is replaced with a formatted list built from
discovered.local_skills. Each entry shows the skill name, path, and
description:
- **tdd** (`.claude/skills/tdd`) — Test-driven development with red-green-refactor...
- **grill-me** (`.claude/skills/grill-me`) — Get relentlessly interviewed about a plan...
- **code-review** (`.claude/skills/code-review`) — Two-axis review of the diff...
If discovered.local_skills is empty, <LOCAL_SKILLS_LIST> is replaced
with: "No custom skills detected in this workspace."
<DISCOVERED_PATHS> is replaced with the discovered directories from
state.discovered:
commands_dirs is non-empty: "Check these locations:
.opencode/commands/ (.md), .claude/commands/ (.md), ..."skills_dirs is non-empty: "Installed skills are in:
.claude/skills/, ..."references/agent-integrations.md for known locations."Wait for the subagent.
Update .mission-state.json now — before the next step. Store the
subagent's returned values in state under step_results.<id>:
step_results.<id>.outputstep_results.<id>.confidence (if provided, otherwise default to HIGH)step_results.<id>.unresolved<id> to completed_stepsstate.steps[N].status = completedConfidence Escalation Gate: If the parsed confidence score is LOW and
the active supervision mode is autonomous or hybrid:
gated for this step's verification."⚠️ Subagent completed step but reported LOW confidence due to: [unresolved details]. Supervision auto-escalated to gated. Review changes and confirm before proceeding? (yes/no)"
If the step was implement, append to <FEATURE_DIR>/iterations.md:
## Iteration <N> - <date>
- Files changed: <list>
- Summary: <1-2 sentences>
- Tests: <pass/fail>
If the converge subagent returned SPEC_CORRECTION_NEEDED as its outcome
signal → stop and return spec_correction_needed to Phase 6. Do not
continue.
When supervision is gated or hybrid, the executor inserts gates inline
(not as separate steps — as executor behavior):
For --async or autonomous: no gates, no sign-off.
Store gate choices in step_results.<id>_gate.output.choice.
The implement and converge steps form a do-while loop:
implement step (iteration N).converge step.consecutive_tasks_appended, check circuit
breaker (below), repeat from 1 if under max_iterations.Use iteration-prefixed IDs for tracking: loop_0_implement,
loop_1_implement, etc. The step id stays as-is; only the
completed_steps entry is prefixed.
Circuit breaker. Track consecutive_tasks_appended in state. After each
converge step, if the signal is CONTINUE, increment; if DONE, reset to 0. If
the counter reaches circuit_breaker (default 3) → stop the loop and return
failed: "Circuit breaker: N consecutive iterations did not converge. Human
review needed — the loop is not converging." This counter persists across
resume.
Score regression tracking. Track consecutive_score_regressions in state
(initialized to 0). After each converge step that returns a quality score:
consecutive_score_regressionsconsecutive_score_regressions reaches circuit_breaker (default 3) →
stop: "Circuit breaker: N consecutive score regressions. Quality is trending
downward — human review needed." This counter persists across resume.Quality threshold enforcement. If quality_threshold is set (non-null) and
the converge subagent returns DONE with a quality score below the threshold →
treat as CONTINUE instead (the work is not done to the required quality bar).
After every step, summarize and discard the full subagent response. After 5+
steps, proactively suggest: "Session is getting long — you can continue, or
start a fresh chat and run mission-brief --resume." If responses get
repetitive, suggest a fresh chat.
When all steps complete (or a signal forces a return), act on the signal:
spec_correction_needed (returned by converge subagent as SPEC_CORRECTION_NEEDED):
spec_corrections >= max_spec_corrections → STOP:
"Spec repeatedly fails evaluation (N/M). Human review of the spec
required." Keep state for inspection.spec_corrections, reset all step statuses to
pending (fresh pipeline run), re-execute (Phase 5), repeat Phase 6.converged or tasks_appended (loop finished):
iterations.md; ask "Convergence passed. Review and approve
completion?" → approve proceeds; reject pauses ("Mission paused for review.
Run mission-brief --resume after addressing issues.").--async → skip sign-off..mission-state.json → .adlc/workflow/runs/<feature>/mission-log.json
(audit trail — not deleted).## Mission Complete
- Feature: <feature>
- Route: <route>
- Execution: <sync|async>
- Supervision: <mode>
- Signal: <converged|tasks_appended>
- Spec corrections: <n>/<max>
- Audit trail: .adlc/workflow/runs/<feature>/mission-log.json
failed: report the error; keep state for inspection. User can re-run
mission-brief --resume.
Confidence score: LOW
during execution, the system overrides autonomous/hybrid modes and forces
an interactive human gate.--async + gated/hybrid config → warn + autonomous.max_iterations (default 5).max_spec_corrections (default 2), triggered by
SPEC_CORRECTION_NEEDED signal from converge subagent.iterations.md + mission-log.json — not deleted..mission-state.json survives compaction/restarts.mission-brief --resume; fresh mission-brief asks
before clobbering an interrupted state.| Rationalization | Reality |
|---|---|
| "This is a small task, I'll skip the converge loop" | Small tasks use the quick route (implement only). If you classified spec/change, the loop is the point. |
| "I'll run gates later" | Gates exist to catch drift early. Skipping the spec gate means implementing against an unreviewed spec. |
| "Async can keep the gates, I'll answer them" | No one is watching an async run. Async forces ungated; if you want gates, use sync. |
| "The state file is just clutter, I'll delete it" | It's the resume + audit mechanism. Deleting it loses checkpoint/resume and the audit trail. |
| "I'll just re-run mission-brief to resume" | Without --resume you'll be asked and may clobber the state. Use mission-brief --resume. |
| "I don't need the Mission Brief, just start coding" | The brief forces explicit success criteria. Without them, the converge step has nothing to verify against. |
.mission-state.json after each one.--async run.mission-brief
without --resume)..mission-state.json on completion instead of moving it to
mission-log.json.state.discovered.SPEC_CORRECTION_NEEDED signal from the converge subagent
and proceeding as if DONE.LOW confidence report and proceeding without human
escalation..adlc/workflow/workflow-config.yml exists (copied from template if
absent)..mission-state.json contains: brief (goal/constraints/success criteria),
steps (ordered list with phase/tier/prompt/status), discovered
(skills_dirs + commands_dirs + local_skills), completed_steps (grows monotonically).iterations.md gains an entry per implement step.mission-log.json exists under
.adlc/workflow/runs/<feature>/.--resume with no state reports "No interrupted mission found" and stops.--resume with mission-log.json present reports "already completed".<LOCAL_SKILLS_LIST> built from
discovered.local_skills (empty list → "No custom skills detected").--async.SPEC_CORRECTION_NEEDED signals from converge are routed to Phase 6
(not treated as DONE or CONTINUE).quality_threshold is set, converge scores below threshold are
treated as CONTINUE.Confidence score: LOW reports from subagents trigger an automatic
supervision override to gated review.Non-Goals section is successfully populated in the brief and passed
to every subagent's prompt context..adlc/workflow/workflow-config.yml — execution, supervision, budgets,
quality threshold, optional models map. See config-template.yml.references/agent-integrations.md — full agent→directory mapping table.
Update when new agents are added or conventions change. The executor reads
it at generation time for command/skills discovery.# Start a sync gated mission
mission-brief "add a new react dashboard with telemetry"
# Run unattended across sessions
mission-brief --async "refactor the auth module to use JWT"
# Resume after a session restart or a paused gate
mission-brief --resume