How to create devkit workflow YAML files — schema reference, step types, variable interpolation, and examples.
From devkitnpx claudepluginhub 5uck1ess/devkitThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Devkit workflows are YAML files in the workflows/ directory. Each workflow defines a sequence of steps executed in order, with optional loops, branches, and parallel groups.
name: string # Workflow display name
description: string # What this workflow does
budget: # Optional: token budget
limit: number # Max tokens (e.g., 300000)
downgrade: string # Model to downgrade to when approaching limit
steps:
- id: string # Unique step identifier
model: string # Model tier: "smart", "general", "fast"
prompt: string # Instruction (supports ${{variable}} interpolation)
parallel: [ids] # Optional: run these step IDs concurrently
loop: # Optional: repeat this step
max: number # Maximum iterations
until: string # Stop condition (string match in output)
branch: # Optional: conditional execution
if: string # Condition expression
then: string # Step id to jump to if true
else: string # Step id to jump to if false
${{steps.previous_id.output}} to reference earlier outputs. Use ${{input.field}} for workflow inputs.max iterations. Exits early if output contains until string.then and else reference step ids.name: summarize-and-review
description: Summarize a document then review the summary
steps:
- id: summarize
model: general
prompt: |
Summarize in 3 bullet points:
${{input.document}}
- id: review
model: smart
prompt: |
Review this summary for accuracy:
Summary: ${{steps.summarize.output}}
Original: ${{input.document}}
ids — they appear in logs and output references.