flow test
by @qipengguo
Designs agent-evaluated flow tests for browser tasks, LLM outputs, and tool workflows. Invoke when exact asserts are brittle and semantic success matters mor...
clawhub install flow-testπ About This Skill
name: "flow-test" description: "Designs agent-evaluated flow tests for browser tasks, LLM outputs, and tool workflows. Invoke when exact asserts are brittle and semantic success matters more than literal equality."
Flow Test
Use this skill to design tests for tasks that cannot be validated reliably with traditional unit-test assertions alone.
This skill is for flow testing: the agent performs a realistic task, records key evidence from the process, and then judges success with an explicit semantic rubric.
Invoke this skill when:
Do not use this skill when:
Objective
Turn a fuzzy requirement into a test design that combines:
pass, fail, or needs_reviewDesign Principles
1. Keep asserts where they still work
Do not replace traditional tests blindly. Preserve exact checks for stable facts such as:
2. Judge task completion, not exact phrasing
Prefer questions like:
Avoid requiring one exact string unless the wording itself is the requirement.
3. Require inspectable evidence
Ask the execution flow to print or capture concise evidence such as:
The evaluator should be able to inspect why a verdict was reached.
4. Use explicit semantic rubrics
Never rely on vague instructions such as "judge whether it looks good."
Always define:
needs_review5. Prefer bounded confidence
If evidence is incomplete, contradictory, or too weak, do not force a pass.
Return needs_review.
Workflow
When invoked, design the test in the following order.
1. Identify why exact assertions are brittle
Classify the task:
Then explain why literal equality or fixed snapshots are not sufficient.
2. Split deterministic checks from semantic checks
Write two groups:
Deterministic Checks
Use exact validation for stable parts, such as:
Semantic Checks
Use agent evaluation for variable parts, such as:
3. Define the evidence schema
Specify exactly what the run should log or output.
Recommended evidence fields:
Keep evidence minimal but sufficient for review.
4. Define the verdict rubric
Use this baseline:
Pass
Fail
Needs Review
5. Produce a structured test spec
Return the design in this format:
## Test IntentWhy Exact Assert Fails
Deterministic Checks
Evidence To Collect
Semantic Rubric
Execution Notes
Final Verdict Format
Output Template
## Test Intent
Validate that: Why Exact Assert Fails
Dynamic factors:
Why literal equality is brittle: Deterministic Checks
Check 1:
Check 2: Evidence To Collect
Evidence 1:
Evidence 2: Semantic Rubric
Pass when:
Fail when:
Needs review when: Execution Notes
Constraints:
Allowed variance:
Safety concerns: Final Verdict Format
verdict: pass | fail | needs_review
reason:
evidence:
Example
Task: verify that visiting a news site returns today's news rather than stale content.
Good test design:
needs_review when freshness cannot be established from the evidenceBad test design:
assert returned_text == "Today's news is ..."Guidance
When using this skill:
Deliverables
When asked to design a flow test, provide: