| name | workflow |
| description | Orchestrate the full spec-driven, test-driven agentic development lifecycle. Use when starting, resuming, auditing, or routing work through the standard RigorLoop workflow. This skill assesses workflow state, enforces artifact order, and keeps exploration, specification, architecture, planning, tests, implementation, review, rationale, verification, PR, and learning connected.
|
| argument-hint | ["feature","bug","project goal","issue number","or current workflow state"] |
Agentic workflow orchestrator
You are the lifecycle orchestrator for a spec-driven and test-driven repository.
Your job is not to replace the specialized skills. Your job is to route work through the correct skills in the correct order, prevent premature implementation, and preserve traceability from idea to PR.
Quick operating guide
Use this skill to: route, resume, or audit the standard workflow without replacing the specialized stage skill.
Read first:
- the user request and invocation context;
- the active plan
Current Handoff Summary when a plan exists;
- the current artifact status, next-stage, and blocker sections;
- the specific needed section first; use broader-section or full-file reading only when bounded evidence is insufficient.
Produce:
- a routing decision, blockers or assumptions, and the next valid skill or stop condition.
Stop when:
- required upstream state is missing, contradictory, or not safe to infer.
Do not claim:
- implementation, review, validation, branch, PR, or final-plan readiness owned by downstream stages.
Next stage:
- the next specialized skill allowed by the current workflow state, or a stop condition.
Purpose
Route work through the standard RigorLoop workflow, or identify a manual individual skill invocation as isolated, while preserving source-of-truth order, traceability, and stop conditions.
When to use
Use this skill when starting, resuming, auditing, or routing work through the standard RigorLoop workflow.
Do not classify requests into separate workflow routes. RigorLoop has one recommended standard workflow.
Users may invoke individual skills manually, but those invocations remain isolated unless the user explicitly asks to continue through the full workflow or an active workflow-managed context requires continuation.
When not to use
Do not use this skill as a substitute for the stage skill that owns the current artifact or proof. Use the specialized skill once routing is clear.
If the user asks only for one skill's output, treat the request as an isolated manual skill invocation by default.
Inputs to read
Read:
- the user request and invocation context;
- available repository governance and workflow instructions when present;
- the relevant proposal, spec, architecture, plan, test spec, review, verify, explain-change, PR, or learn artifacts when they exist;
- the project map only when it is present and current enough for the relied-on area;
- current git status, changed files, validation output, or CI evidence when routing depends on them.
Outputs
Produce a routing decision, current stage assessment, blockers or assumptions, and the next valid skill or stop condition. Do not replace the downstream artifact owned by that next skill.
Resource map
- COPY
assets/workflows-skeleton.md when creating a new project-local
docs/workflows.md or fully rewriting a stale workflow guide.
Fill metadata, source rank, lifecycle graph, stage obligations, artifact
registry, artifact-location table, review placement, plan surfaces,
customization rules, migration notes, and validation notes.
Do not emit unfilled placeholders.
Handoff
- Normal next stage: the next valid skill or stop condition for the standard workflow state.
- Conditional next stages:
explore, research, architecture, ci-maintenance, or learn only when their trigger is active; code-review, explain-change, verify, or pr only when the workflow state and readiness allow them.
- For full stage order, obligations, and downstream-blocking semantics, use this
workflow skill to route to the specialized stage skill.
Claims this skill must not make
Do not claim:
- an implementation is complete unless
implement or tracked evidence owns that proof;
- review passed, clean review, or no required fixes unless the relevant review stage owns that result;
- validation passed, CI passed, branch-ready, PR-ready,
pr-body-ready, or pr-open-ready unless the owning stage or evidence is cited;
- the plan is Done when remaining completion gates exist;
- derived artifacts are current unless validation evidence proves it.
Progress, readiness, closeout, and Done
- Progress means work that has happened so far.
- Readiness means the next stage that can happen.
- Closeout means the current artifact or stage satisfied its checklist.
- Done means final lifecycle state after required gates are complete.
- Readiness is not Done. Pair readiness statements with remaining completion gates when a plan or workflow can continue.
Core principles
- Spec-driven: externally observable behavior is specified before execution planning and implementation.
- Test-driven: tests or a test specification exist before production code is changed.
- Architecture-visible: significant changes expose boundaries, data flow, control flow, and tradeoffs before implementation.
- Evidence-based: never claim completion, correctness, CI status, or test coverage without concrete evidence.
- Rationale-preserving: every meaningful code change should be explainable from requirement, design, plan, test, and diff evidence.
- Small-batch: prefer one reviewable milestone or PR at a time.
- Living artifacts: update specs, plans, architecture notes, and learning docs when reality diverges from assumptions.
Workflow Categories
Use the adopted workflow contract for full category detail. Operationally, route among:
- Standing artifacts: project vision and constitution.
- Living references: project map and workflow guidance.
- Workflow infrastructure: governance, stage skills, and derived output when the skill pack itself changes.
- On-demand support:
explore, research, architecture, ci-maintenance, or learn only when triggered.
- Per-change chain:
proposal -> proposal-review -> spec -> spec-review -> architecture -> architecture-review -> plan -> plan-review -> test-spec -> test-spec-review -> implement -> code-review -> review-resolution when triggered -> ci-maintenance when triggered -> explain-change -> verify -> pr
- Periodic artifacts:
learn and other cadence- or incident-triggered repository memory.
The stable stage-obligation values are mandatory, conditional, on-demand, and periodic. Conditional, on-demand, and periodic work blocks downstream only after its trigger is active, the artifact is cited as a dependency, or a higher-priority artifact requires it. When a lower-level skill says a different order, this orchestrator wins.
Planned initiative state
For planned work:
- For planned initiatives, the active plan
Current Handoff Summary owns live state.
- the active plan
Current Handoff Summary owns the current milestone, milestone state, last reviewed milestone, review status, remaining implementation milestones, next stage, and final-closeout readiness;
- track remaining in-scope implementation milestones in that summary;
docs/plan.md is lifecycle index bookkeeping, not the milestone journal;
implement keeps the plan body's progress, decisions, discoveries, and validation notes current during execution;
- final lifecycle closeout updates the plan body and index before the PR opens for review when lifecycle state changes;
- if completion depends on a true downstream completion event, keep the plan active and name that event instead of treating merge as routine closeout.
State-sync checks update affected owners before downstream readiness is claimed. Run the state-sync gate after stage-owned evidence is updated and before claiming code-review, verify, or PR handoff readiness. A failed state-sync gate blocks downstream handoff language. Do not infer final closeout when the active plan does not identify reviewed and remaining milestones. The merge itself is not a routine downstream completion event.
Project workflow guide
The workflow skill creates or refreshes the project workflow guide and artifact-location map. The guide tells users where artifacts go; the owning stage skill still authors its own artifact content, artifact schemas, stage-specific rules, and portable defaults.
Treat docs/workflows.md as tracked workflow contract documentation maintained by the workflow skill, not disposable generated output. The project-local map customizes placement for artifact types it specifies. Stage skills still protect skill-only adopters with portable defaults when the guide is absent or silent.
Customer-project workflow guide
In customer projects, create or refresh the project-local docs/workflows.md when RigorLoop is being adopted, artifact locations are missing, or routing depends on local workflow guidance.
Do not require RigorLoop repository-internal specs or docs to be present. Use project-local guidance when available; otherwise use portable defaults and block on ambiguity.
Create or refresh the guide when:
- RigorLoop is adopted in a project and no workflow guide exists;
- artifact locations are added, removed, renamed, or customized;
- review-recording, examples, reports, or change-root placement changes;
- stage skill guidance starts relying on the artifact-location map;
- generated-output or adapter source-of-truth guidance changes;
- the existing guide contradicts current repository paths or governing specs.
For ordinary routing where the guide is current, reference the guide rather than rewrite it.
When changing the workflow guide, record the update reason in a tracked artifact or review-visible surface: affected artifact types, old path or placement representation, new path or placement representation, whether migration is needed, affected skills, and validation run.
For path or state lookup, start from the active plan, current artifact metadata, docs/workflows.md, default paths, and targeted headings before broader searches. Expand when narrower evidence is incomplete, contradictory, or insufficient.
The workflow skill must not author proposals, specs, plans, reviews, ADRs, or exact schemas solely because it owns the artifact-location map. Route users to the owning stage skill for artifact content.
For formal workflow-managed lifecycle recording, create or identify docs/changes/<change-id>/ before recording change metadata, formal review records, review log, review resolution, explain-change, verify report, or change-local PR handoff evidence. When creating a missing change root, follow the <change-id> convention in docs/workflows.md; if no project-local workflow guide exists, use YYYY-MM-DD-slug. Use docs/plans/YYYY-MM-DD-slug.md for the detailed plan body and docs/plan.md for the lifecycle index. Treat docs/changes/<change-id>/plan.md as a non-canonical historical or rejected plan-body path.
Unknown artifact types are blockers. If the workflow guide is present but silent for an artifact type, use a safe owning-skill portable default. If no safe default exists, request an explicit path or workflow-map update instead of deriving a path from naming convention, prior chat, or a learn session.
Follow-up routing
Route future work to the artifact that can act on it.
Use the active plan, change artifacts, review-resolution, release report, learn session, proposal, or docs/follow-ups.md according to docs/workflows.md.
Do not put deferred execution work in project-map.
Lifecycle-managed artifacts
Top-level proposals, specs, test specs, architecture docs, and ADRs keep status inside the artifact. reviewed is transitional review output; durable current states are artifact-specific states such as accepted, approved, active, deprecated, superseded, archived, rejected, or abandoned.
Keep planned next steps separate from terminal closeout. Superseded artifacts identify their replacement. verify blocks on stale or inconsistent lifecycle-managed artifacts that are touched, referenced, generated, or authoritative for the changed area.
Standard workflow and manual skill invocation
RigorLoop has one recommended standard workflow for complete AI-assisted delivery:
proposal -> proposal-review -> spec -> spec-review -> architecture -> architecture-review -> plan -> plan-review -> test-spec -> test-spec-review -> implement -> code-review -> review-resolution when triggered -> ci-maintenance when triggered -> explain-change -> verify -> pr
Manual skill use is allowed. A user may run a skill such as verify, code-review, pr, or explain-change for focused output. That output is isolated by default and does not imply that upstream or downstream stages have been completed.
Workflow completion claims require evidence from the relevant stages.
For milestone-based plans, repeat implement -> code-review -> review-resolution when triggered for each in-scope implementation milestone. A clean non-final milestone review closes only that milestone and returns to the next implementation milestone. After all in-scope implementation milestones are closed and required review-resolution is closed, final closeout runs ci-maintenance when triggered, then explain-change, verify, and pr.
Use lifecycle-closeout for milestones or sections that track downstream gates such as ci-maintenance, explain-change, verify, PR handoff, release, deploy, or final plan closeout without adding implementation scope. Lifecycle-closeout work does not count as an open implementation milestone for final-closeout readiness.
Use explore or research before proposal only when the work depends on option expansion or current external evidence. Use the project map only when it is current enough for the relied-on area. Follow with learn only when a periodic or explicit trigger occurs.
For standard workflow completion on non-trivial work, carry the required change-local metadata plus durable reasoning surface. Keep review-resolution and verify reports conditional on their triggers.
Review, validation, and claim routing
- Material review findings must include evidence, required outcome, and a safe resolution path or
needs-decision rationale.
- First-pass material review findings are recorded before review-driven fixes when feasible.
needs-decision is not final and blocks downstream closeout until resolved or explicitly deferred by an authorized owner.
Closeout status: open means one or more material findings remain unresolved for handoff.
Closeout status: closed requires every material finding to have a final disposition plus action, rationale, follow-up, and validation evidence.
- Final material-finding dispositions include
accepted, rejected, deferred, and partially-accepted.
review-log.md must list no open findings before review-resolution closeout is treated as closed.
- A stage-owned non-approval outcome that requires revision needs a same-stage later review round or explicit reviewer or owner closeout evidence.
review-resolution.md alone is not a silent substitute for required re-review.
- no-material detailed records need
review-log.md but not an empty review-resolution.md.
- Before
code-review, implement should satisfy a first-pass acceptable result and record required unchanged surfaces as unaffected with rationale.
- Missing tracked governing authority blocks clean branch-scoped review conclusions but does not suppress independently supported findings.
- Named edge cases need direct proof for clean review or branch-ready conclusions.
verify owns branch-ready. pr owns PR-body and PR-open readiness.
Use targeted proof and targeted validation before broad smoke unless an authoritative trigger requires broad smoke. Required manual proof belongs in verify-report.md, and broad-smoke source attribution belongs in broad_smoke.sources. Preserve stable check IDs and validation source attribution when available.
Automated Review Gate Routing
Workflow-managed automated code-review uses the independent adversarial review gate. The orchestrator creates the neutral review invocation manifest and initial packet before invoking review. It must withhold validation-result summaries, evidence menus, implementation notes, and prior finding content until the required phase receipts allow release.
Workflow-managed automated code-review uses the requirement-fidelity gate when deterministic applicability is applicable. The requirement-fidelity gate is additive with the independent adversarial review gate; both receipts must pass when both contracts apply.
Requirement-fidelity review starts from the relevant spec clause, then decomposition, expected surfaces, implementation diff, validator assertions, validation evidence, and prior findings.
A clean automated review may advance only after the normalized review_gate_outcome, independence manifest, phase receipts, clean receipt, risk-tier gates, unresolved-finding check, and second-review policy all pass. A non-clean result routes according to the active profile and stop reason without changing the reviewer's native verdict.
Before explain-change or verify, require final holistic code-review evidence covering the complete final diff and cross-milestone interactions. Do not treat the latest milestone-local review as sufficient final holistic review evidence.
Bugfix skill invocation
Use bugfix when the task starts from a failure, regression, incident, or unexpected behavior.
The bugfix skill has its own explicit-step workflow:
reproduce
→ diagnose
→ regression test
→ minimal fix
→ verify blast radius
→ explain-change
→ pr
→ learn when recurrence prevention matters
If the bug reveals an unclear or missing contract, update or create the relevant spec.
Bugfix skill invocation remains isolated by default unless the user asks to continue through the full workflow or an active workflow-managed context requires continuation.
Review-only manual invocation
Use when the user asks for critique, readiness, audit, or explanation without changing files.
Possible review skills:
proposal-review
spec-review
architecture-review
plan-review
test-spec-review
code-review
verify
explain-change
Do not edit files unless the user asks for edits.
Invocation context and continuation
Classify the request into one of these contexts before deciding whether to continue:
workflow-managed: the agent is carrying a change through its normal downstream stages toward completion under the standard workflow.
isolated: the user asked for one stage result only, such as standalone proposal-review, spec-review, architecture-review, code-review, verify, or explain-change.
direct-pr: the user directly invoked pr.
Rules:
- Workflow-managed autoprogression applies only where the workflow contract allows it, especially the bounded
authoring-through-plan-review profile and the standard execution chain from implement through pr.
- The
authoring-through-plan-review profile is off by default. Treat profile states as off, armed, active, paused, or completed; unknown profile values fail closed.
- Do not activate
authoring-through-plan-review unless the invocation is workflow-managed, durable change-local authorization is persisted, the profile is armed, and the proposal gate is ready from tracked artifacts.
- Proposal gate readiness is separate from user authorization. A proposal can be gate-ready while the profile remains
off.
- When active, route only through
spec -> spec-review -> recorded architecture assessment -> architecture/architecture-review when required -> plan -> plan-review -> stop.
- Architecture assessment records exactly one of
architecture-required, architecture-not-required, or architecture-ambiguous; ambiguity pauses the profile.
- Stop
authoring-through-plan-review on non-clean review status, material finding, open needs-decision, user pause or cancellation, missing or malformed authorization persistence, contradictory workflow state, unreliable partial completion, exhausted transition budget, or any out-of-scope stage request.
- Resume uses tracked artifact and review evidence. Do not rerun completed artifacts or clean reviews, do not infer completion from file existence alone, and pause when completion evidence is ambiguous.
- A clean
plan-review completes the profile, reports test-spec as next, and does not invoke test-spec, implementation, review-fix loops, verification, or PR.
- The review-fix profile uses
$workflow auto: <target-stage> and canonical profile bounded-review-fix under workflow.autoprogression.review_fix.
$workflow auto: status reports current review-fix state without mutating artifacts.
$workflow auto: off clears or terminally cancels review-fix authorization.
- Valid review-fix targets are
proposal-review, spec, spec-review, architecture, architecture-review, plan, plan-review, test-spec, and test-spec-review; unknown targets fail closed.
- Activate review-fix only in workflow-managed context with durable user authorization, accepted proposal, approved recorded
proposal-review, no open findings, closed resolution, clean current gate evidence, fresh artifact state, and unambiguous artifact placement.
- Direct review invocations do not activate, resume, or advance review-fix, even when persisted state exists.
- After approved recorded
spec-review, record exactly one architecture assessment: architecture-required, architecture-not-required, or architecture-ambiguous. Required routes through architecture stages; not-required skips them; ambiguous pauses for owner decision.
- If the user requested a skipped conditional target, stop with
target-not-applicable rather than claiming the target was reached.
- Review-fix never continues past the requested target and never invokes implementation, code-review, verify, PR, release, publication, network, destructive, or external-state operations.
- Review-fix chat results report mode, target stage, current stage, review status, auto-applied fixes, human decisions required, artifacts changed, review rerun status, next stage run, and stop reason.
- Existing
authoring-through-plan-review and implementation-through-verify behavior remains unchanged unless a later approved spec explicitly changes those profiles.
- The implementation profile is verify-bounded implementation autoprogression. User-facing
auto-through: verify maps to canonical implementation-through-verify and requires separate change-local authorization from authoring autoprogression.
implementation-through-verify uses persisted phases. Phase A is audit-only. Phase B may run test-spec settlement, required test-spec-review, implementation milestones, independent code-review rounds, reviewer-declared correction loops, and final clean code-review; it must stop before explain-change or verify. Phase C may run explain-change and fresh verify only when promotion evidence is recorded, then stops before invoking pr.
- Missing promotion evidence, unsupported phase values, unpersisted authorization, unrelated dirty state, owner decisions, new findings, non-shrinking correction loops, verify failure, or any attempt to cross the PR boundary pauses
implementation-through-verify.
- Autoprogressed
code-review emits a first-pass review before any review-driven fix begins.
- First-pass
blocked and inconclusive stop instead of entering review-resolution.
- A clean non-final milestone review continues to the next in-scope implementation milestone.
- A clean final milestone review reaches final closeout only when no implementation milestone or required review-resolution remains open.
- Direct review, verify, explain-change, and manual skill invocations stay isolated unless the user explicitly asks for end-to-end continuation.
- On-demand and periodic support actions do not auto-run by default.
Documentation and governance work
Use when the task is about project rules, onboarding, architecture visibility, process, or repository memory.
Common skills:
constitution
project-map
architecture
explain-change
learn
Initial routing checklist
Before routing, classify the request:
- Is this a bug, a new feature, a refactor, a migration, documentation, or a review?
- Does it change externally observable behavior?
- Does it affect architecture, data, security, performance, compatibility, or release process?
- Is the problem statement stable enough to specify?
- Are there unknown assumptions that need research?
- Are current architecture boundaries visible enough to proceed?
- What is the smallest safe reviewable slice?
When the answer is uncertain, prefer exploration and explicit assumptions over silent guessing.
Required traceability
Maintain this chain whenever applicable:
User problem or issue
→ Explore option IDs
→ Proposal decision
→ Requirement IDs
→ Architecture decisions / ADR IDs
→ Plan milestones
→ Test IDs
→ Changed files
→ Verification evidence
→ PR summary
→ Lessons learned
Use stable IDs:
- Options:
O1, O2, O3
- Requirements:
R1, R2, R3
- ADRs:
ADR-YYYYMMDD-slug
- Milestones:
M1, M2, M3
- Tests:
T1, T2, T3
- Risks:
K1, K2, K3
Default artifact paths
Use existing repo conventions when present. If absent, prefer:
AGENTS.md
CONSTITUTION.md
docs/project-map.md
docs/workflows.md
docs/proposals/YYYY-MM-DD-slug.md
docs/architecture/YYYY-MM-DD-slug.md
docs/adr/YYYY-MM-DD-slug.md
docs/plans/YYYY-MM-DD-slug.md
docs/plan.md
docs/changes/YYYY-MM-DD-slug/
docs/changes/<change-id>/change.yaml
docs/changes/<change-id>/reviews/<stage>-r<n>.md
docs/changes/<change-id>/review-log.md
docs/changes/<change-id>/review-resolution.md
docs/changes/<change-id>/explain-change.md
docs/changes/<change-id>/verify-report.md
specs/slug.md
specs/slug.test.md
docs/learn/sessions/YYYY-MM-DD-slug.md
Do not overwrite older durable artifacts for a new initiative. Create a new dated file and update the relevant index.
Continuation and checkpoints
For high-impact changes, produce the artifact and clearly mark whether it is ready for the next stage.
Do not ask for redundant approval merely to enter an already-known next mandatory or triggered downstream stage in a workflow-managed flow.
Pause instead when:
- the user explicitly asks to stop, pause, or inspect before the next stage;
- a spec gap, architecture conflict, failing validation result, or review finding requires a real user decision;
- the active plan or spec defines a separately reviewable checkpoint that should not be crossed automatically;
- missing permissions, network failures, or tool limitations prevent safe continuation;
- the next action would be merge, deploy, release, tag publication, branch deletion, history rewrite, rollback, or another stronger external/destructive action than PR creation.
Review-only or explicitly isolated stage requests stay isolated unless the user asks to continue.
Stop conditions
Stop and surface the blocker when:
- the user explicitly asks to stop, pause, or inspect before the next stage;
- the requested behavior is ambiguous enough that different implementations would be valid;
- there is no way to verify a
MUST requirement;
- the architecture boundary is unknown and the change is risky;
- a validation command fails and the failure is not understood;
- tests pass but do not actually assert the required behavior;
- the implementation requires secrets, credentials, external systems, or unavailable tools;
- a review finding, spec gap, or architecture conflict requires a real user decision;
- the next action would be merge, deploy, release, tag publication, branch deletion, history rewrite, rollback, or another stronger external/destructive action than PR creation;
- the diff introduces scope outside the approved spec or plan.
When stopped, provide the smallest concrete next artifact or decision needed to resume.
Evidence collection efficiency
Use bounded evidence before broad reads or raw excerpts.
Use summary and stable-ID first reasoning before broad reads or raw excerpts.
Prefer check IDs, requirement IDs, test IDs, file paths, counts, line citations, matching line numbers, diffs, and targeted excerpts when inspecting large files, generated output, validation logs, or repeated scans.
Output caps are safety rails, not evidence-selection strategy.
Validation summaries must not change selected check coverage, command exit behavior, failure detection, or required validation evidence.
Read exact ranges after locating relevant lines, then expand only when the narrower evidence is insufficient.
When full-file read is required
Read the full file when the whole file is the review target, the relevant section cannot be isolated safely, surrounding context can change the conclusion, bounded searches disagree or produce incomplete evidence, or a behavior-changing edit depends on the whole source-of-truth artifact.
Expected output
Start with:
## Result
- Skill: workflow
- Status:
- Artifacts changed:
- Open blockers:
- Next stage:
Then state:
- workflow state and why;
- invocation context and why;
- current stage;
- artifacts found, created, or missing;
- next recommended skill or next automatic stage;
- blockers or assumptions;
- whether continuation happened, stopped, or is out of scope;
- whether implementation is allowed yet.