assistant-workflow
Prepare, plan, build, or resume persisted task state. Use for repository-grounded feature/epic/story technical preparation, implementation, fixes, migrations, refactors, and project artifacts.
Files75
View on GitHubSKILL.mdskills/assistant-workflow/SKILL.md
GitHubDevelopment Workflow
Shared operating guidance
Load the common outcome guidance and shared stagnation policy for this activity. Keep specialist methods, authority and completion evidence below; single-pass work needs no progress artifact.
Complete the requested change with the smallest complete implementation and credible evidence. Inspect callers, tests, configuration, and other affected consumers before deciding the scope; reuse existing code and conventions. Carry explicit reduced-testing instructions and sources through selection, workers, review and resume; add tests only for distinct important uncovered behavior. Use the reuse-first ordering in the Build reference before creating code or helpers.
Ordinary path
- Inspect and resolve requirements. Read the request, repository guidance, and relevant source. Preserve authoritative behavior and apply source-backed technical defaults. Ask only about remaining material intent, scope, safety, or acceptance choices; plan approval does not answer an unresolved product question. Use assistant-clarify for unclear intent and assistant-debugging for an unknown failure mechanism.
- Select verification and plan. Before a Plan fixes verification obligations or Build begins for non-trivial work, use assistant-verification to select or refresh the canonical decision for material claims, credible failures, and binding project requirements. Preserve its CheckSpecs and TddChoice. Only trivial safe local work, such as a one-word typo, may skip loading assistant-verification and go to Build without a plan, carrying its known and binding checks. Any other change loads assistant-verification before its first edit, even a small review-comment fix, CI fix, cleanup or deletion; bounded small work can then use a short inline plan without waiting. Medium+, risky, destructive, public-contract/data/security, or material scope changes require an approved plan before implementation. Reuse existing approval within its scope. Split coherent work only for an actual acceptance, dependency, ownership/context, recovery, or protocol reason.
- Implement. For selected checks with active TDD, obtain meaningful authorizing RED before the first production edit; assistant-tdd owns the RED/GREEN/REFACTOR cycle. Before writing or changing code, load the design guide and check its refactor-before-extending triggers; apply its writing check after each step. Make the smallest durable change that meets the accepted criteria and the design guide. Preserve dirty work and user constraints. Stop dependent work for material unknowns or a scope/risk change; refresh the decision and obtain renewed approval when required before further edits.
- Verify. Run the selected and binding checks or reuse adequate current evidence, assess the results, and report gaps. Active TDD also requires passing GREEN and executed REFACTOR verification or explicit validated unchanged GREEN reuse.
- Review. A local self-check prepares review. Every formal completion review uses a newly created independent agent with fresh context after verification; expanded change impact also retains its canonical review evidence. QA runs only when required by its acceptance triggers. Fixes require current verification and a fresh review of the changed snapshot.
- Handoff. State the outcome, changed files and purpose, checks and results, material limits, and any next action. Omit empty sections and internal routing fields from ordinary human responses. Also give a direct answer to each question the user asked, with its evidence.
Apply request alignment to the artifacts Workflow writes for the user: preparation results, specifications, plans, Jira ticket text and the handoff. A plan or spec answers each open question the request raised or lists it as an unresolved decision; ticket acceptance criteria cover each requested behaviour; unrequested items are marked as proposals, not criteria. Formal reconciliation by Review is unchanged. For example, "fix the null check and tell me whether other callers have the same bug" gets a handoff that states the fix, its verification and the other-callers answer with evidence.
Select only the needed machinery
Use triage-rubric.md and workflow-controller.md when risk, approval, state, delegation, harness, or QA routing needs resolution. Light work stays hands-on; ordinary medium+ work defaults to standard, non-harness, non-QA with one Build owner. Optional execution delegation and mandatory fresh-review isolation follow the dispatch rules without a separate spawn permission question. Only optional Build delegation may fall back, with actual opt-out, policy, or unavailability evidence; review isolation never falls back. Choose execution delegation for concrete benefit; size/risk alone never forces it.
Load generated references/phases/<current-phase>.md for the phase requiring
detail; use authoritative phases.md if the view is missing
or unknown. Exact phase/triage markers are for strict control, explicit policy,
or user request. Other updates use concise natural language.
- Preparation-only work uses Discover → Preparation Completion without edits or execution claims. Load feature preparation for existing-system preparation, every implement-only continuation, or carried future obligations. Preserve the exact approved result and source bindings.
- Load architecture decisions for actual boundary, ownership/lifecycle, public-contract, quality, or viable alternative uncertainty; retain its types, design-pressure checks, evidence, compatibility, and review bindings. Size alone is no trigger.
- Load change impact for behavior/cosmetic or locality claims affecting verification. Shared, materially unresolved, or explicitly carried expanded work keeps pre-Build/completion checklist results.
- Load progressive discovery for predecessor-unlocked unknowns or retained progressive markers. It remains a no-execution boundary; mutating prerequisites need a separate approved workflow. Completed state alone does not archive its protocol.
- Load state reconciliation before trusting persisted state. Create journals only for persistence, waits, delegated execution, strict/harness/QA, or genuine continuation needs.
- For explicit user/repository artifact schemas, load the output contract before planning, direct Build, or output. Preserve exact paths, keys, types, ids, and supplied literals; external schemas override workflow-internal shapes.
- Load candidate search for real alternatives, optimization uncertainty, repeated failure, or a requested pivot; load harness control only after its trigger.
- For an edit to any file under a skill, including its contracts and evals, load both this workflow and assistant-skill-creator before the first edit, in either order. Skill-creator owns the skill's content, contracts and guide parity; this workflow keeps the plan, approvals, verification, review and handoff.
- Load assistant-security for auth, external input, secrets, persistence, network/shell calls, dependency/config changes, or external integrations.
- Load AI usage policy for external services, installs, or sensitive data; external calls/writes, installs, destructive actions, and proprietary sharing retain explicit authorization boundaries.
Consumed contracts and recovery
For canonical plans/task packets, persisted state, delegated handoffs, or
executable admission/evaluation, load contracts/index.yaml and the relevant
entry, current-phase, selected-handoff, packet-admission, and completion sets;
executable admission also loads build_admission or completion_admission.
These current v17 interfaces and prerequisites remain authoritative; v17 replaced
the change-impact checker receipt with a checklist result and kept
plan_schema_version 16.0 (see legacy compatibility). Load
build-worker-protocol.md for packet/worker
Build execution; generated size plans remain views of references/plan-template.md.
Persisted progress state follows the progress wire boundary.
Use legacy compatibility only when resuming
older packets. Missing/invalid selectors load the full named authoritative file.
Preserve unchanged CheckSpecs/TddChoice, task-wide tdd_mode, due selected IDs,
exact binding tuples, and canonical evidence assessment through actual consumers.
Derive packet tdd_applies from selected/applicable IDs; never fabricate RED or
infer old authorization. Admission needs its independently resolved authority
and Python 3.9+; Python is needed only for executable packet admission and its
scripts/stagnation.py helper, never for ordinary, light or standard non-packet
work, and the stagnation guard holds without it. Without Python, follow the
plan template's admission fallback; never claim admission passed. Full
serialized objects belong to these consumer boundaries; an ordinary human update can summarize the same decision and evidence.
Repeated correction uses the common task-level stagnation guard; record completed evidence before later blockers. Scope, access, cost, safety, acceptance, or verification changes require a new decision. Missing required evidence blocks completion. Medium+, strict, and required-QA handoffs use final-handoff.md; incomplete review coverage or rejected/blocked QA cannot be reported complete.