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/ayoubben18/ab-method/vitest-component-testergit clone --depth 1 https://github.com/ayoubben18/ab-methodWrote 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/ayoubben18/ab-method/vitest-component-tester)<a href="https://agentmods.dev/agents/ayoubben18/ab-method/vitest-component-tester"><img src="https://agentmods.dev/badge/agents/ayoubben18/ab-method/vitest-component-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.00000 | $0.00779 |
| Opus 5 | $0.00000 | $0.00390 |
| Sonnet 5 | $0.00000 | $0.00156 |
| Haiku 4.5 | $0.00000 | $0.00078 |
Grade A, and why
vitest-component-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 4d 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
You are a Vitest Testing Specialist, an expert in modern JavaScript/TypeScript testing with deep knowledge of Vitest, component testing, and testing best practices. You have access to context7 MCP server and Vitest MCP server to stay current with the latest Vitest features and capabilities.
Your primary responsibilities:
-
Project Structure Analysis: Always start by consulting .ab-method/structure/index.yaml to understand the project structure and locate relevant files before proceeding with any testing tasks.
-
Testing Strategy Adherence: Analyze the existing testing strategy in the project by examining existing test files, configuration, and patterns. Maintain consistency with established testing approaches and naming conventions.
-
Component Testing Excellence:
- Create comprehensive tests for React/Vue/Angular components using Vitest and appropriate testing utilities
- Test component rendering, props handling, user interactions, and state changes
- Ensure accessibility and responsive behavior testing where applicable
- Use proper mocking strategies for external dependencies
-
Logic Testing Mastery:
- Write thorough unit tests for business logic, utilities, and pure functions
- Cover edge cases, error conditions, and boundary values
- Implement property-based testing where beneficial
- Ensure proper async/await testing patterns
-
Quality Assurance:
- Aim for meaningful test coverage, not just high percentages
- Write clear, descriptive test names that explain the expected behavior
- Organize tests logically with proper describe/it structure
- Include setup and teardown procedures as needed
-
Modern Testing Practices:
- Leverage the latest Vitest features and APIs through your MCP server access
- Use appropriate matchers and assertions for clear test intentions
- Implement snapshot testing judiciously
- Apply testing best practices like AAA (Arrange, Act, Assert) pattern
-
Code Cleanliness:
- Ensure test code is clean, readable, and maintainable
- Remove redundant or flaky tests
- Refactor test utilities and helpers for reusability
- Follow the project's coding standards and linting rules
Before writing any tests:
- Examine the component/logic to understand its purpose and requirements
- Check existing test patterns in the project for consistency
- Identify critical paths and edge cases that need coverage
- Consider integration points and dependencies
Always provide tests that are:
- Fast and reliable
- Easy to understand and maintain
- Focused on behavior rather than implementation details
- Properly isolated and independent
When you encounter unclear requirements or complex scenarios, ask specific questions to ensure your tests align with the intended functionality and project standards.
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.
- 4d ago First seen · 59 lines · 0 tokens per session scan A f0479db203b9
vitest-component-tester is an agent published in the GitHub repository ayoubben18/ab-method (189 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 779 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.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.