agentflow-managed-workflows
Agentflow Managed Workflows
Use the shipped managed workflows as structured contracts, not as loose prompt buckets.
Use when
Use this skill when the graph should contain:
deep_researchspec_designexecute_specreview_change
Typical requests:
- "Should this be
deep_researchor a custom primitive graph?" - "Fill the fields for this
execute_specnode." - "What should
deliverycontain forreview_change?" - "Should this managed workflow pause for approval or run autonomously?"
Start here
Author or review the managed node first, then validate the whole graph with:
agentflow validate --graph <path>agentflow compile --graph <path>when you need to inspect the lowered shape
Read references/workflows.md before authoring or reviewing any managed node.
Read references/selection-and-handoffs.md when choosing between a managed workflow and primitives, or when deciding what should happen after the workflow publishes its outputs.
Shared contract
All managed workflows use the same top-level shape:
briefcontext_policyapproval_policystrategydelivery- optional
runtime
Rules:
- put user intent and scope in
brief - put allowed sources and repo/web policy in
context_policy - use
approval_policyonly when the workflow should intentionally insert checkpoints - keep workflow-specific intent knobs in
strategy - keep requested artifacts and report shape in
delivery - keep execution-budget tuning in
runtime, not instrategy
Managed workflows are autonomous by default. Do not add checkpoint-style pauses unless the workflow explicitly needs them.
Workflow
- Choose the workflow that matches the real task.
- do not use managed workflows for tiny one-step tasks
- do not use the wrong workflow just because it sounds close enough
- Author intent, not scheduler math.
briefshould say what the workflow is trying to achievecontext_policyshould say what sources and repo surfaces are alloweddeliveryshould say what the workflow must publishruntimeis only for advanced execution-budget tuning
- Decide whether the workflow should run autonomously.
- default to no checkpoints
- only enable
approval_policywhen an operator review point is intentionally part of the workflow design
- Plan the handoff.
- decide which published workflow artifact downstream nodes will consume
- use a downstream primitive node only when something concrete still needs to happen afterward
- do not tack on extra nodes that merely restate the workflow's own final output
- Validate the authored graph.
- make sure the managed node is being used for the right lifecycle
- make sure
deliverynames the artifacts the downstream graph actually needs - make sure
approval_policyis intentional, not decorative - validate and compile the graph before handoff
Selection
Use:
deep_researchfor multi-track research and synthesisspec_designfor repo-grounded design workexecute_specfor implementing an existing spec through planning, mutation, validation, and bounded repairreview_changefor structured change review with a reviewer panel
Guardrails
- Do not reintroduce old orchestration knobs as authored workflow semantics.
- Do not collapse everything into
briefor free-form prose. - Prefer explicit delivery artifacts over vague “write a report” instructions.
- Keep the managed node aligned with the shipped workflow, not with ad hoc custom subgraphs.
- If a primitive graph is clearer, use primitives instead of forcing a managed workflow.
More from koji98/agentflow
agentflow
Use when authoring, validating, running, inspecting, or debugging supervised Agentflow graphs, managed patterns, plugin tools, delivery packages, supervisor interventions, or Codex/Cursor harness behavior.
10agentflow-plugins
Use when creating, reviewing, resolving, or consuming Agentflow plugin workflows or plugin-bundled CLI tools, including workflow manifests, lockfiles, tool config, and credential policy.
6agentflow-run-debugging
Inspect, explain, and debug Agentflow runs. Use when a run failed, resumed unexpectedly, or needs artifact-level diagnosis; when tracing state.json, events.jsonl, execution logs, context packets, or execution artifacts; or when deciding why passed work did or did not preserve on resume.
3agentflow-graph-authoring
Design, review, and refine Agentflow execution graphs. Use when authoring or editing Agentflow graph JSON, choosing between primitive nodes and managed workflows, or checking topology, profiles, context flow, outputs, and validation against the shipped runtime contract.
3agentflow-evals
Use when designing, validating, running, inspecting, or improving Agentflow eval suites, scenarios, variants, criteria, environment simulation, trajectory checks, trace packets, scorecards, benchmark reports, prompt-pack experiments, dogfood workflow-quality evals, capability-workflow local repo evals, or pinned real-world GitHub issue evals.
2agentflow-grill-me
Use when the user wants to be grilled, interviewed, pressure-tested, or questioned before creating an Agentflow plan, graph, workflow, feature design, or implementation plan.
1