Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/adewale/skill-eval-harness/testing-best-practicesnpx skills add adewale/skill-eval-harness --skill testing-best-practicesgit clone --depth 1 https://github.com/adewale/skill-eval-harnessWrote 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.
[](https://agentmods.dev/skills/adewale/skill-eval-harness/testing-best-practices)<a href="https://agentmods.dev/skills/adewale/skill-eval-harness/testing-best-practices"><img src="https://agentmods.dev/badge/skills/adewale/skill-eval-harness/testing-best-practices.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00120 | $0.03455 |
| Opus 5 | $0.00060 | $0.01728 |
| Sonnet 5 | $0.00024 | $0.00691 |
| Haiku 4.5 | $0.00012 | $0.00346 |
Grade A, and why
testing-best-practices 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing Best Practices
This skill has four modes:
- Write — add tests or test-first bug fixes/features.
- Assess — review an existing suite for quality, not just coverage.
- Upgrade — strengthen weak/flaky/over-mocked tests.
- Detect — find skipped, sabotaged, fake-coverage, or gap-prone tests.
First 90 seconds
Before writing or changing tests:
- Detect language/framework from repo files and adjacent tests.
- Read nearby tests for naming, fixtures, builders, assertion style, and runner commands.
- Find the nearest validation command before broad full-suite commands.
- Identify the risk boundary: pure logic, internal component boundary, external API, UI/user journey, security boundary, or type/schema invariant.
- Classify the change and asset: behavior change vs. structure/tidying, reusable library vs. throwaway probe, customer-facing rule vs. internal helper.
- Choose the smallest useful test tier from
references/test-types.md. - Load only relevant references from the matrix below.
If the language is unsupported by a dedicated reference, follow project conventions plus the generic principles here.
Reference matrix
Always consider:
- Test type selection →
references/test-types.md - Anti-pattern detection →
references/antipatterns.md
Language/framework references:
- Python / pytest / Hypothesis →
references/python.md - TypeScript/JavaScript / Vitest/Jest/fast-check/Playwright →
references/typescript.md - Go →
references/go.md - Rust →
references/rust.md
Topical references by trigger:
- Legacy/refactor safety →
references/characterization-testing.md - Reimplementation, port, multi-language SDK, custom data structure with no reference, or approximate/probabilistic/ANN/ranking output →
references/differential-testing.md - Complex outputs, snapshots, transformation pipelines, save/load or migration roundtrips →
references/golden-file-testing.md - Time, timers, schedules, sleeps, flaky time tests, background threads/async work tests can only reach by sleeping →
references/deterministic-time.md - External APIs, recorded real responses, mock drift →
references/vcr-cassettes.md - CLI/plugin/docs registry sync →
references/doc-sync-testing.md - High coverage but escaping bugs →
references/mutation-testing.md - Small finite state spaces →
references/exhaustive-testing.md - Arithmetic/domain operators/laws →
references/mathematical-properties.md - Fixtures/builders/assertion helpers →
references/test-data-builders.md - Same invariant checked across layers, type-vs-test decisions, invalid states →
references/correctness-by-construction.md
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.
- today First seen · 242 lines · 120 tokens per session scan A 260abdee2aac
testing-best-practices is a skill published in the GitHub repository adewale/skill-eval-harness (73 stars, last pushed 5d ago), licensed MIT. It adds 120 tokens to every session and 3,455 once invoked, about $0.0006 per session on Opus 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-05.
Other skills, from other repositories
testing-setup
Analyze and create a testing strategy for native Android apps - install testing libraries, set up test infrastructure, create harnesses for unit tests, UI tests, screenshot tests, and end-to-end tests.
testing-strategies
Comprehensive testing strategy covering unit, integration, e2e, property-based, and mutation testing with practical patterns.
testing-blocks
Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how.
frontend-testing
Comprehensive frontend testing strategy covering unit, integration, E2E, visual regression, and accessibility testing.
verify
Verification loop — lint -> typecheck -> unit -> integration -> e2e.
check-coverage
Comprehensive assessment of Unit / Integration / E2E three-layer test coverage, identify gaps and provide actionable recommendations.