test-writer

Generate unit, integration, and component tests with mocking and edge case coverage.

412|45|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/cwinvestments/memstack --skill test-writer-cwinvestments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-writer
Source: https://github.com/cwinvestments/memstack/tree/main/skills/development/test-writer
Command: npx skills add https://github.com/cwinvestments/memstack --skill test-writer-cwinvestments

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of thorough test suites for your codebase, ensuring higher quality software and reducing manual testing effort.

Core Features & Use Cases

  • Automated Test Generation: Writes unit, integration, and component tests based on code analysis.
  • Edge Case Coverage: Identifies and tests critical paths, boundary values, and error states.
  • Mocking: Configures mocks for external dependencies like databases and APIs.
  • Use Case: When you've finished implementing a new feature, activate this Skill to generate a complete test suite, covering all logic and preventing regressions.

Quick Start

Use the test-writer skill to generate unit tests for the src/utils/formatDate.ts file.

Frequently Asked Questions about test-writer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate unit and integration tests for an existing codebase?

You can generate unit and integration tests by analyzing your target code modules to identify untested paths, critical logic, and edge cases, then automatically producing a comprehensive test suite with proper mocking configured for external dependencies.

What is the best way to automate test generation for critical paths and edge cases?

Automating test generation for critical paths involves analyzing your code to find boundary values and error states, then creating tests that cover these edge cases while adhering to established test naming conventions to prevent regressions.

Does automated test generation support multiple languages and testing frameworks?

Yes, automated test generation supports multiple languages and frameworks by analyzing the target code structure and applying your user-defined testing priorities to create appropriate unit, integration, and component tests.

How do I configure mocking for external dependencies like databases and APIs in generated tests?

Mocking for external dependencies like databases and APIs is configured automatically during the test generation process, isolating the target code modules to ensure accurate unit and integration test coverage without requiring live external connections.

Can I generate component tests alongside unit tests for new software features?

Yes, you can generate component tests alongside unit and integration tests by analyzing the newly implemented feature code, allowing the test generation process to build a complete test suite covering all logic and preventing future regressions.