agentleFS
asmamestasmamest/Nexus-Skills/skills/software-engineering/test-engineering/SKILL.md

test-engineering

Skill1 starsChanged 17 days agoMITView on GitHub

Design, implement, and improve automated tests for application behavior, regressions, integrations, and edge cases. Use when adding features, fixing defects, reviewing test coverage, or diagnosing failing tests.

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 13

    Distinctive

    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:

    Read the feature requirements, acceptance criteria, and existing tests.

    line 15
  2. Distinctive:

    Use descriptive names that express the behavior being verified.

    line 35
  3. Distinctive:

    Keep arrange, act, and assert steps clear.

    line 36
  4. Distinctive:

    Prefer deterministic inputs and controlled dependencies.

    line 37
  5. Distinctive:

    Use mocks only when they clarify a boundary or isolate an external dependency.

    line 38
  6. Distinctive:

    Test externally observable behavior instead of private implementation details where practical.

    line 39
  7. Distinctive:

    Run the new tests first.

    line 42
  8. Distinctive:

    Run the relevant existing test suite.

    line 43
  9. Distinctive:

    Avoid dependence on execution order, wall-clock timing, or external services unless intentional.

    line 51
  10. Distinctive:

    Avoid broad exception assertions that allow unrelated failures to pass.

    line 53
  11. Distinctive:

    Do not assert implementation details that are irrelevant to the contract.

    line 54
  12. Distinctive:

    Keep fixtures small, explicit, and reusable only when reuse improves clarity.

    line 55
  13. Distinctive:

    Use coverage reports to discover untested paths, not as the sole measure of quality.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 4 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 Engineering

Objective

Build a trustworthy test suite that detects regressions and verifies observable behavior without becoming unnecessarily slow, brittle, or difficult to maintain.

Workflow

  1. Understand the behavior
    • Read the feature requirements, acceptance criteria, and existing tests.
    • Identify inputs, outputs, state changes, side effects, and failure modes.
    • Clarify ambiguous requirements before encoding assumptions in tests.
  2. Choose the appropriate test level
    • Unit tests: isolated functions, classes, and business rules.
    • Integration tests: interactions between modules, databases, APIs, and services.
    • End-to-end tests: critical user workflows across the running system.
    • Contract tests: compatibility at service or API boundaries.
    • Performance and resilience tests: latency, throughput, resource use, and failure recovery where relevant.
  3. Cover meaningful scenarios
    • Normal and successful cases.
    • Empty, missing, malformed, and boundary inputs.
    • Invalid state transitions and business-rule violations.
    • Permission failures and unauthenticated access.
    • Dependency timeouts, errors, and unavailable services.
    • Duplicate requests, retries, and concurrency where applicable.
  4. Write maintainable tests
    • Use descriptive names that express the behavior being verified.
    • Keep arrange, act, and assert steps clear.
    • Prefer deterministic inputs and controlled dependencies.
    • Use mocks only when they clarify a boundary or isolate an external dependency.
    • Test externally observable behavior instead of private implementation details where practical.
  5. Verify the tests
    • Run the new tests first.
    • Run the relevant existing test suite.
    • Confirm that a regression test fails when the defect is reintroduced, where practical.
    • Inspect failures instead of automatically updating expected results.
    • Report skipped tests and environmental limitations honestly.

Test quality rules

  • A test should fail when the behavior it protects becomes incorrect.
  • Avoid dependence on execution order, wall-clock timing, or external services unless intentional.
  • Isolate shared state and clean up resources.
  • Avoid broad exception assertions that allow unrelated failures to pass.
  • Do not assert implementation details that are irrelevant to the contract.
  • Keep fixtures small, explicit, and reusable only when reuse improves clarity.

Coverage

Use coverage reports to discover untested paths, not as the sole measure of quality. Prioritize high-risk business logic, security boundaries, critical workflows, and known regression areas.

Final report

Summarize the behaviors covered, test levels used, commands executed, results, and important coverage gaps. Never claim that the entire suite passed if only a subset was executed.

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.