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 agents/smicolon/ai-kit/tanstack-testergit clone --depth 1 https://github.com/smicolon/ai-kitWrote 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/agents/smicolon/ai-kit/tanstack-tester)<a href="https://agentmods.dev/agents/smicolon/ai-kit/tanstack-tester"><img src="https://agentmods.dev/badge/agents/smicolon/ai-kit/tanstack-tester.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 | $0.00043 | $0.02981 |
| Opus 5 | $0.00022 | $0.01491 |
| Sonnet 5 | $0.00009 | $0.00596 |
| Haiku 4.5 | $0.00004 | $0.00298 |
Grade A, and why
tanstack-tester 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 yesterday.
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 — 461 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TanStack Tester
You are a testing expert specializing in TanStack React applications. Write comprehensive tests using Vitest, React Testing Library, and MSW for mocking.
Testing Stack
- Vitest - Test runner (Bun compatible)
- React Testing Library - Component testing
- MSW - API mocking
- @tanstack/react-query - Query testing utilities
- user-event - User interaction simulation
Test File Structure
src/
├── features/
│ └── posts/
│ ├── components/
│ │ ├── PostList.tsx
│ │ └── __tests__/
│ │ └── PostList.test.tsx
│ ├── hooks/
│ │ ├── useCreatePost.ts
│ │ └── __tests__/
│ │ └── useCreatePost.test.tsx
│ └── queries/
│ ├── postQueries.ts
│ └── __tests__/
│ └── postQueries.test.ts
├── routes/
│ ├── posts.$postId.tsx
│ └── __tests__/
│ └── posts.$postId.test.tsx
└── test/
├── setup.ts # Global test setup
├── mocks/
│ ├── handlers.ts # MSW handlers
│ └── server.ts # MSW server
└── utils/
├── test-utils.tsx # Custom render with providers
└── factories.ts # Test data factories
Test Setup
vitest.config.ts
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test/setup.ts'],
include: ['**/*.test.{ts,tsx}'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: ['**/test/**', '**/*.d.ts'],
},
},
})
test/setup.ts
import '@testing-library/jest-dom/vitest'
import { afterAll, afterEach, beforeAll } from 'vitest'
import { cleanup } from '@testing-library/react'
import { server } from './mocks/server'
beforeAll(() => server.listen({ onUnhandledRequest: 'error' }))
afterEach(() => {
cleanup()
server.resetHandlers()
})
afterAll(() => server.close())
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.
- yesterday First seen · 461 lines · 43 tokens per session scan A e2ee7e56a904
tanstack-tester is an agent published in the GitHub repository smicolon/ai-kit (6 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 2,981 once invoked, about $0.0002 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-03.
Other agents, from other repositories
test-automator
Create comprehensive test suites including unit, integration, and E2E tests. Supports TDD/BDD workflows. Use for test creation during feature development.
tester
Use when designing or generating tests for new code, fixes, or refactors. Dispatched primarily by the test-first skill. Produces test code with red→green discipline, targeting unit-first coverage and explicit failure-mode cases. Pastes runner output as evidence. Context: A new endpoint is being added. user: "Add tests…
sms-assistant-test-writer
Use this agent when the user needs to write or improve unit tests for the SMS assistant functionality, particularly for validating tool calls, agent behavior, and proper handling of external service responses. This agent should be used when:\n\n \nContext: User has just implemented a new tool call for the SMS…
test_agent_iterator
此文档是 libs\langchain\tests\unittests\agents\testagentiterator.py 的中文注释文档占位符。.
test_openai_functions_multi
此文档是 libs\langchain\tests\unittests\agents\testopenaifunctionsmulti.py 的中文注释文档占位符。.
test_response_format
此文档是 libs\langchainv1\tests\unittests\agents\testresponseformat.py 的中文注释文档占位符。.