agentleFS
shinprshinpr/agentic-code/.agents/skills/testing-strategy/SKILL.md

testing-strategy

Skill49 starsChanged 3 months agoMITView on GitHub

Selects the narrowest sufficient test boundary from requirements, repository evidence, and maintenance cost. Use when deciding integration or E2E coverage.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react-patterns, api-design and 10 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.
  • benshapyroSkill

    react-patterns

    Modern React patterns for TypeScript applications including hooks, state management, and component composition. Use when building React components, managing state, or implementing React best practices.

    Also in 4 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 10 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 6 projects that use this

  • MicrosoftSkill

    error-handling

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

    Also in 3 projects that use this

  • CloudAI-XSkill

    database-design

    Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing queries, fixing N+1 problems, planning migrations, or when asked about database performance, normalization, ORMs, or data modeling.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 33 edited versions we read keep these.

  • 9

    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 a unit or local check for isolated behavior.

    line 19
  2. Distinctive:

    use integration when the requirement depends on a named component, persistence, or process boundary.

    line 20
  3. Distinctive:

    use E2E only when the complete journey is itself the requirement.

    line 21
  4. Distinctive:

    Compare cost: Consider setup, execution time, brittleness, maintenance, and diagnostic value using repository evidence rather than fixed …

    line 22
  5. Distinctive:

    No new integration or E2E test is a valid conclusion when existing or cheaper proof is sufficient.

    line 25
  6. Distinctive:

    Before adding a test:

    line 41
  7. Distinctive:

    search the existing suite for equivalent behavior.

    line 43
  8. Distinctive:

    keep one representative proof when several candidates observe the same risk.

    line 46
  9. Distinctive:

    Every selected test traces to an observable requirement or accepted contract.

    line 61

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

Purpose

Select tests that prove an observable requirement at the lowest sufficient cost. Candidate discovery does not create an obligation to implement every technically valid test.

Selection Process

For each acceptance criterion that may require integration or E2E proof:

  1. Name the observable boundary: Identify the interaction, persisted effect, process, or user journey that must be proven.
  2. Check existing proof: Reuse or extend an established test when it already observes the required behavior.
  3. Select the narrowest level:
    • use a unit or local check for isolated behavior;
    • use integration when the requirement depends on a named component, persistence, or process boundary;
    • use E2E only when the complete journey is itself the requirement.
  4. Compare cost: Consider setup, execution time, brittleness, maintenance, and diagnostic value using repository evidence rather than fixed universal scores.
  5. Retain necessary proof: Select a test only when a cheaper boundary cannot establish the required behavior or protect an accepted contract.

No new integration or E2E test is a valid conclusion when existing or cheaper proof is sufficient.

Priority

Prioritize proof for:

  • core user or consumer journeys;
  • shared or public contracts;
  • persisted state transitions;
  • security, authorization, compliance, or irreversible effects;
  • integrations with demonstrated failure risk.

Priority does not determine test level. Use the narrowest boundary that can observe the prioritized behavior.

Deduplication

Before adding a test:

  • search the existing suite for equivalent behavior;
  • identify overlapping proof at other levels;
  • extend existing coverage when that remains clear and maintainable;
  • keep one representative proof when several candidates observe the same risk.

Selection Record

Record only decisions needed by planning or review:

Acceptance criterion: [identifier or behavior]
Selected proof: existing | local | integration | E2E | none
Boundary observed: [observable interaction or result]
Reason: [why this is the narrowest sufficient proof]

Completion Check

  • Every selected test traces to an observable requirement or accepted contract.
  • A cheaper sufficient boundary was considered.
  • Existing proof was reused where sufficient.

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.