Workflow create

From AMDResearch/omniprobe · View interactive version

Workflow create is an AI agent skill from the GitHub repository AMDResearch/omniprobe. Create a complete workflow packet from a clear work request or refined brief. Use when the user has a well-defined task ready to become a tracked workflow, or after workflow-refine produces a brief. Creates dossier, run-log, handoff, artifacts, and acceptance.sh files in draft state.

How to use this skill

Skill file

workflow-create

Purpose

Create a complete workflow packet from a clear work request or a refined brief produced by workflow-refine. The packet is placed in draft state and contains all five required files, ready for a readiness check.

The fifth file, acceptance.sh, is the point of the exercise: acceptance criteria written only as prose are graded by the same agent that did the work. Writing them as a script forces each criterion to name the fact that settles it, and makes exit 0 the only evidence a workflow may stop.

Preconditions

Required Reads

  1. .agents/workflows/dossier-template.md
  2. .agents/workflows/run-log-template.md
  3. .agents/workflows/handoff-template.md
  4. .agents/workflows/artifacts-template.md
  5. .agents/workflows/acceptance-template.sh -- the starting point for the fifth packet file.
  6. .agents/workflows/INDEX.md -- understand lifecycle rules and naming, and the four verdict classes.
  7. .agents/state/active-workflows.md -- check for write-scope conflicts.
  8. .agents/policy/contract.md -- understand contract preservation rules.

Procedure

  1. Pick the workflow type. Use the appropriate prefix based on the work:
  1. Choose a workflow ID. Format: <prefix><short-descriptive-slug>, e.g., ft_user-export, rf_extract-auth-module. Use lowercase and hyphens.
  2. Create the packet directory at .agents/workflows/draft/<workflow-id>/.
  3. Write dossier.md using the dossier template. Fill in every section:
  1. Classify every acceptance criterion. Each falls into exactly one of three classes, and the class determines both how the dossier states it and which verdict function checks it:

| Class | Dossier | acceptance.sh | Gates |

|-------|---------|-----------------|-------|

| Executable | plain criterion | ac_pass / ac_fail | yes |

| Weak | criterion plus a note that the check is indirect | ac_weak on success, ac_fail on failure | no |

| Judgement | criterion marked [judgement] with a stated reason | ac_judge, reason as the third argument | no |

A weak check establishes something adjacent to the criterion rather than the criterion itself -- almost always text presence. A grep for "target repo" also matches a document saying "do NOT treat the target repo as the codebase", so it proves the words are there and nothing more. Report it as ac_weak. Do not promote it to ac_pass because the output looks better that way.

A judgement criterion cannot be decided by any script -- typically a claim about how an agent behaves after reading a document. It requires the [judgement] marker in the dossier and a stated reason for why it is not checkable. A bare marker is not acceptable: the reason is what a human reviewer acts on, and what the optional validator receives. Reuse the same reason as the third argument to ac_judge.

Before accepting either weaker class, try rewording the criterion so a command can decide it. Often a criterion about behaviour can be split into a mechanical half that is asserted and a judgement half that is marked -- state both. Expect roughly a fifth of a real dossier to resist; that ratio is a property of this kind of work, not a defect.

  1. Write acceptance.sh by copying .agents/workflows/acceptance-template.sh into the packet directory and replacing every TODO. One call per criterion, in the dossier's order, using the verdict its class dictates. Set AC_WORKFLOW_ID and AC_DOSSIER_PATH, keep the ac_check_write_scope call, and end with ac_finish. Set the executable bit.

Run it before moving on. It will fail -- no work has been done yet -- but it must fail by reporting unmet criteria, not by crashing. A script that errors out is not a gate.

  1. Write run-log.md using the run-log template. Add an initial entry recording the packet creation.
  2. Write handoff.md using the handoff template. Set:
  1. Write artifacts.md using the artifacts template. Leave it as a header-only skeleton.
  2. Update .agents/state/active-workflows.md to list the new workflow with state draft.
  3. If a seed file was the source, note this in the dossier References section.

Output

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.