agentleFS
Codagent-AICodagent-AI/agent-skills/skills/test-flows/SKILL.md

test-flows

Skill31 starsChanged 6 months agoMITView on GitHub

Exercises a small or branch-local software change through representative public user or client flows and reports concise observed evidence, defects, ambiguities, and limitations without fixing code, running automated suites, requiring a PR, or preparing formal acceptance; use for lightweight manual-style testing, smoke testing a completed change, or targeted verification after a small fix.

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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
  1. Distinctive:

    If expected behavior is unavailable, report what is missing instead of inferring the contract from implementation alone.

    line 20
  2. Distinctive:

    If a selected UI flow has no evidence directory, report the missing input instead of testing that flow without its required screenshot.

    line 22
  3. Distinctive:

    Use typical data, configuration, and roles.

    line 36
  4. Distinctive:

    Before each flow, write down the expected result in specifics.

    line 40
  5. Very specific:

    Check each candidate location: scratch_dir, the evidence directory, and the report path folder.

    line 48
  6. Distinctive:

    Consider only locations the caller supplied.

    line 49
  7. Very specific:

    When scratch_dir is allowed, put every temporary file, clone, fixture project, seeded data, and server working folder inside it.

    line 54
  8. Distinctive:

    If no allowed scratch location exists, exercise only flows that need no scratch files, list each skipped flow under untested or blocked …

    line 61
  9. Distinctive:

    Use the project's normal setup, build, install, seed, and start commands needed to expose the current worktree.

    line 67
  10. Distinctive:

    Call APIs through their documented HTTP, SDK, or CLI surface as a client would.

    line 71
  11. Distinctive:

    Write the same report to a caller-specified path when requested.

    line 96
  12. Distinctive:

    Do not fix defects, modify approved artifacts, commit, push, wait for CI, inspect PR state, or claim human acceptance.

    line 99

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Test Flows

Exercise the checked-out product as a user or real client would. This is a lightweight flow check, not automated validation or formal acceptance preparation.

Inputs

Read the caller-supplied:

  • approved behavior or planning artifacts;
  • concise implementation summary;
  • verification scope: representative full pass or named targeted flows;
  • evidence directory when the selected scope includes UI flows or durable evidence is requested;
  • optional scratch_dir, the caller-provided scratch folder (for example, a per-step Agent Runner folder).

If expected behavior is unavailable, report what is missing instead of inferring the contract from implementation alone. If a selected UI flow has no evidence directory, report the missing input instead of testing that flow without its required screenshot.

Select flows

Size the pass to what changed. Identify the meaningful changed journeys and public surfaces, and keep the inventory proportional to the small change rather than replaying every requirement scenario or input variation. Skip anything an existing automated test already asserts properly; check before assuming it does.

For targeted verification, exercise the named affected flows and obvious direct dependencies. Verify the prior finding first. Do not start a new broad review or search unrelated surfaces for additional issues.

Use typical data, configuration, and roles. Do not fuzz or build an exhaustive edge-case matrix; keep exploration targeted by risk rather than volume. Running the same operation twice is cheap and catches a large share of real defects.

Before each flow, write down the expected result in specifics. A wrong prediction means the model and the system disagree, and one of them is a defect. Emit actual values rather than pass or fail, since a boolean can only answer the question already thought of.

For a deeper pass on a substantial change, use codagent:prepare-acceptance instead.

Scratch space

Check each candidate location: scratch_dir, the evidence directory, and the report path folder. Consider only locations the caller supplied. Resolve relative paths and symlinks for each candidate and both comparison roots. Get the worktree root with git rev-parse --show-toplevel. Reject any candidate inside the git worktree or the system temp folder. Use the first allowed location in that order. Never use a hard-coded temp path.

When scratch_dir is allowed, put every temporary file, clone, fixture project, seeded data, and server working folder inside it. Leave cleanup of a caller-provided scratch folder to the caller. Otherwise, create a new, unique scratch subfolder under the allowed evidence directory or report path folder. Do not reuse an existing folder. Copy any evidence to be retained out of this folder, then remove only the folder this skill created before the skill ends on any path, including early stops when a defect makes remaining flows unreachable, unsafe, or untrustworthy, and failures.

If no allowed scratch location exists, exercise only flows that need no scratch files, list each skipped flow under untested or blocked flows with the reason, and never create scratch files in the worktree or the system temp folder.

Exercise the public surface

Use the project's normal setup, build, install, seed, and start commands needed to expose the current worktree. Do not run automated unit, integration, or end-to-end suites, linters, Validator, or CI.

  • Operate web, mobile, desktop, and terminal UIs through their real interface.
  • Call APIs through their documented HTTP, SDK, or CLI surface as a client would.
  • Invoke CLIs and libraries through their public commands or APIs.
  • Trigger background behavior through its normal entry point and inspect the observable result.

For each selected flow, verify resulting state rather than trusting an agent assertion or successful command exit. Continue through independently testable flows after finding a defect; stop only when the problem makes remaining flows unreachable, unsafe, or untrustworthy.

For any tested UI flow, capture a meaningful stable screenshot under the caller's evidence directory. Capture more than one only when multiple states are necessary to understand the flow. Record what the reviewer should notice and a concise text equivalent. For non-visual surfaces, retain a sanitized request/output excerpt or comparable client-visible evidence.

Report

Return a concise report containing:

  • checked-out HEAD as context;
  • each selected flow, action, expected result, observed result, and evidence;
  • clear defects with reproduction steps and affected flows;
  • product, scope, or design ambiguity separated from defects;
  • what was deliberately not exercised, and why;
  • untested or blocked flows and practical limitations;
  • the scratch folder used and, when this skill created it, confirmation that it was removed.

Write the same report to a caller-specified path when requested. Do not create status markers or machine-control files.

Do not fix defects, modify approved artifacts, commit, push, wait for CI, inspect PR state, or claim human acceptance. The caller decides how findings are handled and whether targeted verification is needed after a fix.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.