/robot-automation:review-test-codefrom robot-automation
Quality review of Robot Framework test code before final execution signoff. This skill should be used when implementation review of executable `.robot` files is needed, not for diagnosis of runtime flakiness. Triggers: "review test code", "review Robot tests", "check test quality", "audit test implementation", "review my Robot tests before merging", "check .robot for issues", "review e2e tests", "code review Robot Framework", "are my tests stable", "check for brittle locators", "review before running tests". Quality gate after write-robot-code — catches wrong Browser-library dialect, brittle locators, post-action response waits, `force=True` misuse, `Sleep`, utility-class selectors, exact numeric assertions, missing teardown, parallel-unsafe mutations, hardcoded data, missing assertions, test coupling, and convention divergence. Review-only — does NOT rewrite tests, does NOT run tests. Use fix-flaky-tests for fixing, write-robot-code for rewriting.
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.
Review Robot Framework test code for stability, correctness, and adherence to project conventions before final execution signoff.
Execution context: this review must run in a fresh subagent, not the agent that authored the .robot code. The orchestrator enforces this via the Task tool; the skill documents the contract so a drifting caller can see they're breaking it. Self-review reliably misses the gaps the author anchored on — passing only the file path (not the authoring transcript) into a new Task call is the cheapest way to get an independent read.
Parse the test file path or directory from: $ARGUMENTS
If no argument is provided, search for recently modified *.robot files and review those.
.robot file or files under reviewrobot.toml or pyproject.toml.robot files not under reviewdocs/qa/conventions.yaml if it exists, validating it against plugins/robot-automation/schemas/conventions.schema.jsondocs/qa/test-cases/<feature>.md file if it existsTrack findings by severity:
Treat evidence-sensitive workarounds separately from ordinary style issues:
force=True, JS-dispatched clicks, guessed coordinate clicks, page-wide text oracles, or broad css= / xpath= fallbacks are used without fresh browser evidence at the execution conditions or without explicit reviewer/operator acceptance.| Check | What to Look For |
|---|---|
| Canonical Browser dialect | Get Element By Role / Get Element By Label / Get Element By Placeholder / Get Element By Test Id, or justified css= / xpath= / text= / id= |
| No fake selector engines | role=, label=, placeholder=, alt=, title=, testid= string prefixes are BLOCKERS unless hidden behind a deliberate custom keyword |
| No fragile positional selectors | >> nth=0, >> nth=N without documented justification |
| No dynamic IDs or classes | Generated hashes, UUID-like values, volatile classes |
| No utility framework classes | Tailwind, Bootstrap, or similar utility classes used as locators |
| Scoped where needed | Parent scoping or >> chaining used when ambiguity is possible |
| No exact long text matches | Prefer regex or shorter stable phrases |
When a locator appears suspicious, delegate a live-site spot-check to a subagent with browser access.
Mandatory re-exploration triggers:
force=True, JS clicks, coordinate clicks, page-wide text oracles, or broad fallback selectors because semantic selection failedIn those cases, report an evidence gap and require fresh browser evidence before signoff.
| Check | What to Look For |
|---|---|
No Sleep | Arbitrary delays masking timing issues |
| Proper action-response waits | Promise To Wait For Response attached before the triggering action |
| Auto-retrying assertions used | Browser-library retrying assertions instead of one-shot snapshots where timing matters |
| Reasonable explicit timeouts | Custom timeouts justified by the flow |
| No custom network-idle logic | Prefer specific waits over vague “all network done” patterns |
| Check | What to Look For |
|---|---|
| Every test has assertions | No action-only tests |
| Assertions test user outcomes | Visible text, URL, element states, expected errors |
| Assertions are specific | Concrete expected outcome, not just "visible" when richer verification is available |
| Error paths have assertions | Error tests verify the error UI |
| No exact server-computed values | Use patterns, ranges, or seeded data |
| No swallowed assertions | Run Keyword And Ignore Error around assertions is a BLOCKER |
| Action-vs-assertion balance | For each TC that claims to verify behavior, verify the test actually triggers the action (Click, Type Text, Go To, form submit) AND asserts the resulting state. A test that only calls Get Element Count or Get Text on an element the test never clicked or interacted with is visibility coverage masquerading as functional coverage — BLOCKER. Example pattern to flag: Get Element role=button[name="Save"] with no preceding Click in the same test. |
| Check | What to Look For |
|---|---|
| No shared mutable state | Tests do not depend on order |
| Proper setup and teardown | Shared setup in Suite Setup / Test Setup, not duplicated everywhere |
| Clear flow | Arrange, Act, Assert structure |
| No test coupling | Test B does not rely on Test A |
| Auth handled correctly | Reused state or shared auth keyword, not UI login in every test |
| Unique data | Unique IDs or seeded API data |
| Parallel-safe | pabot tests assert on the specific created entity, not global counts |
| Cleanup present | Persistent test data gets cleaned up |
| Check | What to Look For |
|---|---|
| TC-ID in test name | TC-<FEATURE>-<NNN> <description> |
| File naming matches project | Same suite naming convention |
| Resource imports match project | Reuse project resources |
${BASE_URL} used | No hardcoded domains |
| Resource pattern followed | Interactions in resources, outcomes in tests |
| Locator strategy matches project | Aligns with existing files and conventions.yaml |
If a spec exists:
Flag any instances of:
role= or label=Sleep>> nth=N without justificationRun Keyword And Ignore Error wrapping assertionsforce=True without documented justificationWait For Response without Promise ToGet Element, Get Element Count, or Get Text on elements the test never interacted with. A render check is not a behavior check. Either add the action (Click, Type Text, Submit Form) that the test claims to verify, or recategorize the test honestly as a smoke check and cap its count.css= or xpath= fallback substituted for a failed semantic locator without fresh browser evidence showing it is unique and stable# Test Code Review: <file or feature>
**Files reviewed:** <list>
**Total tests:** <count>
**Review date:** <date>
## Verdict: PASS | PASS WITH WARNINGS | NEEDS REVISION
## Blockers (<count>)
- **<file>:<line>** `<test name>`: <issue description>
## Warnings (<count>)
- **<file>:<line>** `<test name>`: <issue description>
## Suggestions (<count>)
- **<file>:<line>**: <issue description>
## Convention Divergences
- <How this code differs from established patterns or `conventions.yaml`>
## TC-ID Traceability
- **Implemented:** <count> / <total in spec>
- **Missing from implementation:** <list>
- **Orphaned:** <list>
## Summary
<2-3 sentences>
.robot suite, they're using the skill wrong — the orchestrator should dispatch this via the Task tool with only the test-file path and the spec path.force=True, JS clicks, guessed coordinate clicks, page-wide text/count oracles, and broad fallback selectors are blockers unless backed by fresh browser evidence, a documented platform limitation, or explicit acceptanceWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lespaceman/athena-workflow-marketplace --plugin robot-automationOther plugins' skills for the same job
6 skills in this plugin
/add-robot-testsTHE 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`.
/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.