·write-tests
</>

write-tests

Add test coverage to existing code with correct mock patterns. Use when adding tests to untested modules, writing regression tests for bugs, or user asks to test a specific file. Handles mockReset:true, vi.hoisted(), forwarding pattern, and test app builder utilities.

8Installs·3Trend·@acedergren

Installation

$npx skills add https://github.com/acedergren/agentic-tools --skill write-tests

How to Install write-tests

Quickly install write-tests AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/acedergren/agentic-tools --skill write-tests
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: acedergren/agentic-tools.

SKILL.md

View raw

| Route handler | Test app builder + session simulation + app.inject() | | Repository | Mock DB connection + counter-based execute | | Framework plugin | Real framework instance + selective dependency mocks | | Pure utility | No mocks — test inputs/outputs directly | | Service w/ DI | Mock injected deps via forwarding pattern |

If your test runner uses mockReset: true, most examples from the internet will silently fail.

For complex TDZ cases (multiple interdependent mocks), use the globalThis registry pattern.

Add test coverage to existing code with correct mock patterns. Use when adding tests to untested modules, writing regression tests for bugs, or user asks to test a specific file. Handles mockReset:true, vi.hoisted(), forwarding pattern, and test app builder utilities. Source: acedergren/agentic-tools.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/acedergren/agentic-tools --skill write-tests
Category
</>Dev Tools
Verified
First Seen
2026-02-22
Updated
2026-03-10

Browse more skills from acedergren/agentic-tools

Quick answers

What is write-tests?

Add test coverage to existing code with correct mock patterns. Use when adding tests to untested modules, writing regression tests for bugs, or user asks to test a specific file. Handles mockReset:true, vi.hoisted(), forwarding pattern, and test app builder utilities. Source: acedergren/agentic-tools.

How do I install write-tests?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/acedergren/agentic-tools --skill write-tests Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/acedergren/agentic-tools