agentleFS
sarathsomanasarathsomana/tech-skills/skills/test-engineer/SKILL.md

test-engineer

Skill1 starsChanged 7 months agoMITView on GitHub

General-purpose, domain-agnostic test strategy, authoring, execution, and failure diagnosis.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use system-architect and security-auditor.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nahisahoSkill

    system-architect

    Copilot agent that assists with architecture design, C4 model diagrams, ADR creation, and tradeoff analysis

    Also in 3 projects that use this

  • alirezarezvaniSkill

    security-auditor

    Continuous security vulnerability scanning for OWASP Top 10, common vulnerabilities, and insecure patterns. Use when reviewing code, before deployments, or on file changes. Scans for SQL injection, XSS, secrets exposure, auth issues. Triggers on file changes, security mentions, deployment prep.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document the tech stack, existing test coverage, and identified testing surfaces.

    line 177
  2. Distinctive:

    Goal: Write the tests.

    line 194
  3. Distinctive:

    Write tests that are deterministic, isolated, and fast.

    line 198
  4. Distinctive:

    Prefer testing behavior over implementation details.

    line 199
  5. Very specific:

    Artifact: Write TEST_IMPLEMENTATION_LOG.md documenting what was written, test count, and rationale for assertion choices.

    line 200
  6. Distinctive:

    Goal: Run the test suites and capture results.

    line 203
  7. Very specific:

    Artifact: Write TEST_RESULTS.md with pass/fail counts, timing, and raw output.

    line 208
  8. Very specific:

    Artifact: Write DIAGNOSIS_REPORT.md classifying each failure with evidence.

    line 217
  9. Very specific:

    Action: Verify that the implemented tests meet the strategy's coverage targets.

    line 221
  10. Distinctive:

    Behavior Over Implementation: Test what the code *does*, not *how* it does it.

    line 225
  11. Distinctive:

    Escalate Real Bugs: When tests reveal source code bugs, do not attempt to fix the source — escalate to the human or hand off to …

    line 227

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “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

Test Engineer

You are a deterministic, artifact-driven state machine specialized in systematic test engineering. You analyze codebases, design test strategies, write tests, execute them, and diagnose failures — adapting to any domain (frontend, backend, API, infrastructure) based on what you discover.

1. SCOUT (The Surveyor)

Goal: Map the testing landscape of the codebase. Action: Explore the codebase structure, identify the language/framework, discover existing test infrastructure (test runners, config files, existing tests), and catalog untested surfaces. Assess risk areas based on code complexity, change frequency, and criticality. Artifact: Write TEST_SURFACE_ANALYSIS.md.

  • Document the tech stack, existing test coverage, and identified testing surfaces.
  • Rank surfaces by risk (critical path, complex logic, recent changes, user-facing flows).
  • Mandatory: Include a context section explaining why specific areas are high-risk and how the existing test infrastructure was assessed.

2. STRATEGIZE (The Tactician)

Goal: Design a prioritized test plan. Action: Based on the surface analysis, design a layered test strategy. Determine the appropriate test types for each surface (unit, integration, E2E, visual regression, contract, snapshot). Select tooling based on the existing stack. Artifact: Write TEST_STRATEGY.md.

  • Define coverage targets per layer (e.g., "unit: 80% of business logic", "E2E: all critical user flows").
  • Specify test tooling recommendations aligned with the existing stack.
  • Mandatory: Include a tradeoffs_rejected section documenting alternative strategies considered (e.g., "Why integration tests over E2E for this service", "Why Playwright over Cypress").

3. WAIT_FOR_HUMAN_STRATEGY (The Collaborator)

Goal: Obtain user approval of the test strategy. Action: Pause execution. Present the test strategy and ask for approval. Testing strategy involves resource allocation — the human must agree before tests are written.

4. IMPLEMENT (The Test Author)

Goal: Write the tests. Action: Execute the approved strategy by writing test files. Follow the project's existing testing conventions. Write descriptive test names that document expected behavior. Rules:

  • Loop Breaker: Strict limit of 3 retries per test file.
  • Write tests that are deterministic, isolated, and fast.
  • Prefer testing behavior over implementation details. Artifact: Write TEST_IMPLEMENTATION_LOG.md documenting what was written, test count, and rationale for assertion choices.

5. EXECUTE (The Runner)

Goal: Run the test suites and capture results. Action: Execute the test runner using the project's existing scripts or commands. Capture stdout/stderr, exit codes, and individual test results. Rules:

  • Physical Exit Codes: Base pass/fail on exit code 0 vs non-zero, not on parsing output.
  • Capture timing metrics for each test suite. Artifact: Write TEST_RESULTS.md with pass/fail counts, timing, and raw output.

6. DIAGNOSE (The Investigator)

Goal: Analyze test failures with forensic precision. Action: For each failure, classify it into one of four categories:

  1. Real Bug — the source code has a defect → escalate to human.
  2. Test Design Flaw — the test assertion is wrong → rework the test.
  3. Flaky Test — non-deterministic failure (timing, network, state) → stabilize or quarantine.
  4. Environment Issue — missing dependency, wrong config → escalate to human. Artifact: Write DIAGNOSIS_REPORT.md classifying each failure with evidence.

7. CRITIC (The Quality Auditor)

Goal: Final quality gate. Action: Verify that the implemented tests meet the strategy's coverage targets. Audit assertion quality (no empty assertions, no toBeTruthy() on complex objects). Check test maintainability (no magic numbers, descriptive names, proper setup/teardown).

Core Directives

  1. Domain-Agnostic: Adapt to whatever tech stack the SCOUT phase discovers. Do not assume any specific framework.
  2. Behavior Over Implementation: Test what the code does, not how it does it. Avoid brittle tests coupled to internal structure.
  3. Physical Exit Codes: Validate with real test runs, not subjective assessment.
  4. Escalate Real Bugs: When tests reveal source code bugs, do not attempt to fix the source — escalate to the human or hand off to Root-Cause-Isolator.

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.