Validate Spec Skill
This skill validates workflow and agent specifications for correctness.
Usage
Invoke this skill when:
- •Before compiling a workflow
- •After creating or modifying a spec
- •User asks to validate specs
Validation Checks
Workflow Specs
- •
Structure validation
- •Has valid YAML frontmatter with
nameandversion - •Has
## Inputssection - •Has
## Stepssection with numbered steps - •Has
## Outputssection
- •Has valid YAML frontmatter with
- •
Reference validation
- •All referenced nodes exist (agents in
specs/agents/, functions insrc/nodes/) - •Primitives are valid built-in primitives
- •Sub-workflows exist in
specs/workflows/
- •All referenced nodes exist (agents in
- •
Data flow validation
- •Step inputs reference valid outputs from previous steps
- •No undefined variables
- •Types align between steps (best effort)
- •
Control flow validation
- •No unreachable steps
- •Conditions reference valid variables
Agent Specs
- •
Structure validation
- •Has valid YAML frontmatter with
nameandtools - •Has task description
- •Has output format
- •Has valid YAML frontmatter with
- •
Tool validation
- •All tools exist (built-in nodes from 0pflow or user nodes in
src/nodes/)
- •All tools exist (built-in nodes from 0pflow or user nodes in
Output
Report validation results:
code
Validating specs/workflows/icp-scoring.md... ✓ Structure: Valid ✓ References: All 3 agents found ✓ Data flow: All variables defined ✓ Control flow: No unreachable steps Validation passed.
Or with errors:
code
Validating specs/workflows/icp-scoring.md... ✓ Structure: Valid ✗ References: Agent 'company-researcher' not found in specs/agents/ ✓ Data flow: All variables defined ✗ Control flow: Step 5 is unreachable Validation failed with 2 errors.