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 skills add subhansh-dev/agent-maxxing --skill testing-patternsgit clone --depth 1 https://github.com/subhansh-dev/agent-maxxingWrote 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/subhansh-dev/agent-maxxing/testing-patterns)<a href="https://agentmods.dev/skills/subhansh-dev/agent-maxxing/testing-patterns"><img src="https://agentmods.dev/badge/skills/subhansh-dev/agent-maxxing/testing-patterns/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.
<a href="https://agentmods.dev/skills/subhansh-dev/agent-maxxing/testing-patterns"><img src="https://agentmods.dev/badge/skills/subhansh-dev/agent-maxxing/testing-patterns.svg" alt="Reviewed on agentmods" width="80" 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.00023 | $0.00510 |
| Opus 5.5 | $0.00009 | $0.00204 |
| Sonnet 5.5 | $0.00005 | $0.00102 |
| Haiku 4.5 | $0.00002 | $0.00051 |
Grade A, and why
testing-patterns 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 2mo 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.
What it actually says
Testing Patterns
What to Test
Always Test
- Happy path (the main use case)
- Edge cases (null, empty, 0, negative, max values)
- Error paths (what happens when things fail)
- Integration points (API calls, database, file I/O)
Don't Bother Testing
- Simple getters/setters
- Framework code you don't own
- Implementation details (test behavior, not implementation)
- Trivial utilities with no logic
Test Structure
describe('UserService', () => {
describe('createUser', () => {
it('creates a user with valid data', () => { ... })
it('rejects duplicate emails', () => { ... })
it('hashes the password', () => { ... })
it('returns user without password field', () => { ... })
})
})
Pattern: describe the unit, it describes the behavior in plain English.
Test Pyramid
/ E2E \ ← Few, slow, high confidence
/ Integration \ ← Some, medium speed
/ Unit Tests \ ← Many, fast, focused
- Unit tests: 70% — test individual functions
- Integration tests: 25% — test modules working together
- E2E tests: 5% — test the full user journey
Common Patterns
Arrange-Act-Assert
// Arrange: set up the test data
const user = { name: 'Test', email: '[email protected]' }
// Act: call the function
const result = createUser(user)
// Assert: check the result
expect(result).toHaveProperty('id')
expect(result.email).toBe('[email protected]')
Mock External Dependencies
jest.mock('./database', () => ({
query: jest.fn().mockResolvedValue([{ id: 1 }])
}))
Test Error Cases
it('throws on invalid input', () => {
expect(() => parseConfig(null)).toThrow('Config is required')
})
Coverage
- Aim for 80%+ line coverage
- But coverage ≠ quality — 100% coverage with no edge case tests is worthless
- Focus on covering the paths that matter most
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.
- 2mo ago First seen · 83 lines · 23 tokens per session scan A abd82ba1c1f4
testing-patterns is a skill published in the GitHub repository subhansh-dev/agent-maxxing (4 stars, last pushed 4mo ago), licensed MIT. It adds 23 tokens to every session and 510 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.
testing-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| testing-patternssubhansh-dev/agent-maxxing | Skill | 4 | 4mo ago | MIT | A | 23 | Claude Code, Codex |
| testing-patternszebbern/termstack | Skill | 4 | 7mo ago | none | A | 46 | Claude Code, Codex |
| eval-dataset-designbojieli/ai-agent-book | Skill | 61k | today | Apache-2.0 | A | 138 | Claude Code, Codex |
| test-masterJeffallan/claude-skills | Skill | 13k | today | MIT | A | 104 | Claude Code |
| verifyHmbown/CodeWhale | Skill | 41k | 2d ago | MIT | A | 25 | Claude Code, Codex |
| axiom-testingCharlesWiltgen/Axiom | Skill | 1.3k | today | MIT | A | 38 | Claude Code |
| test-generatorrshankras/claude-code-apple-skills | Skill | 923 | 23d ago | MIT | A | 33 | Claude Code |