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 commands/thedecipherist/claude-code-mastery/testgit clone --depth 1 https://github.com/TheDecipherist/claude-code-masteryWhat 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.00014 | $0.00654 |
| Opus 5 | $0.00007 | $0.00327 |
| Sonnet 5 | $0.00003 | $0.00131 |
| Haiku 4.5 | $0.00001 | $0.00065 |
Grade A, and why
test 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 — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Tests
Generate comprehensive tests for the specified code.
Input
The user will provide one of:
- A file path:
/test src/utils/validators.ts - A function name:
/test validateEmail - Just
/test— generate tests for recently changed files
Optional flags via $ARGUMENTS:
--unit— unit tests only (default)--integration— integration tests--edge— focus on edge cases--coverage— aim for high coverage
Process
1. Detect Test Framework
Check the project for:
vitest.config.*→ Vitestjest.config.*→ Jest*.test.tspatterns → Match existing stylepytest.iniorconftest.py→ Pytestgo.mod→ Go testing
If unclear, ask the user.
2. Analyze the Code
Identify:
- Public functions/methods to test
- Input types and valid ranges
- Expected outputs
- Error conditions
- Side effects (mocking needed?)
- Dependencies (what to mock?)
3. Generate Test Cases
For each function, create tests for:
Happy Path
- Normal input → expected output
- Common use cases
Edge Cases
- Empty input ([], "", null, undefined)
- Boundary values (0, -1, MAX_INT)
- Single element collections
- Very large inputs
Error Cases
- Invalid input types
- Out of range values
- Missing required fields
- Network/IO failures (if applicable)
4. Test Structure
Follow AAA pattern:
describe('functionName', () => {
it('should return X when given Y', () => {
// Arrange
const input = { ... };
// Act
const result = functionName(input);
// Assert
expect(result).toEqual(expected);
});
});
5. Naming Convention
Test names should be readable as sentences:
should return empty array when input is emptyshould throw ValidationError when email is invalidshould call API once per unique user
NOT:
test1worksvalidateEmail test
Output
- Create test file at conventional location:
src/foo.ts→src/foo.test.tsor__tests__/foo.test.tsfoo.py→test_foo.pyortests/test_foo.py
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 · 119 lines · 14 tokens per session scan A 98d947e5c479
test is a command published in the GitHub repository TheDecipherist/claude-code-mastery (545 stars, last pushed 3mo ago), licensed MIT. It adds 14 tokens to every session and 654 once invoked, about $0.0001 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-30.
Other commands, from other repositories
handoff
Write a session handoff document for the next agent or session.
cleanup
Autonomous cleanup-loop iteration: discover ONE target → complete execution → verify → report. Runs stateless: derive from current tree; assume prior runs left it consistent.
validate-2
Run comprehensive end-to-end validation of the Remote Agentic Coding Platform including Docker, Test Adapter, Database, and full GitHub workflow execution.
build-unity
Build Unity project (WebGL, Desktop, or PSG1).
deploy
Deploy Solana program (devnet first, then mainnet).
generate-idl-client
Generate TypeScript client from Solana program IDL using Codama or Anchor.