agent-workflow-edit
Skill4 starsChanged 10 days agoMITView on GitHub
Edit the "Workflow" section of the project instruction file — the steps to run before starting work and before delivery, in what order, and when to skip them. Use when adjusting the start-of-work / delivery flow, adding a check step, changing the workflow, or updating the workflow; also edit it per this skill when a dedicated skill affecting the before-starting-work / before-delivery flow (docs, testing, checking) has been installed or removed, when a before-starting-work or before-delivery step needs registering in the instruction file, or when the user says "from now on, before every delivery ..." or "before starting work, first ...".
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-bug-fixSkill
- agent-bug-reportSkill
- agent-change-checkSkill
- agent-docsSkill
- agent-gallerySkill
- agent-plan-execSkill
- agent-plan-writeSkill
- knowledge-i18n-copySkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
When unsure, report back: stop, spell out what needs deciding (with the options) or what information is missing, together with what you …
- Very specific: line 16
When no instruction file in the project carries this pair of markers, do not create it yourself: report back and ask the user to run the …
- Distinctive: line 18
When several instruction files in the project carry this pair of markers (such as CLAUDE.md and AGENTS.md), edit all of them together and …
- Distinctive: line 23
When unsure whether a step belongs in the workflow at all, or at which step, report back.
- Distinctive: line 44
When writing the first entry, replace the parenthesized placeholder line in the subsection.
- Distinctive: line 50
When another skill or installer needs to register a step, it must also go through this skill to edit the "This project" subsection — it …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Editing the workflow
The "Workflow" section between <!-- setup-agent:workflow:begin --> and <!-- setup-agent:workflow:end --> in the
project instruction file is the only place in the project where the workflow is written.
When unsure, report back: stop, spell out what needs deciding (with the options) or what information is missing, together with what you have already found out, and let the recipient of the report (the user, or the dispatcher passing it on to the user) decide before going on; do not decide for yourself.
- Edit only between this pair of markers; the markers themselves are neither deleted nor changed.
- When no instruction file in the project carries this pair of markers, do not create it yourself: report back and
ask the user to run the
setup-agent:workflowinstaller to generate this section first, then edit it. - When several instruction files in the project carry this pair of markers (such as
CLAUDE.mdandAGENTS.md), edit all of them together and keep them consistent; two that are symlinks of each other are the same file — edit only the file the symlink points to. When only some of the instruction files carry the markers, edit those and report which ones do not; when it is unclear which one takes effect, or the existing copies already disagree, report back. - When unsure whether a step belongs in the workflow at all, or at which step, report back.
What to write
- Each step records only dispatch: when it is done, which skill it is handed to or what command is run, which step it comes after, and under what circumstances it is skipped.
- Details of how belong to the skill responsible for them; to change the how, change that skill.
- Behavioral conventions about what to abide by while working (output style, subagent dispatch rules, and so on) do not belong in this section, are not moved in here, and are not touched here.
- Entries in "This project" must not weaken the general rules at the start of "Before delivery" (such as waiving the self-check or skipping user confirmation).
Where to edit
- Everything outside the "This project" subsection is generated by the
setup-agent:workflowinstaller from theagent-docs,agent-unit-test,agent-gallery, andagent-change-checkinstalled in the project, and is rewritten wholesale on reinstall. Project-specific steps, ordering, and skip conditions are written only into the "This project" subsection. - Anchor each entry on the step names, not on step numbers (numbers shift with the skills installed), e.g. "After 'Change check': ..." or "Skip condition for 'Add unit tests': ..." or "Move 'Documentation update' before 'Change check'". When the step or subsection an anchor sits on is not currently there, report back.
When writing the first entry, replace the parenthesized placeholder line in the subsection; when every entry is deleted, write this placeholder line back:
(None yet. Project-specific steps are written here one per entry, anchored on the step names above, e.g. "Before 'Formatting and checks': ..." or "Skip condition for 'Formatting and checks': ..."; the full set of checks and each package's own check commands may also be written here.)- When another skill or installer needs to register a step, it must also go through this skill to edit the "This project" subsection — it must not write workflow content into the instruction file itself.
After a skill is added or removed
- What was added or removed is one of
agent-docs,agent-unit-test,agent-gallery,agent-change-check: report back and ask the user to re-run thesetup-agent:workflowinstaller to rebuild everything outside "This project"; afterwards, list for the user, one by one, the "This project" entries anchored on steps that are now gone, and let the user decide whether to re-anchor or delete them. - What was added or removed is another dedicated skill affecting the before-starting-work / before-delivery flow: add an entry in "This project" naming that skill, stating whether it belongs before starting work or before delivery, which step it comes after, and when it is skipped; for a removal, delete the corresponding entry and fix every other entry that mentions it. Write only the skills currently installed; leave no placeholder for ones that are not.
When done
Tell the user which entries were changed, and remind them that the instruction file's changes must be committed to version control to take effect in the project, and take effect in the next session.
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.

