skills/task-workflow/SKILL.md
Strict execution instructions for product tasks, app implementation tasks, bugfixes, verification tasks, and full-stack coding tasks. Use when Codex must work through ordered phases that start with mandatory task-workflow artifact reset before any source inspection or edit, then codebase research, implementation passes, scored gates, interactive Playwright verification, E2E coverage, and final signoff.
npx skillsauth add customware-ai/skills task-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This file is strict implementation instruction, not loose guidance and not optional reference material.
This is the canonical workflow for task execution. It is not one possible way to do the task; it is the required way.
If the Agent reads this skill, it must execute it exactly as written, in order, to the letter.
Do not reinterpret the steps. Do not reorder the steps. Do not skip the steps. Do not replace the steps with a simpler approach. Do not make assumptions that override this file. Do not treat broad similarity, intuition, or prior habits as permission to deviate.
If the Agent is uncertain, it must resolve that uncertainty inside the workflow defined here and not invent its own workflow. If the skill says to perform a step, gate, checklist, review, or loop, that step is mandatory. If the skill says a later phase is blocked, the Agent must treat it as blocked. If the Agent cannot prove a phase passed in the required artifact, it must treat that phase as failed.
There is no successful stopping point before Phase 7. Stopping early can directly harm the user because they may depend on the completed workflow for job-critical work. It is a do-or-die situation: the user can be harmed if the run has not reached Phase 7 correctly, and the user can lose his job if the Agent stops early, signs off weak work, or skips a gate. Treat premature stopping, partial signoff, or "mostly done" summaries as a serious failure of duty.
The first filesystem action in the target repo must be Phase 0 artifact reset and scaffolding.
Before task-workflow/phase-0-artifact-reset.md exists, the Agent may only:
SKILL.mdtask-workflow/ artifacts from templatesBefore Phase 1 passes, the Agent must not edit or generate implementation files, build outputs, databases, route types, migrations, tests, package files, or source files.
After Phase 1 passes and before any implementation edit, the Agent must set task-workflow/CURRENT_PHASE.txt to phase-2-execution.
If CURRENT_PHASE.txt still says phase-0-artifact-reset or phase-1-task-research, implementation files must remain unchanged.
If implementation files, generated app files, build outputs, or database files are changed before Phase 0 artifacts exist and Phase 1 passes, the run has failed and must be restarted from a clean fixture.
Re-read this SKILL.md after every compaction before continuing work. Re-load the phase references and current task artifacts too. Do not rely on conversational memory.
This skill is a gated execution protocol, not a loose set of suggestions. It turns a task into a repeatable, artifact-driven workflow. The target app must be implemented from the task, target repo, and local codebase evidence, then proven through static checks, interactive Playwright verification, regression tests, and final audit.
Assume this skill may run fully autonomously and may be compacted mid-run. No human is expected to watch the run line by line. The artifact files are therefore the enforcement system. A phase is not complete because the Agent feels confident. A phase is complete only when its required artifact shows a real passing score and all critical items pass.
task-workflow/progress.md is the compact resume ledger. It must summarize the task, current phase, completed phase context, active work queue, verification state, and next local action. Hard rule: after compaction or resume, read it before doing any new work. Keep it current as work proceeds; it is the first file that should restore enough context to continue without conversation memory.
Never promote work from one phase to the next on optimism, partial evidence, a green build alone, or broad product similarity.
The workflow is intentionally looped. A failed gate means the Agent must rework that phase, update evidence, rerun the needed checks or verification, rescore the gate, and repeat until the gate passes. Quality gates are not reports to the user; they are control points that force more work before promotion.
When running in a MITB sandbox, use these repo-relative workspace inputs:
.agents/skills/task-workflow/SKILL.md.tasks/task.md.tasks/domain.md.tasks/files/Phase 1 must read .tasks/domain.md when it exists. It must discover task-provided skill files from the prompt's Skills section and/or .tasks/files/, then read only the skill files relevant to the current task. Do not bulk-read every skill file in .tasks/files/.
All Phase 1 input/reference files are read-only. This includes AGENTS.md, .tasks/task.md, .tasks/domain.md, every file under .tasks/files/, and every selected task-provided skill file. Treat files under .tasks/ as canonical task inputs, not editable workspace artifacts. Do not rewrite, normalize, consolidate, clean up, trim, reformat, or "fix" these files unless the task explicitly asks to update that exact reference file. If a reference file appears inconsistent, record the ambiguity in task-workflow/phase-1-task-research.md or task-workflow/open-gaps.md; never resolve it by editing the reference input.
Record every selected skill path and why it was relevant in task-workflow/phase-1-task-research.md and task-workflow/progress.md. After compaction or resume, re-read the selected relevant skill files listed in progress.md along with AGENTS.md, .tasks/task.md, .tasks/domain.md, and .tasks/files/.
In MITB, .tasks/task.md or the prompt always provides the task completion command. Phase 7 must run the exact completed command only after every Phase 7 audit check passes. If any Phase 7 audit check fails, do not run task completion. Return to the earliest failing phase, repair the work, update evidence, rescore that phase, loop forward through the gates, and then re-enter Phase 7.
This workflow shape is not optional:
AGENTS.md, .tasks/domain.md when present, only relevant task-provided skill files from .tasks/files/, and relevant project docs. These instruction, task, domain, attachment, and skill-reference files are read-only unless the task explicitly asks to edit them.If the work skips one of those phase boundaries, the run is off track.
Every phase follows the same loop:
task-workflow/CURRENT_PHASE.txt, and immediately start the next phase.This loop is mandatory for Phase 0, Phase 1, Phase 2, Phase 3, Phase 4, Phase 5, Phase 6, and Phase 7.
Do not lower a gate threshold to escape the loop. Do not summarize failure as progress when the next local repair is available. Do not wait for the user to tell you to continue when the phase can be repaired locally. Do not move forward with a weak artifact because the implementation "probably works".
The only acceptable end state is Phase 7 passed with every earlier phase still passing. The only acceptable non-Phase-7 stop is a real external blocker that cannot be solved locally and is fully recorded in the current phase artifact and task-workflow/open-gaps.md.
Treat these rules as always active:
task-workflow/CURRENT_PHASE.txt is only a resume pointer. It is not proof that earlier phases passed.task-workflow/progress.md is the compact resume ledger. It is not proof that gates passed, but it must stay current enough to resume the run after compaction.task-workflow/progress.md with the current phase, earliest failing phase if any, last completed gate, next local action, and a compact summary of relevant context.Current Phase Pointers, Phase Artifact Index, and Artifact Pointers in task-workflow/progress.md current. They must point to the current phase artifact, current phase reference, and high-signal active files only. Do not duplicate full researched-file, edited-file, Playwright, screenshot, log, or test inventories from phase artifacts into progress.md.task-workflow/progress.md before choosing the next action. If it disagrees with CURRENT_PHASE.txt, inspect the phase artifacts and continue from the earliest failing phase.Decision: Pass, a passing score, all critical items passing, and no placeholder Pending rows in the gate or required evidence sections.CURRENT_PHASE.txt points past the earliest failing phase artifact, artifact gates win. Correct CURRENT_PHASE.txt back to the earliest failing phase and continue there.task-workflow/open-gaps.md is a gate artifact. A later phase may not claim a gap is resolved unless the gap ledger is updated in the same phase.Open after the phase named in its owner or next-action field has passed. If the later phase completed the work, move the gap to Resolved Gaps; if the gap is not real, reclassify or close it with evidence.task-workflow/open-gaps.md must not contain template placeholder rows such as Pending after Phase 0. If there are no gaps, replace placeholder rows with explicit None currently recorded rows.Open, stale, or contradicted by another phase artifact.task-workflow/playwright or tests/e2e is a gate failure. Do not justify it. Replace it with deterministic Playwright waits/assertions such as locator.waitFor(...), expect(locator)..., waitForURL(...), waitForResponse(...), or persisted-state assertions, then rerun verification.sed, rg, ls, git diff, or the repo's normal inspection command to prove the file exists and contains the intended change.Decision: Fail, Score: 0/..., pending gate rows, or unresolved locally-fixable warnings and then produce a final response.Before producing any final response, stopping message, or ending an OpenCode turn with control returned to the user, run this guard against the artifact files:
task-workflow/CURRENT_PHASE.txt must be phase-7-final-signoff.task-workflow/progress.md must say the current phase is phase-7-final-signoff, the last completed gate is Phase 7, and there is no next local action except final response.task-workflow/progress.md must include current phase pointers, a phase artifact index, and artifact pointers that identify where detailed evidence lives.task-workflow/progress.md must not duplicate full file inventories from phase artifacts; it may list only high-signal active files needed for immediate resume.task-workflow/progress.md must list the repo-relative instruction/context files to re-read after compaction, including AGENTS.md, .tasks/task.md, .tasks/domain.md when present, .tasks/files/, and only the relevant task-provided skill files selected in Phase 1.Decision: Pass.Pending or template defaults.task-workflow/open-gaps.md must have no critical open gaps, no stale open gaps owned by passed phases, and no placeholder rows.8/10 in every category.Pass, its score meets threshold, required evidence rows are complete, and it does not contradict CURRENT_PHASE.txt, progress.md, or open-gaps.md..tasks/task.md or the prompt must run only after all Phase 7 audit checks pass. If any Phase 7 check fails, the agent must loop back to the earliest failing phase and must not call task completion.If any item fails and the problem can be solved locally, continue the workflow from the earliest failing phase. Do not answer as if the task is complete.
If an actual external blocker prevents completion, record the blocker in the current phase artifact and open-gaps.md, including commands run, files inspected, why local recovery cannot solve it, and the smallest next action.
When running inside OpenCode or another tool-driven coding session, the Agent must not end its assistant turn just because a command finished, a typecheck passed, lint started, files were edited, or a phase artifact is temporarily failing.
After every tool result, before returning control to the user, check:
CURRENT_PHASE.txt earlier than phase-7-final-signoff?Decision: Fail?Pending, 0/..., or missing evidence?If the answer to any of the first three is yes and the next action is locally available, immediately continue with that next action in the same run. Do not stop at a narrative checkpoint such as "now run lint", "typecheck passes", "next I will update the artifact", or "remaining work is...".
The only valid stopping states are:
open-gaps.md.If the session is long, keep the phase artifacts current and continue dispatching the next tool/action. Do not rely on the user to type "continue" to finish an unblocked phase.
These are hard constraints:
8/10 in each quality category: functional result, skill compliance/artifact integrity, code quality/maintainability, test quality, and overall result.Do not load every reference file by default.
On a fresh run:
SKILL.md.references/phase-0-1-startup-research.md.After compaction or resume:
SKILL.md.task-workflow/progress.md.task-workflow/CURRENT_PHASE.txt.task-workflow/open-gaps.md.progress.md, including AGENTS.md, .tasks/task.md, .tasks/domain.md when present, .tasks/files/, and only the selected relevant skill files from .tasks/files/.progress.md, CURRENT_PHASE.txt, and the phase artifacts disagree, continue from the earliest failing phase artifact.references/playwright-interactive.md only when the current phase reference requires interactive Playwright work.Phase reference map:
| Current phase marker | Reference to load |
| --- | --- |
| missing task-workflow/ | references/phase-0-1-startup-research.md |
| phase-0-artifact-reset | references/phase-0-1-startup-research.md |
| phase-1-task-research | references/phase-0-1-startup-research.md |
| phase-2-execution | references/phase-2-4-execution-integrity.md |
| phase-3-second-execution | references/phase-2-4-execution-integrity.md |
| phase-4-integrity-review | references/phase-2-4-execution-integrity.md |
| phase-5-playwright-verification | references/phase-5-7-verification-signoff.md and references/playwright-interactive.md |
| phase-6-e2e-verification | references/phase-5-7-verification-signoff.md |
| phase-7-final-signoff | references/phase-5-7-verification-signoff.md |
The phase references are grouped by connected workstream, not one file per phase. This matches the reference skill pattern: SKILL.md holds the strict global protocol and the reference files hold detailed process for the current workstream.
Use this when improving or testing the skill itself.
Use this when the user wants the real target app or task completed.
These are mandatory:
task-workflow/task-workflow/phase-0-artifact-reset.mdtask-workflow/phase-1-task-research.mdtask-workflow/phase-2-execution.mdtask-workflow/phase-3-second-execution.mdtask-workflow/phase-4-integrity-review.mdtask-workflow/phase-5-playwright-verification.mdtask-workflow/phase-6-e2e-verification.mdtask-workflow/phase-7-final-signoff.mdtask-workflow/progress.mdtask-workflow/open-gaps.mdtask-workflow/CURRENT_PHASE.txttask-workflow/playwright/task-workflow/screenshots/The templates in assets/templates/ are enforcement artifacts. Copy their structure directly. If a required table is replaced by prose or stripped down until rows are no longer auditable, the run fails.
Follow the phases in order:
Delete the previous task's task-workflow/ artifacts, recreate the required artifact files from templates, and prove no implementation files were edited.
Detailed process: references/phase-0-1-startup-research.md.
Read the task, root AGENTS.md, .tasks/domain.md when present, only relevant task-provided skill files from .tasks/files/, relevant docs, and codebase. These are reference inputs: read and cite them, but do not edit them. Record task understanding, selected skills, affected files, patterns to reuse, risks, and an ordered implementation plan.
Detailed process: references/phase-0-1-startup-research.md.
Execute the researched plan in order, keep changes scoped, and record implementation evidence.
Detailed process: references/phase-2-4-execution-integrity.md.
Review the implementation as a continuation pass, close missing or weak work, propagate consistency to associated UI/API/data surfaces, and update the gap ledger.
Detailed process: references/phase-2-4-execution-integrity.md.
Run checks and review code structure, imports, route wiring, data shapes, tests, docs, and unrelated edit risk before browser verification begins.
Detailed process: references/phase-2-4-execution-integrity.md.
Use standalone interactive Playwright scripts to exercise real user flows, bad cases, surrounding UI, and desktop/tablet/mobile responsive behavior from a user perspective.
Detailed process: references/phase-5-7-verification-signoff.md and references/playwright-interactive.md.
Review existing E2E coverage first, update it when the changed behavior belongs to an existing flow, add new E2E tests only when necessary, and prove real end-to-end functionality rather than superficial styling or existence checks.
Detailed process: references/phase-5-7-verification-signoff.md.
Re-read every artifact, confirm all previous gates still pass after the last edit, review the final diff, run the required MITB completed command only after all Phase 7 audit checks pass, and sign off only if the artifact trail proves completion.
Detailed process: references/phase-5-7-verification-signoff.md.
The phase references are not optional expansion material. They are the detailed execution instructions for the current workstream.
These automatically fail the run:
task-workflow/CURRENT_PHASE.txt still says phase-0-artifact-reset or phase-1-task-researchtask-workflow/phase-2-execution.md does not record that the marker was set to phase-2-execution before source editstask-workflow/progress.md current enough to resume the runtask-workflow/progress.md, including AGENTS.md, .tasks/task.md, .tasks/domain.md when present, .tasks/files/, and relevant task-provided skill files.tasks/task.md, .tasks/domain.md, .tasks/files/, selected task-provided skill files, or AGENTS.md without the user/task explicitly requesting an edit to that exact reference filetask-workflow/progress.md Current Phase Pointers, Phase Artifact Index, or Artifact Pointers stale, missing, or contradicting phase artifactstask-workflow/progress.md as a duplicate file inventory instead of pointing to the owning phase artifacts for detailstask-workflow/CURRENT_PHASE.txt while the current or any previous phase artifact still says Decision: Failtask-workflow/CURRENT_PHASE.txt while the current or any previous phase artifact still has placeholder Pending gate evidenceCURRENT_PHASE.txt is before phase-7-final-signoffDecision: Fail, has a failing score, or contains pending gate evidencetask-workflow/phase-2-execution.md execution log remains blank or all Pendingtask-workflow/open-gaps.md contains stale open gaps that a passed later phase claims to have resolvedtask-workflow/open-gaps.md still contains template placeholder rows such as Pendingtask-workflow/playwright or tests/e2e8/10.tasks/files/ instead of selecting and reading only task-relevant skillsreferences/phase-0-1-startup-research.md: artifact reset, template copying, task intake, and codebase research.references/phase-2-4-execution-integrity.md: primary execution, second execution, gap closure, and integrity checks.references/phase-5-7-verification-signoff.md: interactive Playwright verification, E2E coverage, and final audit.references/playwright-interactive.md: how this skill uses standalone interactive Playwright scripts.assets/templates/phase-0-artifact-reset.mdassets/templates/phase-1-task-research.mdassets/templates/phase-2-execution.mdassets/templates/phase-3-second-execution.mdassets/templates/phase-4-integrity-review.mdassets/templates/phase-5-playwright-verification.mdassets/templates/phase-6-e2e-verification.mdassets/templates/phase-7-final-signoff.mdassets/templates/progress.mdassets/templates/open-gaps.mdThe task is complete only when Phase 7 passes. If the task cannot be completed, the final artifact must identify the exact blocking condition, the phase where it occurred, commands run, files inspected, and the smallest next action needed.
development
Strict execution instructions for Builder-style product tasks, app implementation tasks, bugfixes, verification tasks, and full-stack coding tasks. Use when Codex must work through ordered phases that start with mandatory task-workflow artifact reset before any source inspection or edit, then codebase research, implementation passes, scored gates, interactive Playwright verification, E2E coverage, and final signoff.
development
This skill is strict implementation instruction, not advisory reference text. The skill treats the HTML as discovery-only input, forces interactive Playwright route/state capture, then moves through scored gates for source acceptance, implementation planning, authored UI reproduction, implementation integrity, visual verification, and adversarial proof before signoff.
development
Use this skill for Customware existing-project migration tasks that move uploaded customer apps from other builders into the standard Customware stack while preserving the source product's routes, workflows, UI, UX, and styling with no intentional user-facing changes while replacing only the runtime foundation. This skill covers both `Migration build` and `Migration verify` and includes self-grading quality gates that must pass before the task can complete.
development
Primary Playwright governance skill for sandbox browser verification and deterministic end-to-end authoring or rewrite work.