/robot-automation:add-robot-testsfrom robot-automation
THE DEFAULT ENTRY POINT for the Robot Framework execution layer in the split testing suite. Use to add, create, or set up Robot Framework end-to-end tests for a feature, page, or application. It orchestrates the Robot-specific workflow after shared exploration and planning: analyze the `.robot` codebase, consume `docs/qa/feature-map.md`, `docs/qa/exploration-report.md`, `docs/qa/coverage-plan.md`, and `docs/qa/test-cases/*.md`, write production-grade `.robot` suites, review them, and verify them with real execution. Delegates to `analyze-test-codebase`, `write-robot-code`, `review-test-code`, and `fix-flaky-tests`, while relying on shared `map-feature-scope`, `capture-feature-evidence`, `plan-test-coverage`, `generate-test-cases`, and `review-test-cases`.
Ships in robot-automation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Go from feature request to verified Robot Framework tests while honoring the new suite layering:
capture-feature-evidence owns live product exploration and evidence capturetest-analysis owns coverage planning, spec generation, and spec reviewrobot-automation owns Robot-specific analysis, authoring, code review, and flake repairParse the target URL and feature description from: $ARGUMENTS
Derive a feature slug from the feature description (for example, "Login flow" -> login).
Use this slug for file naming throughout (tests/<slug>.robot, resources/<slug>.resource).
Follow the workflow or runtime task-tracker protocol when one is present. Keep tasks granular enough
that each gate, artifact refresh, .robot implementation step, failure-triage verdict, and rerun has
a clear status. If no tracker tool is available, maintain the same information in execution notes
instead of inventing a tool call.
Before planning or coding, understand the Robot codebase, the shared artifacts, and the execution constraints.
robot.toml, pyproject.toml with Robot
dependencies, tests/*.robot, resources/*.resource, __init__.robot, and browser-library
setup.analyze-test-codebase and follow its workflow.docs/qa/exploration-report.md if it exists.docs/qa/feature-map.md and any docs/qa/exploration/*.md files if they exist.map-feature-scope first for broad
features, then run capture-feature-evidence for each required scoped area before continuing.docs/qa/coverage-plan.md and docs/qa/test-cases/*.md files for the feature if they exist.The execution layer should not improvise product behavior that the shared exploration and planning layers were supposed to establish. If real product understanding is missing, stop and refresh the shared artifacts first.
| Activity | Skill |
|---|---|
| Shared feature decomposition before deep exploration | map-feature-scope |
| Shared exploration and blocker capture | capture-feature-evidence |
| Robot codebase analysis | analyze-test-codebase |
| Shared coverage planning | plan-test-coverage |
| Shared TC-ID spec generation | generate-test-cases |
| Shared spec review gate | review-test-cases |
Write or refactor .robot code | write-robot-code |
Review .robot code | review-test-code |
| Fix flaky or failing Robot tests | fix-flaky-tests |
Before you write Robot Framework code, make sure the shared handoff artifacts exist and are current:
docs/qa/feature-map.md for broad multi-surface featuresdocs/qa/exploration-report.mddocs/qa/exploration/*.md for mapped sub-featuresdocs/qa/coverage-plan.mddocs/qa/test-cases/<feature>.mdIf any required artifact is missing, dispatch each shared skill via a Task-tool subagent — the orchestrator coordinates, subagents produce:
map-feature-scope in a subagent when the request may span multiple routes, tabs, overlays, roles, or primary interactive surfaces. The subagent writes docs/qa/feature-map.md.SINGLE-SURFACE, run one capture-feature-evidence subagent and let it write docs/qa/exploration-report.md.MULTI-SURFACE, dispatch one fresh capture-feature-evidence subagent per sub-feature marked parallel-safe = yes, then run any parallel-safe = no rows serially once their prerequisites are satisfied. Each subagent writes docs/qa/exploration/<subfeature>.md.docs/qa/exploration-report.md as a rollup over the mapped exploration artifacts. The rollup is an index and merged summary only; it does not invent observations.plan-test-coverage to produce the coverage plan (delegate if heavy).generate-test-cases to produce TC-ID specs (delegate if heavy).review-test-cases in a fresh subagent — not the agent that authored the spec. Stop if the verdict is NEEDS REVISION.Do not jump straight to write-robot-code from a direct request when the shared artifacts are still missing. Do not browse or review-your-own-spec inline in the main agent — those are the shortcuts that have produced shallow, visibility-dominated specs.
Refine the work into granular checkpoints based on what orientation revealed. Include:
.robot implementation stepsUpdate task status as each checkpoint completes.
Once the shared artifacts are ready:
write-robot-code and implement the .robot testsDelegate implementation to subagents when the suite is large — the main orchestrator coordinates review gates and the coverage audit; the writing subagent focuses on translating specs to .robot code. Pass the relevant artifacts into each writing call:
docs/qa/feature-map.mddocs/qa/exploration-report.mddocs/qa/exploration/<subfeature>.md filesdocs/qa/coverage-plan.mddocs/qa/test-cases/<feature>.md or docs/qa/test-cases/<feature>/<subfeature>.mddocs/qa/conventions.yaml when availableIf spec review has not happened yet, dispatch review-test-cases in a fresh subagent (not the agent that authored the spec). Pass only the spec path and the exploration report path; do not pass the authoring transcript.
After write-robot-code, dispatch review-test-code in a fresh subagent (not the agent that authored the code).
NEEDS REVISION, fix blockers before execution.PASS WITH WARNINGS, fix stability-critical warnings before execution.Run the suite directly in the main agent:
robot -d results tests/<feature>.robot 2>&1
fix-flaky-tests and follow its structured workflow.mcp__plugin_agent-web-interface_browser__* access and the relevant exploration artifact. The subagent reproduces the failing user action in a real browser, compares the current DOM against the recorded evidence, and returns one of: product regression (escalate; do not paper over with test changes), selector / DOM drift (refresh exploration, then update selectors), test defect (fix .robot code, keywords, or wait idioms), environment / data (Gate 3 deferral candidate). Record the verdict in the run ledger before changing code. Do not patch selectors or insert Sleeps without this classification..robot or resource code, rerun Gate 1 if the spec or deferral set changed, and restart the Gate 3 consecutive-green counter. Do not count pre-change runs toward post-change signoff.new-only, feature-suite, or regression), whether the run is eligible for signoff, files changed since the prior run, pass/fail counts, and whether the consecutive-green counter reset.Three green runs is necessary but not sufficient. Dispatch a fresh subagent with the following inputs:
docs/qa/exploration-report.md (specifically the Element Inventory and Elements Not Yet Reached sections)docs/qa/exploration/<subfeature>.md files for mapped features.robot suite file(s)The subagent's job is to classify each inventory element as one of:
covered-functional — a test triggers the action and asserts a state changecovered-visibility-only — a test references the element but does not exercise it functionallyuncovered — no test touches the elementOutput: docs/qa/coverage-audit.md with the classification table and one of three verdicts:
A promoted TC deferred during or after execution cannot end in GREEN unless the spec and coverage plan were revised, re-reviewed, and explicitly re-baselined before Gate 4.
The Robot workflow is complete only when Gate 4 returns GREEN or YELLOW-with-acknowledgment. "Suite passed three times" is not the completion signal — the coverage audit is.
The final summary must explicitly separate:
Do not claim GREEN, "all accounted for", or "no files modified" unless the artifact chain and worktree state support those statements.
If Robot Framework + Browser library is not set up in the target project, see
references/scaffolding.md. Do not scaffold when a Robot codebase
already exists — analyze the current setup and write .robot automation in place.
If the target feature requires login, follow references/authentication.md. Never hardcode credentials.
map-feature-scope before deep exploration whenever the requested feature is broad enough to
risk one oversized browser session./add-robot-tests https://myapp.com/checkout Checkout flow with cart, shipping, and payment
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lespaceman/athena-workflow-marketplace --plugin robot-automation6 skills in this plugin
/analyze-test-codebaseUse to inspect an existing Robot Framework + Browser library codebase before writing, reviewing, or fixing tests. Covers robot.toml or pyproject config, resource files, keyword libraries, listeners, auth keywords, suite init (`__init__.robot`), tag conventions, directory structure, and emits the typed `docs/qa/conventions.yaml` contract used by downstream skills. Triggers: "understand", "check", "show me", "inspect", or "analyze" the current Robot Framework test setup, config, infrastructure, patterns, or conventions. Does NOT write or fix tests, install Robot Framework, or explore live websites.
/fix-flaky-testsThis skill should be used when a Robot Framework test (Browser library) is failing, flaky, timing out, or behaving inconsistently. It provides structured root cause analysis for: stabilizing intermittent tests, debugging timeouts, fixing race conditions, investigating local-vs-CI divergence, config drift, strict-mode ambiguity, and running repeated stability checks. IMPORTANT: If running tests with repeated runs, retries, or pabot loops to check stability, STOP and load this skill first — it has structured root cause analysis that prevents brute-force approaches. Triggers: "stabilize", "intermittent", "flaky", "keeps failing", "fails in CI", "timeout on", "race condition", "run N times to check stability", "verify Robot tests are stable". NOT for writing new tests (use write-robot-code) or analyzing setup (use analyze-test-codebase).