4.4 KiB
4.4 KiB
name, description
| name | description |
|---|---|
| wf-workflow | Use when an agent needs to discover workflow capabilities, create or patch draft workspaces, save workflow or wrapper artifacts, deploy, run, resume, debug, or troubleshoot workflows in this repository. |
wf Workflow
Use this skill for the workflow lifecycle when the available front door is the
repo-local wf CLI.
Prefer small discovery calls, draft workspaces, validation, and bounded trace reads. Do not write raw workflow plans unless the user explicitly asks for the low-level escape hatch or you already have a complete compiler/generated plan.
Workflow Lifecycle
- Discover available capabilities with
wf cap list. - Inspect one candidate with
wf cap inspect. - Call one candidate with
wf cap callwhen payload shape or upstream source reachability is uncertain. - Create a patchable draft workspace with
wf draft create <workspace_id> --capability <qualified_name>when the first step is a known capability, or withwf draft create <workspace_id> --name <name>for a control-first, interrupt-first, end-first, or subgraph-first graph. - Set the entry point or whole workflow contract with
wf draft set-startandwf draft set-contractwhen needed, then patch other targeted fields with focused commands or JSON Patch. - Validate with
wf draft validate. - Save an artifact with
wf draft save, or import a complete raw plan withwf artifact create-from-plan. - Save a deployment with
wf deploy saveorwf deploy create. - Validate with
wf deploy validate. - Run with
wf run start. - Inspect stopped runs with
wf run inspect; read bounded trace slices only when debugging.
Rules
- Use workflow capabilities, not raw MCP tools, when building graphs.
- Use
call_capabilityfor single-call probes; use deployments/runs for durable lifecycle behavior. - Treat wrapper hints as scaffolding, not semantic truth.
- Use draft workspaces for iterative authoring; avoid rewriting full drafts.
- Prefer focused draft edit commands before hand-writing JSON Patch.
- Treat
set-contractschema files and repeated outcomes as whole-field replacements, not merges. - Prefer
draft bindordraft add capabilitywhen selected schema fields should be projected from a known node contract. Reserve JSON Patch for field-level schema surgery not covered by focused operations. - If a complete raw JSON/YAML plan already exists, the CLI escape hatch is
wf artifact create-from-plan; do not write helper scripts that call internal APIs directly. - Use
artifact create-from-planonly for complete raw plans; do not pass draft JSON to it. - Use explicit source bindings at deployment time.
- Keep traces bounded with
trace_range. - Do not expect a newly saved workflow to become a new MCP tool mid-session.
- For MCP content blocks, add explicit extraction/wrapper steps instead of
pretending
contentis always plain text.
References
Read only the reference needed for the current task:
- Start with
system-model.mdwhen lifecycle vocabulary is unclear. - Use
workflow-lifecycle.mdfor operation order. - Use
capabilities-and-wrappers.mdbefore selecting a source capability. - Use
draft-workspaces.mdfor iterative editing. - Use
direct-plan-import.mdonly when a complete raw plan is required. - Use
troubleshooting.mdafter a public validation/run failure.
Before authoring JSON, query the live public model with wf schema; the
references explain semantics while the command reflects the current shape.
Useful patterns:
# PowerShell preview
Get-Content skills/wf-workflow/references/system-model.md -TotalCount 80
# Targeted search
rg -n "trace|resume|binding_missing|wrapper_hints" skills/wf-workflow/references
references/system-model.md: short explanation of how sources, capabilities, drafts, artifacts, deployments, runs, bindings, and traces fit together.references/workflow-lifecycle.md: end-to-end lifecycle and tool order.references/capabilities-and-wrappers.md: raw capability vs workflow capability, wrapper artifacts, and content-block handling.references/draft-workspaces.md: draft shape, mappings, patches, and save path.references/direct-plan-import.md: complete workflow plan JSON shape forwf artifact create-from-plan.references/troubleshooting.md: missing source/capability, unrunnable deployment, run/trace issues.
For shell-first workflows, also use the existing wf-cli skill.