agentleFS
XORwellXORwell/archeflow/skills/workflow-design/SKILL.md

workflow-design

Skill0 starsChanged 52 days agoMITView on GitHub

Choosing a workflow for a run (fast, standard, thorough), adding focus with lenses and patterns, and the hooks specification (.archeflow/hooks.yaml).

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Workflow Design -- PDCA Cycles

PDCA cycles spiral upward: each cycle incorporates feedback from the previous one.

Built-in Workflows

WorkflowPlanDoCheckExitMax Cycles
fastCreatorMakerGuardianapprove/reject1
standardExplorer + CreatorMakerGuardian + Skeptic + Sageall_approved2
thoroughExplorer + CreatorMakerGuardian + Skeptic + Sage + Tricksterall_approved3

/archeflow:run knows exactly these three workflows (--workflow <name>, or workflow: in .archeflow/config.yaml). Files in .archeflow/workflows/ and .archeflow/teams/ (copied there by bundles) describe a setup for people reading it; the run does not read them.

Shaping a run

ConcernUse
Security-sensitive changethorough (adds Trickster), --lens security
Personal data--lens compliance-gdpr
Prose (writing domain)--lens prose-voice
Plan quality matters more than speed--pattern plan:debate
Cheap review of many small changes--pattern check:cascade

Lenses and patterns are described in the run skill's reference.md. More than 3 cycles rarely converges; if two cycles did not, change the task, not the cycle count.

Hooks

The one hook specification (the run skill and docs/hooks.md follow it). Hooks live in .archeflow/hooks.yaml, one top-level key per hook:

pre-merge:
  command: "npm run lint && npm run typecheck"
  fail_action: abort
run-complete:
  command: "echo run $ARCHEFLOW_RUN_ID finished: $ARCHEFLOW_STATUS >> .archeflow/hooks.log"
  fail_action: warn
HookCalled at (archeflow:run)VariablesDefault fail_action
run-startStart, step 7 (after run.start)ARCHEFLOW_RUN_ID, ARCHEFLOW_WORKFLOWwarn
pre-mergeMerge, step 1 (all reviewers approved, before the merge)ARCHEFLOW_RUN_ID, ARCHEFLOW_BRANCH, ARCHEFLOW_TARGETabort
post-mergeMerge, step 5 (after the merge and passing or skipped tests)ARCHEFLOW_RUN_ID, ARCHEFLOW_BRANCH, ARCHEFLOW_TARGETwarn
run-completeCompletion, step 8 (any outcome)ARCHEFLOW_RUN_ID, ARCHEFLOW_STATUS, ARCHEFLOW_CYCLESwarn

There are no other hook points; other keys in hooks.yaml are ignored (say so if you find one).

fail_action: warn = log and continue; abort = emit a decision event ({"what": "hook", "chosen": "hook_abort"}), stop the run and report.

Hooks are run by the orchestrating agent, not by a script. The file comes from the repository, so show each hook command to the user and get a yes before its first run in a session; never run a hook the user declined. The yes covers that exact command text: if hooks.yaml changed since (during a run, or after a pull), show the new command and ask again. To run one, write its command to .archeflow/artifacts/<run_id>/hook.sh with your file tool, then from the project root: ARCHEFLOW_RUN_ID=<run_id> <other variables> bash .archeflow/artifacts/<run_id>/hook.sh.

Anti-Patterns

  • Using thorough for small changes (cost without benefit)
  • Re-running a run that hit a Wiggum Break without changing the task
  • Skipping the Check phase

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.