/robot-automation:fix-flaky-testsfrom robot-automation
This 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).
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.
Systematically diagnose and fix intermittent Robot Framework test failures.
Parse the test file path or test name from: $ARGUMENTS
docs/qa/conventions.yaml if it exists so you know the intended locator style and runtime baseline| Category | Symptoms |
|---|---|
| Timing | Timeout errors, element not ready |
| State leakage | Passes alone, fails with others |
| Data dependency | Missing or conflicting data |
| Race condition | Action and response timing mismatch |
| Locator fragility | Wrong or ambiguous element selected |
| Environment | Local vs CI divergence |
| Config drift | Missing resilience primitives, runtime no longer matches conventions |
| Strict ambiguity | Strict mode fails because a locator now matches multiple elements |
| Evidence gap | Current DOM, viewport, or label behavior no longer matches exploration, so the next change would be guesswork |
Investigate based on the category:
run_on_failure, missing RetryFailed, wrong PABOTQUEUEINDEX, missing viewport or tracing pins, divergence from conventions.yamlparent= or >>force=True, JS-dispatched clicks, coordinate clicks, page-wide text oracles, or other workaround-heavy guesses. Refresh browser evidence first.| Category | Principle |
|---|---|
| Timing | Replace Sleep with event-driven waits and retrying assertions |
| State isolation | Unique data per test, cleanup, no shared mutable state |
| Race condition | Use Promise To + action + Wait For |
| Locator | Scope with parent= or >>, avoid positional selectors |
| Environment | Pin viewport, locale, timezone, and block interfering third-party scripts |
| Config drift | Add missing brownfield resilience primitives in place and rewrite docs/qa/conventions.yaml |
| Strict ambiguity | Keep strict mode on and narrow the locator |
| Evidence gap | Re-explore the live DOM at the execution conditions before changing the test |
Evidence-sensitive workarounds are not normal fixes. Treat these as last-resort options that require fresh browser evidence or explicit reviewer/operator acceptance:
force=Truecss= or xpath= fallbacks adopted only because semantic selection failedReport:
pabotSleep>> nth=0skip instead of fixing--rerunfailed without a root-cause fixforce=True to hide actionability issuesRun Keyword And Ignore Error around assertionsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lespaceman/athena-workflow-marketplace --plugin robot-automation6 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.