flow-validate
Skill4 starsChanged 8 months agoMITView on GitHub
This skill should be used when the user asks to 'validate a flow', 'check my flow', 'lint this flow', 'is this flow correct', 'flow errors', 'flow warnings', or wants to analyze a prompt-language flow for issues before executing it.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- concord-microtask-routerSkill
- deploy-checkSkill
- fix-and-testSkill
- qa-auditSkill
- refactorSkill
- tddSkill
- write-flowSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
If the user provided a file path argument, read that file
- Distinctive: line 18
If the user pasted flow text inline, use that
- Distinctive: line 21
Run the validation script:
- Distinctive: line 41
If there are warnings, suggest specific fixes for each one.
- Very specific: line 59
Empty flow: No nodes defined in the flow: block
- Distinctive: line 63
When many warnings exist, report in this priority order:
- Very specific: line 85
If multiple .flow files exist and no argument is given, ask which file to validate.
- Distinctive: line 86
If no flow source is discoverable, report exactly what was searched.
- Distinctive: line 87
If validation script path is missing, report plugin installation mismatch instead of guessing.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flow Validate
Parse, lint, and score a prompt-language flow to find issues before execution.
What to do
- Determine the flow source:
- If the user provided a file path argument, read that file
- If the user pasted flow text inline, use that
- Otherwise, look for
example.flowor any.flowfile in the current directory
Run the validation script:
node <plugin-dir>/skills/flow-validate/validate.mjs [file-or-stdin]Or pipe flow text to it:
echo '<flow text>' | node <plugin-dir>/skills/flow-validate/validate.mjsWhere
<plugin-dir>is the directory containing this skill (find it viaGlobforskills/flow-validate/validate.mjs).- Report the results to the user:
- Parse warnings: syntax issues found during parsing
- Lint warnings: anti-patterns detected (empty bodies, break outside loop, unresolved variables, etc.)
- Complexity score: 1-5 rating with explanation
- Summary: overall pass/fail assessment
- If there are warnings, suggest specific fixes for each one.
Complexity Scale
- 1 (Trivial): Linear flow, 3 or fewer nodes, no control flow
- 2 (Simple): Up to 5 nodes or 1 control flow construct, shallow nesting
- 3 (Moderate): Up to 10 nodes, nesting depth up to 2, or 2-3 control flows
- 4 (Complex): More than 10 nodes, depth 3+, or 4+ control flows
- 5 (Very complex): Deep nesting combined with many control flows and gates
Common Warnings
- Empty body: A loop, if, try, or spawn block has no nodes inside it
- Break/continue outside loop:
breakorcontinueused outside a while/until/retry/foreach - Retry without run:
retryblock has norunnode -- retry re-loops on command_failed - Unresolved variable:
${varName}referenced but never defined by alet/varnode - Infinite loop risk: Loop condition depends on a predicate (like
command_failed) but body has norunnode - Missing goal: No
Goal:line found - Empty flow: No nodes defined in the
flow:block
Review Prioritization
When many warnings exist, report in this priority order:
- Parse blockers (flow cannot be executed safely)
- Control-flow safety issues (infinite loop risk, invalid break/continue)
- Semantic issues (unresolved interpolation, retry-without-run)
- Complexity/readability concerns
Suggested Fix Strategy
- First make the flow executable (parse/lint blockers).
- Then reduce control-flow risk.
- Then simplify complexity (collapse unnecessary phases, remove short-distance variables).
Output Format
Parse:pass/fail + countLint:pass/fail + countComplexity:score + short rationaleTop 3 fixes:concrete edits with expected impact
Edge Cases
- If multiple
.flowfiles exist and no argument is given, ask which file to validate. - If no flow source is discoverable, report exactly what was searched.
- If validation script path is missing, report plugin installation mismatch instead of guessing.
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.

