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/nicolasyusim/better-codebase/better-testingnpx skills add NicolasYusim/better-codebase --skill better-testinggit clone --depth 1 https://github.com/NicolasYusim/better-codebaseWhat 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 | $0.00078 | $0.01191 |
| Opus 5 | $0.00039 | $0.00596 |
| Sonnet 5 | $0.00016 | $0.00238 |
| Haiku 4.5 | $0.00008 | $0.00119 |
Grade A, and why
better-testing 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Protect critical behavior with trustworthy tests
Build confidence that meaningful changes are safe. Optimize for defect detection, behavioral contracts, useful failures, and maintainable feedback—not test count or coverage theater.
Own behavioral protection
Own test strategy, test selection, assertions, fixtures, doubles, suite boundaries, determinism, failure diagnostics, and testability signals.
Treat difficult testing as evidence that may point to an architecture or maintainability problem. Assign the root cause to the appropriate owner rather than prescribing test-only workarounds.
Review workflow
1. Map critical behavior
Identify public contracts, business rules, state transitions, data boundaries, permissions, error behavior, integration points, concurrency or transaction semantics, and high-cost failure paths.
Map each critical behavior to the narrowest trustworthy test layer:
- unit tests for deterministic policy and transformations;
- integration tests for storage, frameworks, queues, files, and service adapters;
- contract tests for consumer/provider or protocol compatibility;
- end-to-end tests for a small set of indispensable user or system paths;
- characterization tests for behavior that must be preserved during refactoring.
Do not infer importance from existing test density. Untested code may be critical; heavily tested helpers may not be.
2. Inspect the suite as evidence
Run the narrowest safe test commands available. Inspect failures, duration, retries, skips, quarantine, and environment requirements.
Investigate:
- critical behavior with no executable protection;
- only happy-path coverage where failure modes have meaningful consequences;
- assertions that prove a call happened but not the resulting behavior;
- tests coupled to private methods, call order, internal data structures, or incidental rendering;
- mocks that recreate the implementation and allow integrations to drift;
- snapshots so broad that reviewers cannot see semantic changes;
- non-deterministic time, randomness, shared state, ports, ordering, or external services;
- tests that pass individually but fail in suites or depend on execution order;
- slow setup repeated unnecessarily or end-to-end tests used for cheap policy checks;
- vague names and failures that do not identify the broken contract;
- duplicated fixtures that encode inconsistent domain rules;
- skipped tests with no owner or removal condition.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2d ago First seen · 129 lines · 78 tokens per session scan A 3dcd1a4658e0
better-testing is a skill published in the GitHub repository NicolasYusim/better-codebase (1 stars, last pushed 24d ago), licensed MIT. It adds 78 tokens to every session and 1,191 once invoked, about $0.0004 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-08-31.
Other skills, from other repositories
afc:test
Test strategy and writing — unit, integration, e2e tests, coverage improvement.
moai-ref-testing-pyramid
Test pyramid strategy, coverage targets, test patterns, and quality metrics reference. Agent-extending skill that amplifies manager-develop test-creation and quality-validation work with production-grade testing patterns. NOT for: production code implementation, architecture design, DevOps, security audits.
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.
intuitive-tests
Use this skill whenever the user asks about unit test best practices, test organization, flat test suites, redundant tests, test refactors, pytest/JUnit/Jest/xUnit layout, test taxonomy, flaky tests, coverage quality, fixtures, mocks, parametrization, pruning existing UTs, or "which tests are worth keeping." It…
ccc-qa
QA workflow. Runs unit + integration + E2E tests, coverage delta, edge case enumeration, flaky test quarantine. Delegates to qa-engineer agent.
dmvcframework-testing
Use when writing or fixing tests for a DelphiMVCFramework API — integration tests that drive real HTTP against an in-process server, or unit tests around controllers. Covers the DUnitX + in-process IMVCServer + IMVCRESTClient stack, CRUD/auth/authorization test patterns, database fixtures and the console runner.…