agentleFS
nuttarujnuttaruj/rolepod-uiproof/skills/scaffold-e2e/SKILL.md

scaffold-e2e

Skill4 starsChanged 6 months agoMITView on GitHub

Generate a runnable e2e test file (playwright-test, vitest+playwright, pytest+selenium, or a Maestro YAML flow for mobile) from a scenario description plus an optional replay bundle from a prior /verify-ui run.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. JoviDeCroock/pracht★ 116same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NOT required to scaffold (only to run).

    line 49
  2. Distinctive:

    Run artifacts (the generated test file) are saved under:

    line 88
  3. Distinctive:

    Do not attempt another backend (D-024).

    line 103

≈ “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.

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

/scaffold-e2e

Single-backend skill. Calls scaffold_e2e on the rolepod-uiproof MCP server. No fallback (D-024).

When to use

  • The user asks to generate an e2e test for a flow they just verified interactively.
  • A replay bundle from /verify-ui exists and should be transcribed into a real test file.
  • A mobile target (iOS / Android / React Native / Flutter) needs a test scaffold — use framework: "maestro" to emit a Maestro YAML flow.

When NOT to use

  • A unit or integration test is sufficient — pick a closer framework manually.
  • The scenario is too vague to scaffold — ask the user to clarify before calling.

Coverage

The codegen handles every step kind and expect kind supported by /verify-ui (click, type, key, navigate, wait_for, hover, drag, fill_form, upload, dialog, set_env, switch_page, evaluate; text_visible, text_absent, url_matches, ref_in_state, no_console_errors, no_failed_requests, request_made, response_status).

Playwright-test gets first-class translation for everything that has a direct Playwright API. Pytest+selenium covers the basics; expect kinds that need network introspection (no_failed_requests, request_made, response_status) emit a TODO referencing selenium-wire or BiDi, since upstream Selenium has no network-capture primitive.

Maestro (mobile) emits a YAML flow (launchApp / tapOn / inputText / assertVisible / extendedWaitUntil / scroll), following Maestro's own conventions rather than a translation of the Playwright template. Web-only kinds (hover, switch_page, evaluate, network expects) degrade to comments instead of failing. TC-ID traceability: a TC<n> id and P1/P2 priority found in scenario_nl are carried into the filename (TC2_<slug>.yaml), the header comment, and Maestro tags — greppable exactly like the web frameworks' test names. The Maestro CLI is NOT required to scaffold (only to run); the scaffold hands off — it never auto-runs.

Inputs

  • framework — playwright-test | vitest+playwright | pytest+selenium | maestro.
  • scenario_nl — natural-language description of the scenario. For maestro, lead with the TC id and priority (e.g. "TC2 [P1] …") to preserve traceability.
  • url — entry URL. Required for the web frameworks; for maestro it marks a web flow instead of app_id.
  • app_id (maestro only) — application id of the mobile app under test (e.g. com.example.app).
  • recorded_bundle (optional) — path to a replay bundle from a prior /verify-ui run; when present, steps and expectations are transcribed.
  • filename (optional) — override the generated file name.

Outputs

  • run_id — folder under ./.rolepod-uiproof/artifacts/.
  • test_file_path — path to the generated test file.
  • language — typescript | python | yaml.
  • dependencies — packages the user needs to install (empty for maestro — the CLI is an external binary, pointed to in setup_notes).
  • setup_notes — what to run after install (for maestro: maestro test <flow.yaml>, run by the caller, never by the tool).
  • from_replay_bundle — boolean indicating whether the file was transcribed from a recorded run.

Process

  1. Build scaffold_e2e input.
  2. Call the tool.
  3. Print the generated file path and the setup steps. Surface dependencies as an install command.

Evidence routing

Run artifacts (the generated test file) are saved under:

  • Standalone: .rolepod-uiproof/artifacts/<prefix>_<ts>_<uuid>/
  • With rolepod parent (detected via the marker file <git-root>/.rolepod/parent-active written by the parent's SessionStart hook): <git-root>/.rolepod/evidence/<ts>-rolepod-uiproof-<skill>/

Either way the run directory contains a manifest.json per Extension Protocol v1 (with phase: "build" for this skill).

If the tool is unavailable

Surface plainly:

The /scaffold-e2e skill needs the rolepod-uiproof MCP server, which is not currently available. Confirm the plugin is installed and try again.

Do not attempt another backend (D-024).

Examples

Transcribe a replay bundle to a Playwright Test file

{
  "framework": "playwright-test",
  "scenario_nl": "user opens example.com and clicks Learn more",
  "url": "https://example.com",
  "recorded_bundle": ".rolepod-uiproof/artifacts/verify_…/replay.json"
}

Returns:

{
  "run_id": "scaffold_…",
  "test_file_path": ".rolepod-uiproof/artifacts/scaffold_…/user-opens-example-com-and-clicks-learn-more.spec.ts",
  "language": "typescript",
  "dependencies": ["@playwright/test"],
  "setup_notes": "Install: npm i -D @playwright/test && npx playwright install. Run: npx playwright test.",
  "from_replay_bundle": true
}

Scaffold a Maestro flow for a mobile test case

{
  "framework": "maestro",
  "scenario_nl": "TC2 [P1] user logs in with minimum boundary password",
  "app_id": "com.example.app"
}

Returns test_file_path ending in TC2_user-logs-in-with-minimum-boundary-password.yaml with the TC id in the header comment and tags, language: "yaml", empty dependencies, and setup_notes pointing at maestro test <flow.yaml> (hand-off — the caller runs it).

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.