agentleFS
sivaprasadreddysivaprasadreddy/sivalabs-agent-skills/skills/testing-strategy/SKILL.md

testing-strategy

Skill198 starsChanged 4 days agoMITView on GitHub

Create a risk-based testing strategy covering unit, integration, contract, end-to-end, security, and non-functional verification for any technology stack.

59 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use api-contract-design, deploy-checklist and 7 more.

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.
  • MohOneXSkill

    api-contract-design

    Designs and reviews API contracts (REST, RPC, GraphQL, library interfaces) for evolvability, backward compatibility, and failure semantics. Use when defining new endpoints/interfaces, versioning an API, reviewing a schema, or deciding how breaking changes propagate to clients.

    Also in 3 projects that use this

  • AnthropicSkill

    deploy-checklist

    Pre-deployment verification checklist. Use when about to ship a release, deploying a change with database migrations or feature flags, verifying CI status and approvals before going to production, or documenting rollback triggers ahead of time.

    Also in 4 projects that use this

  • xenitV1Skill

    react-patterns

    Modern React patterns and principles. Hooks, composition, performance, TypeScript best practices.

    Also in 4 projects that use this

  • AnthropicSkill

    tech-debt

    Identify, categorize, and prioritize technical debt. Trigger with "tech debt", "technical debt audit", "what should we refactor", "code health", or when the user asks about code quality, refactoring priorities, or maintenance backlog.

    Also in 4 projects that use this

  • SentrySkill

    feature-flags

    Gate a Sentry feature behind a FlagPole feature flag. Use when adding a feature flag, registering a flag in temporary.py, checking a flag from Python or the frontend, enabling a flag in tests, or asking where FlagPole rollout config lives. Trigger on "add a feature flag", "gate this behind a flag", "register a flag", "features.has", "api_expose", "OrganizationFeature", "ProjectFeature", "FlagPole".

    Also in 3 projects that use this

  • MicrosoftSkill

    error-handling

    统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。

    Also in 5 projects that use this

  • +2 more from anthropics

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 47 edited versions we read keep these.

  • 17

    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:

    Use when planning a feature, defining test layers, investigating defects, changing critical behavior, or evaluating release readiness.

    line 12
  2. Distinctive:

    Prefer tests that verify externally meaningful behavior over tests coupled to implementation details.

    line 16
  3. Distinctive:

    Use the lowest-cost test level that provides trustworthy evidence.

    line 17
  4. Distinctive:

    Keep tests deterministic, isolated, readable, and maintainable.

    line 18
  5. Distinctive:

    Avoid excessive mocking that makes tests pass while real dependencies fail.

    line 19
  6. Distinctive:

    Use realistic infrastructure for critical integration behavior when practical.

    line 20
  7. Distinctive:

    Test failure paths and boundary conditions, not only the happy path.

    line 21
  8. Distinctive:

    Treat test data, cleanup, and environment reproducibility as first-class concerns.

    line 22
  9. Distinctive:

    Do not optimize for coverage percentage alone.

    line 23
  10. Distinctive:

    Component/service integration: Verify behavior across collaborating components and real boundaries.

    line 27
  11. Distinctive:

    Contract: Verify compatibility between API or message producers and consumers.

    line 28
  12. Distinctive:

    End-to-end: Verify a small number of critical user workflows through deployed application boundaries.

    line 29
  13. Distinctive:

    Non-functional: Verify performance, resilience, accessibility, security, and capacity where relevant.

    line 30
  14. Distinctive:

    Create representative, boundary, invalid, and adversarial test cases.

    line 37
  15. Distinctive:

    Ensure tests are repeatable in local and CI environments.

    line 39
  16. Distinctive:

    Run relevant tests and report what was and was not verified.

    line 40
  17. Distinctive:

    When reporting verification, state exact commands or suites run, results, skipped checks, environmental limitations, and remaining risks.

    line 57

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

Testing Strategy

Purpose

Define how to obtain reliable evidence that application behavior meets requirements and remains correct as the system changes.

When to use

Use when planning a feature, defining test layers, investigating defects, changing critical behavior, or evaluating release readiness.

Principles

  • Derive tests from requirements, invariants, risks, and observable behavior.
  • Prefer tests that verify externally meaningful behavior over tests coupled to implementation details.
  • Use the lowest-cost test level that provides trustworthy evidence; retain higher-level tests for integration risks.
  • Keep tests deterministic, isolated, readable, and maintainable.
  • Avoid excessive mocking that makes tests pass while real dependencies fail.
  • Use realistic infrastructure for critical integration behavior when practical.
  • Test failure paths and boundary conditions, not only the happy path.
  • Treat test data, cleanup, and environment reproducibility as first-class concerns.
  • Do not optimize for coverage percentage alone; coverage is a signal, not proof of quality.

Test layers

  • Unit: Fast checks of isolated rules and transformations.
  • Component/service integration: Verify behavior across collaborating components and real boundaries.
  • Contract: Verify compatibility between API or message producers and consumers.
  • End-to-end: Verify a small number of critical user workflows through deployed application boundaries.
  • Non-functional: Verify performance, resilience, accessibility, security, and capacity where relevant.

Workflow

  1. Extract acceptance criteria and business invariants.
  2. Identify risks: financial, security, data integrity, concurrency, integrations, and user impact.
  3. Map each risk to one or more verification methods.
  4. Select test layers and define required test environments.
  5. Create representative, boundary, invalid, and adversarial test cases.
  6. Include failure, timeout, retry, duplicate, and recovery scenarios where applicable.
  7. Ensure tests are repeatable in local and CI environments.
  8. Run relevant tests and report what was and was not verified.

Test design checklist

  • Happy path and alternate valid paths.
  • Missing, malformed, oversized, and out-of-range input.
  • Authentication and authorization failures.
  • Ownership and tenant isolation.
  • Duplicate submissions and concurrent updates.
  • Dependency failures, timeouts, and partial completion.
  • Data constraints, transaction rollback, and migration behavior.
  • Pagination boundaries and large datasets.
  • Backward compatibility for supported clients.
  • Accessibility and usability for important user journeys.

Quality gates

Define project-appropriate gates such as formatting, static analysis, unit/integration tests, dependency/security scans, contract checks, and end-to-end smoke tests.

When reporting verification, state exact commands or suites run, results, skipped checks, environmental limitations, and remaining risks. Never claim tests passed if they were not 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.