dev-testing-strategy

dev-testing-strategy is a skill for Claude Code from joaoguirunas/team-os. It costs 34 tokens per session (1,441 once invoked), scanned A, original, MIT.

A guide to planning tests for complex software, covering the test pyramid, coverage targets, unit, integration, and end-to-end tests, plus mocking choices.

In plain words
What is it for?
It is for designing a test plan, deciding what to test at each level, setting coverage expectations, and choosing when to use mocks.
Why use it?
It helps teams choose the right amount and type of testing instead of relying only on one kind of test.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is jest.mock('../services/stripe').

Good fit It is for designing a test plan, deciding what to test at each level, setting coverage expectations, and choosing when to use mocks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/joaoguirunas/team-os
agentmods
npx agentmods add skills/joaoguirunas/team-os/dev-testing-strategy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dev-testing-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/joaoguirunas/team-os/dev-testing-strategy/github.svg)](https://agentmods.dev/skills/joaoguirunas/team-os/dev-testing-strategy)
Your own site
<a href="https://agentmods.dev/skills/joaoguirunas/team-os/dev-testing-strategy"><img src="https://agentmods.dev/badge/skills/joaoguirunas/team-os/dev-testing-strategy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dev-testing-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/joaoguirunas/team-os/dev-testing-strategy"><img src="https://agentmods.dev/badge/skills/joaoguirunas/team-os/dev-testing-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,441 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.01441
Opus 5.5 $0.00014 $0.00576
Sonnet 5.5 $0.00007 $0.00288
Haiku 4.5 $0.00003 $0.00144

Measured 27d ago against content hash a6d7b0df3f6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dev-testing-strategy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/dev-testing-strategy/SKILL.md · 179 lines

How it starts

The opening of the file, as written. The whole thing — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Testing Strategy — Software Complexo

Pirâmide de Testes

      /E2E\           → poucos, lentos, fluxos completos
     /------\
    / Integr.\        → moderados, módulos integrados
   /----------\
  /    Unit    \      → muitos, rápidos, funções isoladas
Tipo Proporção Ferramenta
Unit ~70% Jest / Vitest
Integration ~20% Jest + supertest
E2E ~10% Playwright

Unit Tests

Testam uma função em isolamento, sem dependências externas reais.

describe('calculateDiscount', () => {
  it('should apply 10% for premium users', () => {
    expect(calculateDiscount({ price: 100, tier: 'premium' })).toBe(90)
  })

  it('should not apply discount for free users', () => {
    expect(calculateDiscount({ price: 100, tier: 'free' })).toBe(100)
  })

  it('should throw for negative price', () => {
    expect(() => calculateDiscount({ price: -10, tier: 'free' }))
      .toThrow('Price must be positive')
  })
})

Regras: Um describe por função. Um comportamento por it. Testar: happy path + edge cases + erros. Sem banco, sem API externa.

Integration Tests

Testam módulos integrados — endpoint + middleware + banco real de teste.

describe('POST /users', () => {
  it('should create user and return 201', async () => {
    const res = await request(app)
      .post('/users')
      .send({ email: '[email protected]', name: 'Test' })

    expect(res.status).toBe(201)
    expect(res.body.data).toMatchObject({ email: '[email protected]' })
    expect(res.body.meta.requestId).toBeDefined()  // requestId obrigatório
  })

  it('should return 409 when email exists', async () => {
    await createUser({ email: '[email protected]' })
    const res = await request(app)
      .post('/users').send({ email: '[email protected]', name: 'Other' })

    expect(res.status).toBe(409)
    expect(res.body.error.code).toBe('CONFLICT')
    expect(res.body.error.requestId).toBeDefined()
  })
})

Para software complexo: Usar banco real em teste — mocks de banco escondem problemas de query e migração.

Read the full file on GitHub · 179 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago Changed a6d7b0df3f6d
  2. 1mo ago Changed · +2 lines 2a72fae4aea6
  3. 1mo ago First seen · 177 lines · 34 tokens per session scan A b26c03b4f5b3

Subscribe to this mod's changes

dev-testing-strategy is a skill published in the GitHub repository joaoguirunas/team-os (5 stars, last pushed 3d ago), licensed MIT. It adds 34 tokens to every session and 1,441 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

writing-tests

Write unit, integration, and E2E tests that follow the testing pyramid, the Arrange-Act-Assert pattern, the shouldXwhenY naming convention, and meet a 75% (target 80%) branch coverage gate per supported OS. Use when the user asks to write tests, add coverage, build a test suite, fix flaky tests, or verify a feature…

Cristhianzl/claude-skills-czl · 103 tokens

testing-strategies

Strategic guidance for choosing and implementing testing approaches across the test pyramid. Use when building comprehensive test suites that balance unit, integration, E2E, and contract testing for optimal speed and confidence. Covers multi-language patterns (TypeScript, Python, Go, Rust) and modern best practices…

ancoleman/ai-design-components · 76 tokens

quinn

Proves the system works by writing and executing comprehensive test suites.

lingxling/awesome-skills-cn · 16 tokens

tdd-workflow

Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.

affaan-m/ECC · 43 tokens

test-master

Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…

Jeffallan/claude-skills · 104 tokens

memstack-development-test-writer

Use this skill when the user says 'write tests', 'add tests', 'test coverage', 'unit tests', 'integration tests', 'component tests', 'mocking', 'edge cases', or needs to generate tests with proper mocking and edge case coverage. Do NOT use for refactoring plans or database migrations.

cwinvestments/memstack · 70 tokens