bosun / workflow-templates
AGENTS.md285 starsChanged 7 months agoApache-2.0View on GitHub
Templates can be built from reusable parts instead of copy-pasting nodes:
In this repository26 other files it gives its agents.
- agent/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- bench/AGENTS.mdAGENTS.md
- bin/AGENTS.mdAGENTS.md
- config/AGENTS.mdAGENTS.md
- desktop/AGENTS.mdAGENTS.md
- _docs/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- git/AGENTS.mdAGENTS.md
- github/AGENTS.mdAGENTS.md
- infra/AGENTS.mdAGENTS.md
- kanban/AGENTS.mdAGENTS.md
- lib/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- server/AGENTS.mdAGENTS.md
- shell/AGENTS.mdAGENTS.md
- site/AGENTS.mdAGENTS.md
- task/AGENTS.mdAGENTS.md
- telegram/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- ui/AGENTS.mdAGENTS.md
- voice/AGENTS.mdAGENTS.md
- workflow/AGENTS.mdAGENTS.md
- workspace/AGENTS.mdAGENTS.md
- playwright-cliSkill
The file
Files
Workflow Templates Guide
Scope
Built-in template library used by the workflow engine.
Start Files
workflow-templates/task-lifecycle.mjs- task lifecycle ownership templates.workflow-templates/task-execution.mjs- task-type execution templates (built withmakeAgentPipeline).workflow-templates/sub-workflows.mjs- reusable sub-workflow fragments.workflow-templates/task-batch.mjs- batched task orchestration.workflow-templates/agents.mjs- agent behavior templates.workflow-templates/github.mjs- GitHub automation templates.workflow-templates/reliability.mjs- recovery/self-healing templates.workflow-templates/_helpers.mjs- shared helpers + composition primitives.
Composition System
Templates can be built from reusable parts instead of copy-pasting nodes:
Factory Functions (_helpers.mjs)
makeAgentPipeline(opts)— build trigger → phase₁ → … → done from phase defs.agentPhase(id, label, prompt)— agent node with standard boilerplate.agentDefaults(extra)— the 10-field boilerplate config for run_agent nodes.
Sub-Workflow Fragments (_helpers.mjs + sub-workflows.mjs)
subWorkflow(id, nodes, edges, meta)— define a reusable fragment.embedSubWorkflow(sub, prefix, overrides)— embed with prefixed IDs.wire(from, to)— connect embeds together.VALIDATE_AND_PR_SUB— build → test → lint → push → create-pr.PR_HANDOFF_SUB— create-pr → check → set-inreview → dispatch progressor.makeAgentPlanExecuteVerifySub(opts)— plan → implement → verify (3-phase).
Adding a New Task-Type Workflow
import { makeAgentPipeline } from "./_helpers.mjs";
export const MY_TEMPLATE = makeAgentPipeline({
id: "template-task-my-type",
name: "My Task Workflow",
taskPattern: "keyword1|keyword2",
tags: ["my-type", "task-type"],
phases: [
{ id: "plan", label: "Plan", prompt: "## Plan\n..." },
{ id: "implement", label: "Implement", prompt: "## Implement\n..." },
{ id: "verify", label: "Verify", prompt: "## Verify\n..." },
],
});Common Task Routing
- Prompt/scope guardrails ->
task-lifecycle.mjs,agents.mjs. - Reliability/retry policy ->
reliability.mjs,security.mjs,ci-cd.mjs. - Template wiring issues ->
workflow/workflow-templates.mjs. - Agent config defaults ->
_helpers.mjsagentDefaults().
Tests
- Focused:
npm test -- tests/workflow-templates*.test.mjs tests/workflow-task-lifecycle.test.mjs - Full:
npm test
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.

