Workflow complete

From AMDResearch/omniprobe · View interactive version

Workflow complete is an AI agent skill from the GitHub repository AMDResearch/omniprobe. Perform the full completion sequence for a finished workflow. Use when all acceptance criteria are met and the workflow is ready to move to done state. Updates dossier, writes final run-log and handoff entries, moves the packet directory, and archives the entry in active-workflows.md.

How to use this skill

Skill file

workflow-complete

Purpose

This skill ensures all completion steps are performed together when a workflow reaches done state. It prevents the common failure where a workflow is marked done in active-workflows.md but the packet directory is not moved, the run-log has no closing entry, or the handoff is stale.

Preconditions

Required Reads

  1. .agents/workflows/<current-state>/<workflow-id>/dossier.md [required] -- verify acceptance criteria status.
  2. .agents/workflows/<current-state>/<workflow-id>/handoff.md [required] -- current state.
  3. .agents/workflows/<current-state>/<workflow-id>/run-log.md -- execution history.
  4. .agents/state/active-workflows.md [required] -- coordination index.
  5. .agents/state/current-focus.md [required] -- project focus.

Procedure

  1. Run acceptance.sh. Before reading anything else about criteria status, run the packet's acceptance script and capture its full output:

```

bash .agents/workflows/<current-state>/<workflow-id>/acceptance.sh

```

If it exits non-zero, stop. Report: "Cannot complete workflow — acceptance.sh exited <N>. Unmet criteria: [the FAIL lines]." Do not proceed with any other completion step. Do not edit acceptance.sh to make it pass, and do not weaken a criterion in the dossier -- record a proposed spec change in handoff.md instead and take it to the user.

If the packet has no acceptance.sh -- it predates the convention -- say so explicitly in the closing run-log entry, and fall back to reading the dossier and confirming each criterion against verification evidence. An absent gate is not a passed gate; it just means the evidence is manual.

  1. Acknowledge every JUDGE line. A judgement criterion is non-gating by design, so acceptance.sh can exit 0 with judgement criteria unresolved. Each one must be explicitly human-acknowledged in artifacts.md before the packet moves: quote the JUDGE line, state who reviewed it, and state the finding. A packet with unacknowledged JUDGE lines is not complete.

Record WEAK lines in artifacts.md too. They do not require sign-off, but the completion record should show which criteria were established by an indirect check rather than a direct one.

  1. Verify remaining acceptance criteria. Read dossier.md and confirm every criterion not covered by the script is met with verification evidence. If any criterion is unmet and the failure policy is not best_effort, stop: "Cannot complete workflow — unmet criteria: [list]. Resolve or change failure policy first."
  2. Update dossier metadata. Set the Lifecycle State field in dossier.md to done.

Verify the update was written: re-read the Lifecycle State line from dossier.md and

confirm it now says done. If it does not, stop and report the error.

  1. Write final run-log entry. Append a closing entry to run-log.md:

```markdown

### <timestamp>

```

  1. Write final handoff. Update handoff.md with final status:
  1. Move the packet directory. Relocate the entire workflow directory from .agents/workflows/<current-state>/<workflow-id>/ to .agents/workflows/done/<workflow-id>/.
  2. Archive completed entry in active-workflows.md. Move the workflow's row from the main

table to a ## Completed section at the bottom of the file. If the ## Completed section

does not exist, create it with a minimal table header (| ID | Type | Completed |). The

archived row needs only the workflow ID, type, and completion date — strip the owner, write

scope, dependencies, and blocker columns. If the Completed section exceeds 30 rows, remove

the oldest rows (they remain discoverable via the done/ directory).

  1. Prune current-focus.md. Remove this workflow from "Current Focus Areas" and

"Active Workflows" sections entirely. If this workflow appears in "Recent Decisions"

only as a completion notice (not a substantive decision), remove that entry too.

Add a one-line entry to "Recent Decisions" only if a durable project decision was made

during this workflow (technology choice, architecture decision, scope decision). Keep

the total "Recent Decisions" section under 15 entries by removing the oldest

non-architectural entries when the limit is reached.

  1. Verify state consistency. After completing all updates, perform a quick check:

Output

No separate output file. The skill modifies existing state files in place and moves the packet directory.

Completion Criteria

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.