discover-flows
Skill4 starsChanged 6 months agoMITView on GitHub
Black-box flow discovery — crawl a running app (no source needed), map pages/links/forms, and propose a TC-ID/P1-P2 test-case table whose step sequences feed /verify-ui unchanged. Read-only; destructive actions are flagged, never executed.
In this repository8 other files it gives its agents.
- audit-a11ySkill
- audit-page-budgetSkill
- audit-seoSkill
- check-errorsSkill
- measure-cwvSkill
- scaffold-e2eSkill
- verify-uiSkill
- visual-diffSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Before writing a verify/e2e plan: get a flow map + proposed test-case table to review, then feed the chosen flows into /verify-ui (steps …
- Distinctive: line 92
Run artifacts are saved under:
- Distinctive: line 108
Do not attempt another backend (D-024).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
/discover-flows
Single-backend skill. Calls discover_flows on the rolepod-uiproof
MCP server. No fallback (D-024).
When to use
- A running app must be tested but nobody can enumerate its flows up front — client sites, third-party apps, production WordPress reached via wplab. No source access required.
- Before writing a verify/e2e plan: get a flow map + proposed test-case
table to review, then feed the chosen flows into
/verify-ui(steps round-trip unchanged) and/scaffold-e2e.
When NOT to use
- The flows are already known (you have the source or a spec) — write
/verify-uisteps directly; a crawl only burns budget. - You need deep interaction coverage (multi-step wizards behind POST forms) — discovery is read-only and will only flag those, not walk them.
- The target is not yours to probe. Crawl only apps you are authorized to test.
Boundaries (read-only crawl)
- GET navigation only, same-origin by default. Cross-origin needs
allow_patterns;deny_patternsalways wins. - Destructive-looking actions (delete / pay / send / publish / logout, …
— English + Thai keywords, plus URL path/query patterns like
?action=delete) are classified, listed as flows flaggeddestructive: true, and never executed. - Redirects, iframes, and popups can't smuggle the crawler onto a
destructive URL: every HTTP redirect chain is pre-flighted hop-by-hop
(each Location vetted before it is ever requested), and a context-wide
navigation guard aborts in-page redirects (meta refresh / scripted),
iframe embeds, and
window.openpopups whose target is destructive or out of scope. Blocked hops surface inpage_errors. A start URL that is deny-listed or itself destructive is refused before any request. interact_forms: true(opt-in) submits GET forms only with dummy data (search/filter discovery). POST forms are never submitted — that would mutate the target.- Hard budget caps (
max_pages≤ 50,max_depth≤ 5,max_time_ms≤ 300000) with small defaults (10 / 2 / 60000). Anything truncated is reported intruncated— never silent.
Inputs
url— start URL (required).max_pages/max_depth/max_time_ms(optional) — crawl budget.allow_patterns/deny_patterns(optional) — regex URL filters.setup_steps(optional) — steps run once before the crawl (e.g. a login sequence), in the same step vocabulary/verify-uiuses. Never pass raw credentials as config — express login as steps.interact_forms(optional, default false) — opt in to GET-form submission with dummy data.report_format—json(default) |markdown(addsflow-map.md).phase(optional) — manifest phase hint; defaults tobuild(discovery produces test-plan artifacts, like/scaffold-e2e).
Outputs
flows— machine-readable flow list; each flow'ssteps/expectare/verify-ui-compatible and run unchanged (discover → verify → scaffold round-trip).test_cases— proposed table with stableTC1…ids,P1/P2priority, human-readable steps, expected result — the same convention the/scaffold-e2ehandoff uses, so parentrolepod-qaconsumes it directly andcheck-workcan grep the IDs.pages/page_errors— crawl inventory.destructive_count+ per-flowdestructive/executedflags.truncated—{hit, reasons, pages_not_visited}; budget hits are visible, never silent.report_path(flow-map.json), optionalmarkdown_path,manifest.
Process
- Build
discover_flowsinput — start with defaults; raise budget only when the first run reports truncation. - Call the tool.
- Review the test-case table with the user: confirm P1 rows, decide what (if anything) to do about flagged destructive flows.
- Feed chosen flows into
/verify-ui(steps as-is), then/scaffold-e2efor the keepers.
Evidence routing
Run artifacts are saved under:
- Standalone:
.rolepod-uiproof/artifacts/discover_<ts>_<uuid>/ - With
rolepodparent (detected via the marker file<git-root>/.rolepod/parent-activewritten by the parent's SessionStart hook):<git-root>/.rolepod/evidence/<ts>-rolepod-uiproof-discover-flows-<uuid6>/
Either way the run directory contains flow-map.json and a
manifest.json per Extension Protocol v1 (default phase: "build").
If the tool is unavailable
Surface plainly:
The
/discover-flowsskill needs the rolepod-uiproof MCP server (v0.16+), which is not currently available. Confirm the plugin is installed and up to date, then try again.
Do not attempt another backend (D-024).
Examples
Discover a small demo site
{
"url": "https://demo.example.com"
}Returns (abridged):
{
"run_id": "discover_…",
"status": "pass",
"pages_visited": 6,
"flows": [
{
"id": "flow-1",
"name": "Navigate to Pricing",
"kind": "navigation",
"destructive": false,
"executed": true,
"steps": [
{ "kind": "navigate", "url": "https://demo.example.com/" },
{ "kind": "click", "query": "Pricing" }
],
"expect": [{ "kind": "url_matches", "pattern": "/pricing" }]
}
],
"test_cases": [
{
"id": "TC1",
"priority": "P1",
"name": "Navigate to Pricing",
"steps": ["navigate https://demo.example.com/", "click \"Pricing\""],
"expected_result": "URL matches //pricing/",
"destructive": false
}
],
"truncated": { "hit": false, "reasons": [], "pages_not_visited": 0 }
}Logged-in crawl with a bigger budget
{
"url": "https://app.example.com/dashboard",
"max_pages": 25,
"max_depth": 3,
"deny_patterns": ["/admin/", "\\?action="],
"setup_steps": [
{ "kind": "navigate", "url": "https://app.example.com/login" },
{ "kind": "fill_form", "fields": [
{ "query": "Email", "value": "qa@example.com" },
{ "query": "Password", "value": "…" }
]},
{ "kind": "click", "query": "Log in" },
{ "kind": "wait_for", "condition": { "kind": "url_matches", "pattern": "/dashboard" } }
]
}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.

