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.
git clone --depth 1 https://github.com/Pranav-Karra-3301/tuckWrote 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/rules/pranav-karra-3301/tuck/testing)<a href="https://agentmods.dev/rules/pranav-karra-3301/tuck/testing"><img src="https://agentmods.dev/badge/rules/pranav-karra-3301/tuck/testing/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/rules/pranav-karra-3301/tuck/testing"><img src="https://agentmods.dev/badge/rules/pranav-karra-3301/tuck/testing.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.00000 | $0.00428 |
| Opus 5.5 | $0.00000 | $0.00171 |
| Sonnet 5.5 | $0.00000 | $0.00086 |
| Haiku 4.5 | $0.00000 | $0.00043 |
Grade A, and why
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 3mo 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 Rules
Test Framework
- Use Vitest for all tests
- Tests mirror src/ structure in tests/
- Test files end with
.test.ts
Running Tests
pnpm test # Run all tests
pnpm test:watch # Watch mode
pnpm test:coverage # With coverage
Test Structure
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
describe('functionName', () => {
beforeEach(() => {
// Setup before each test
});
afterEach(() => {
// Cleanup after each test
});
it('should do X when given Y', () => {
const result = functionName(input);
expect(result).toBe(expected);
});
it('should throw CustomError when given invalid input', () => {
expect(() => functionName(invalid)).toThrow(CustomError);
});
});
Test Guidelines
- Test both paths - Success AND error cases
- Use temp directories - For file operations
- Mock external services - Don't hit real APIs
- Meaningful assertions - Test behavior, not implementation
- Descriptive names - "should X when Y" format
What to Test
Unit Tests
- Individual functions
- Edge cases
- Error handling
- Input validation
Integration Tests
- Command workflows
- Git operations
- File system changes
Coverage
- Aim for high coverage but prioritize meaningful tests
- Don't test implementation details
- Focus on public API behavior
Test File Location
src/lib/paths.ts -> tests/lib/paths.test.ts
src/commands/add.ts -> tests/commands/add.test.ts
NEVER
- Skip tests in PRs
- Commit failing tests
- Test private implementation details
- Leave flaky tests unfixed
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.
- 3mo ago First seen · 87 lines · 0 tokens per session scan A 72e14dd8d294
testing is a cursor rule published in the GitHub repository Pranav-Karra-3301/tuck (15 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 428 tokens. 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.
testing compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| testingPranav-Karra-3301/tuck | Cursor rule | 15 | 4mo ago | MIT | A | 0 | Cursor |
| registries-and-authvltpkg/vltpkg | Cursor rule | 578 | today | BSD-2-Clause-Patent | A | 0 | Cursor |
| spec-parsingvltpkg/vltpkg | Cursor rule | 578 | today | BSD-2-Clause-Patent | A | 0 | Cursor |
| install-build-phasesvltpkg/vltpkg | Cursor rule | 578 | today | BSD-2-Clause-Patent | A | 0 | Cursor |
| idealvltpkg/vltpkg | Cursor rule | 578 | today | BSD-2-Clause-Patent | A | 0 | Cursor |
| security-archivevltpkg/vltpkg | Cursor rule | 578 | today | BSD-2-Clause-Patent | A | 0 | Cursor |
| vlxvltpkg/vltpkg | Cursor rule | 578 | today | BSD-2-Clause-Patent | A | 0 | Cursor |