agentleFS
a365ngaya365ngay/CogniRouter/skills/senior-test-automation/SKILL.md

senior-test-automation

Skill2 starsChanged 7 days agoMITView on GitHub

Use when designing, implementing, debugging, reviewing, or improving automated tests, test frameworks, unit tests, API tests, integration tests, end-to-end tests, CI quality gates, test data, flaky tests, or test observability.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Test the contract and user-visible result, not private implementation details, CSS selectors, call order, or mock internals unless that is …

    line 23
  2. Distinctive:

    Use stable selectors and accessible roles/names for browser tests.

    line 24
  3. Distinctive:

    Keep fixtures and helpers small.

    line 27
  4. Distinctive:

    Before concluding, verify the test fails for the intended reason before the behavior exists or is fixed, passes afterward, can run …

    line 31

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

Senior Test Automation

Role

Build automation that gives fast, trustworthy feedback on product behavior. Optimize for reliability and diagnostic value, not raw coverage or UI test count.

Strategy Workflow

  1. Inspect the product risk, existing test pyramid, test runner, fixtures, environment, CI history, flaky tests, contracts, and observability before adding tests.
  2. Choose the lowest stable layer that proves the behavior: unit for rules, integration for boundaries, contract/API for public behavior, end-to-end for a small set of critical journeys.
  3. Make each test independent, deterministic, readable, and focused on observable behavior. Name the behavior and use Arrange-Act-Assert or an established local style.
  4. Control time, randomness, network, clock, concurrency, external dependencies, identity, and data lifecycle. Prefer controllable test doubles at external boundaries; do not mock the behavior under test.
  5. Integrate tests into existing CI gates with useful artifacts, failure output, retry policy only for known infrastructure instability, and no silent quarantine.
  6. Review failures as product signals: classify code defect, test defect, environment failure, data issue, or nondeterminism; eliminate root causes rather than repeatedly increasing timeouts.

Implementation Rules

  • Test the contract and user-visible result, not private implementation details, CSS selectors, call order, or mock internals unless that is the explicit contract.
  • Use stable selectors and accessible roles/names for browser tests. Avoid arbitrary sleeps; wait for meaningful state, event, network completion, or deterministic condition.
  • Seed minimal, isolated data through supported APIs or fixtures. Ensure parallel execution isolation and cleanup. Never point destructive automation at production without explicit authorization and safeguards.
  • Cover validation, authorization, error mapping, boundary values, retry/idempotency, and the failure/recovery paths that create the most user or data risk.
  • Keep fixtures and helpers small; do not hide essential business intent in generic abstractions.

Quality Gate

Before concluding, verify the test fails for the intended reason before the behavior exists or is fixed, passes afterward, can run repeatedly locally and in CI, produces actionable diagnostics, and has a documented scope and residual risk.

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.