run-workflow
Skill174 starsChanged 2 months agoMITView on GitHub
Drive a work item through the workflow in auto mode - resolve the next stage, run it, advance state, and stop only at gates.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- khpeet/newrelic-skillstheir own version, first seen Nov 8, 2026
- norman-finance/norman-mcp-servertheir own version, first seen Nov 2, 2026
- HLIntel/thea-softwaretheir own version, first seen Nov 1, 2026
- HLIntel/Headrontheir own version, first seen Nov 1, 2026
- vasilyu1983/AI-Agents-publictheir own version, first seen Oct 13, 2026
- simstudioai/skillstheir own version, first seen Sep 9, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- vasilyu1983/AI-Agents-public★ 94same name
- norman-finance/norman-mcp-server★ 65same name
- HLIntel/Headron★ 3same name
- HLIntel/thea-software★ 3same name
- simstudioai/skills★ 2same name
- khpeet/newrelic-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-runtimeSkill
- arc42-documentationSkill
- authoring-rolesSkill
- context-packSkill
- create-agent-skillSkill
- create-pr-azdoSkill
- create-pr-githubSkill
- detect-diagram-crossingsSkill
- flowchart_layout_optimizerSkill
- generate-demo-artifactsSkill
- generate-release-screenshotsSkill
- git-rebase-mainSkill
- merge-conflict-resolutionSkill
- next-issue-numberSkill
- pre-pr-checklistSkill
- retrospective-evidenceSkill
- run-dotnet-testsSkill
- run-uatSkill
- update-test-snapshotsSkill
- update-workflow-diagramSkill
- view-pr-githubSkill
- watch-uat-azdo-prSkill
- watch-uat-github-prSkill
- website-accessibility-checkSkill
- website-create-examplesSkill
- website-devtoolsSkill
- website-quality-checkSkill
- website-visual-assetsSkill
- agent-runtimeSkill
- arc42-documentationSkill
- authoring-rolesSkill
- context-packSkill
- create-agent-skillSkill
- create-pr-azdoSkill
- create-pr-githubSkill
- detect-diagram-crossingsSkill
- flowchart_layout_optimizerSkill
- generate-demo-artifactsSkill
- generate-release-screenshotsSkill
- git-rebase-mainSkill
- merge-conflict-resolutionSkill
- next-issue-numberSkill
- pre-pr-checklistSkill
- retrospective-evidenceSkill
- run-dotnet-testsSkill
- run-uatSkill
- run-workflowSkill
- update-test-snapshotsSkill
- update-workflow-diagramSkill
- view-pr-githubSkill
- watch-uat-azdo-prSkill
- watch-uat-github-prSkill
- website-accessibility-checkSkill
- website-create-examplesSkill
- website-devtoolsSkill
- website-quality-checkSkill
- website-visual-assetsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Do not paste the role file into the prompt.
- Very specific: line 85
When workflow-next.sh exits 2, stop and put the question to the Maintainer, along with any open_questions accumulated since the last gate.
- Very specific: line 111
Use docs/issues/NNN-<slug> for a bug fix.
- Distinctive: line 144
Do not do a role's work yourself.
- Distinctive: line 146
Do not skip a stage because it seems unnecessary.
- Very specific: line 148
Do not block on a question away from a gate.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run Workflow
The driver. Runs a work item from its current stage to completion, stopping only at
the three gates. Read docs/workflow.md for the stages and
gate rules, and the agent-runtime skill for how roles operate.
The loop
scripts/workflow-next.sh # what runs next, and with which model
# ... run that stage; the role appends its own work-protocol entry ...
scripts/workflow-next.sh # repeatYou do not call wp-append.sh --role. The role that ran the stage appends its own
entry before returning, and that append is what advances the stage. A second append
from the driver would advance past whichever role is now current, silently skipping it.
wp-append.sh refuses a --role that does not match the current stage, so a duplicate
call fails loudly rather than corrupting the run — but the rule is that completion has
exactly one owner.
The driver does use wp-append.sh for --gate and --rework, which are its own
decisions rather than a role's.
workflow-next.sh derives everything from the branch name and state.json. Note that
it is not purely a query: it advances past a skipped UAT stage and records that UAT is
required, so calling it is part of driving the run rather than inspecting it. Use
scripts/workflow-gate.sh status when you only want to look. It costs
almost nothing and needs no memory of previous turns, so a session that compacted or
died resumes by calling it again.
Exit codes: 0 a stage is ready, 2 blocked at a gate.
Running a stage
Spawn the role as a subagent with the model workflow-next.sh reports — that
isolation is why this workflow is affordable. Give it:
Act as the
<Role>role. Read.agents/roles/<stage>.mdand theagent-runtimeskill, then do your stage for the work item in<work-item-dir>.
Do not paste the role file into the prompt; the subagent reads it. Do not add your own instructions about how to do the role's job — if they were needed, they belong in the role file.
One exception: the code-reviewer stage runs in Codex, not as a subagent:
scripts/codex-review.sh <work-item-dir>Its exit code decides what happens next, and it advances the stage itself:
| Exit | Meaning | What you do |
| 0 | APPROVED | Continue the loop |
| 1 | REWORK | Continue the loop — it has already routed back to the Developer |
| 2 | codex unavailable or failed twice | Spawn the Code Reviewer subagent instead, and pass --problems "reviewer: claude-fallback" on its work-protocol entry so the retrospective can see the review was single-family |
Exit 2 is not a rework signal. Treating it as one sends the Developer back for a review that never happened.
Starting a new work item
The entry role creates the branch, the folder, work-protocol.md and state.json:
| Request | Entry role | Branch |
| New feature | Requirements Engineer | feature/NNN-<slug> |
| Bug | Issue Analyst | fix/NNN-<slug> |
| Workflow improvement requested by the Maintainer | Workflow Engineer | workflow/NNN-<slug> |
| Website change | Web Designer | website/NNN-<slug> |
Reserve NNN with the next-issue-number skill. Do not ask which role to start with —
determine it from the request and delegate; the entry role asks the clarifying
questions, because that is its job and not yours.
Gates
When workflow-next.sh exits 2, stop and put the question to the Maintainer, along with
any open_questions accumulated since the last gate. Then record the answer:
scripts/wp-append.sh --gate spec --decision approvedarch is only pending when the Architect wrote contested into it. uat is skipped
automatically when the diff does not touch user-visible output — the driver reports the
skip and moves on.
After release
For features and bug fixes, the Release Manager completes the merge and verifies the published release before the Retrospective runs. The release deletes the source branch, so resume the final stage by its retained work-item directory from a worktree based on the merged branch, on a separate documentation follow-up branch. The driver selects the Retrospective; the role appends its own entry after completing the report:
scripts/workflow-next.sh --work-item docs/features/NNN-<slug>
# Retrospective role, after writing its report:
scripts/wp-append.sh --work-item docs/features/NNN-<slug> \
--role "Retrospective" --summary "..."Use docs/issues/NNN-<slug> for a bug fix. Keep the retrospective report in a separate
post-release documentation follow-up, not in the PR for the work being reviewed.
Recommendations may be presented to the Maintainer; start Workflow Engineer only when
the Maintainer asks for workflow improvements.
Rework
The code reviewer routes its own rework. codex-review.sh calls --rework itself
before exiting 1, so do not call it again — a second call counts the same rejection
twice and can block the run after two failed reviews instead of three.
For a UAT failure, use the gate; for a build failure, call rework yourself:
scripts/wp-append.sh --gate uat --decision rejected # UAT failed
scripts/wp-append.sh --rework release-manager --reason "PR validation failed"Both route back to the Developer and increment attempts, which escalates the model
one tier. Escalating forever is not a strategy: after three attempts at the same
stage, stop and involve the Maintainer. Repeated failure at one stage is usually a
specification problem wearing an implementation costume.
Before release
scripts/workflow-gate.sh allNon-zero means a required role never logged its work, and the release does not proceed.
What not to do
- Do not do a role's work yourself. If the Developer's stage is next, spawn the Developer — writing the code yourself defeats the isolation the workflow is built on.
- Do not skip a stage because it seems unnecessary. The work-protocol gate will refuse the release, and you will have lost the intervening work.
- Do not block on a question away from a gate. Record it with an assumption
(
wp-append.sh --question ... --assumed ...) and continue.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

