/robot-automation:analyze-test-codebasefrom robot-automation
Use 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.
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.
Scan and analyze an existing Robot Framework test codebase to understand its conventions, configuration, and patterns before writing new tests.
Locate Robot Framework configuration — search for robot.toml, pyproject.toml (look for [tool.robotframework], robotframework, robotframework-browser dependencies), requirements*.txt, and any __init__.robot suite-init files.
Extract configuration details:
outputdir — where run artifacts gotags (include/exclude)listeners — custom observers for setup, teardown, reportingvariables.py or .env loading — source of environment-derived variablesLibrary Browser import options (auto_closing_level, jsextension, etc.)pabot configuration if parallel execution is usedpackage.json, Makefile, tox.ini, or shell wrappersScan suite directory structure:
Glob for tests/**/*.robot, **/__init__.robot, resources/**/*.resource
*.robot vs suite_*.robot)Detect patterns in existing suites — read 2-3 representative .robot files and identify:
Get Element By Role / Get Element By Label / Get Element By Test Id, explicit css= / xpath= / text= / id=, or legacy mixed forms (flag raw XPath as a risk)Wait For Elements State, Wait For Response, any Sleep (flag these)*** Settings *** / *** Variables *** / *** Keywords *** / *** Test Cases *** order, suite-level DocumentationVariables variables.py, external YAML/CSV, fixtures loaded via listenersResource imports, any BasePage-style shared resourcestorageState, Suite Setup Log In, per-test login, hard-coded credentialslibraries/ or lib/, custom keyword decorators--listener arguments in robot.toml / scripts, custom reporting or cleanup hooksRoute URL, Intercept Requests, custom proxy wrappersTake Screenshot, image-diff keywords, external visual toolsrobotframework-aiolib, axe integrations, custom a11y keywordsNew Browser types / headless flags driven by --variable BROWSER:...--rerunfailed, test-level [Tags] retry, listener-based retriespabot scripts, suite-level vs test-level parallelismCheck for supporting infrastructure:
resources/ or keywords/ directorieslibraries/ or lib/ with Python keyword modules.env or .env.test files (test-specific environment configuration)variables.py or variables/**/*.yaml.github/workflows/, Jenkinsfile, gitlab-ci.yml)auth/*.json) produced by Save Storage Statescreenshots/, baselines/) for visual regressiondocker-compose for test environment setupGenerate report — output a structured summary:
## Test Codebase Analysis
### Framework
- **Robot Framework** version X.Y.Z
- **Browser library** version X.Y.Z (`rfbrowser init` has/has not been run)
- Config: `robot.toml` / `pyproject.toml`
- Suite directory: `tests/`
### Conventions
- File naming: `*.robot`
- Locator preference: `Get Element By Role` > `Get Element By Label` > `Get Element By Test Id`
- Structure: one suite per feature under `tests/<feature>.robot`
- Shared keywords: `resources/common.resource`, `resources/<feature>.resource`
- Custom libraries: Python modules under `libraries/`
### Auth
- Method: persisted browser state (`auth/user.json`)
- Login keyword: `Log In As Default User` in `resources/auth.resource`
### Existing Coverage
- Total suite files: N
- Feature areas covered: [list]
- Total test cases: ~N
### Network Mocking
- Method: `Route URL` / custom proxy / none
- Patterns: [list any existing mocking keywords]
### Visual Testing
- Enabled: Yes/No
- Tool: Browser `Take Screenshot` + baselines / third-party / none
- Baseline directory: [path if exists]
### Accessibility Testing
- Enabled: Yes/No
- Tool: axe / custom keywords / none
### Cross-Browser & CI
- Browser variants: [list from launch config]
- Retries: [strategy — `--rerunfailed`, listener, none]
- Parallelism: `pabot` / sequential
- CI platform: GitHub Actions / Jenkins / none detected
- Trace: [trace/screenshot settings from `New Context`]
### Recommendations for New Tests
- Follow existing `*.robot` naming
- Reuse keywords from `resources/common.resource`
- Import variables from `variables.py`
- Use `${BASE_URL}` for navigation (no hardcoded domains)
- Auth: reuse existing persisted state setup
docs/qa/conventions.yaml — in addition to the human-readable report, produce a strict, versioned conventions artifact for downstream skills to read. Validate it against plugins/robot-automation/schemas/conventions.schema.json. If no Robot project is present, stop and note that analysis could not infer conventions from history; only suggest the optional external scaffold repository if a greenfield bootstrap is requested.This skill only reads and reports on the codebase. For related tasks, use the appropriate skill:
| Task | Skill |
|---|---|
| Shared live-site exploration and evidence capture | capture-feature-evidence |
| Deciding what to test, coverage gaps, priorities | plan-test-coverage |
Writing or modifying executable .robot code | write-robot-code |
| Diagnosing flaky or failing tests | fix-flaky-tests |
/analyze-test-codebase
/analyze-test-codebase ./my-app
What 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`.
/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).