test-planner

Community

Plan and generate high-quality tests for CLI modules

Authorlinzb93
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The test-planner skill removes the effort and guesswork of designing comprehensive tests for CLI commands and business modules by analyzing design documents and source code to produce actionable test plans and executable Vitest test files.

Core Features & Use Cases

  • Design-driven analysis: Prioritizes docs/implement.md when present to infer intended behavior and business rules.
  • Code-aware planning: Falls back to index.ts or other source files for static analysis to identify branches, edge cases, and error paths.
  • Test plan generation: Produces a structured Markdown test plan covering happy paths, edge cases, and error handling.
  • Test code output: Generates Vitest-compliant tests/index.test.ts files using AAA patterns and vi.mock for external dependencies.
  • Refactor suggestions: Recommends exporting private functions or splitting large functions to improve testability when needed.

Quick Start

Ask the skill to analyze a command or module by providing its design document or source files and request a test plan plus Vitest test file generation.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: test-planner
Download link: https://github.com/linzb93/cli-tools/archive/main.zip#test-planner

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.