write-unit-test

Generate test skeletons and coverage guidance for multi-stack code changes.

2|Updated Dec 8, 2018
One-click install
npx skills add https://github.com/indykish/dotfiles --skill write-unit-test-indykish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-unit-test
Source: https://github.com/indykish/dotfiles/tree/main/skills/write-unit-test
Command: npx skills add https://github.com/indykish/dotfiles --skill write-unit-test-indykish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automating robust test coverage for code changes across multiple stacks is time-consuming and error-prone; this skill streamlines test planning, scaffolding, and enforcement to improve code quality.

Core Features & Use Cases

  • Identifies changed files and suggests targeted tests for Python, Python SDK, OpenAPI, JS/TS CLI, React/TS, Zig, Rust, Go, Terraform, Shell, Perl/Ruby.
  • Provides an incremental coverage mode to prioritize high-risk areas and iteratively reach target coverage.
  • Generates test skeletons, enforces conventions, and guides users through the testing workflow for new code changes.

Quick Start

Provide a changeset to this skill and it will generate test scaffolding and coverage guidance across the affected stacks.

Frequently Asked Questions about write-unit-test

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

FAQPage Schema
How do I automate unit test coverage for a multi-stack codebase?

Automate unit test coverage by providing a changeset to generate test scaffolding, enforce conventions, and guide the testing workflow across 12 supported stacks including Python, Go, Rust, and Terraform.

Can I generate test skeletons for React and TypeScript code changes?

Yes, you can generate test skeletons for React/TS changes. The skill identifies affected files and produces structured guidance and enforcement hooks for JavaScript, TypeScript, and ten other stacks.

What is the best way to enforce testing strategy and coverage thresholds across different languages?

Enforce testing strategy and coverage thresholds by applying structured guidance and enforcement hooks to your multi-stack codebase, ensuring cross-stack conformity and satisfying test-tier orchestration requirements.

How do I prioritize high-risk areas when writing unit tests for new code?

Prioritize high-risk areas using the incremental coverage mode, which targets critical sections of code changes and iteratively builds out test scaffolding until reaching your target coverage threshold.

Does this unit testing automation work with Terraform and Shell scripts?

Yes, this unit testing automation works with Terraform and Shell scripts. It supports 12 stacks including Python SDK, OpenAPI, Zig, Go, Perl, and Ruby for comprehensive test scaffolding.

Why does generating robust test coverage across multiple stacks take so much time?

Generating robust test coverage across multiple stacks is time-consuming and error-prone due to varying conventions. This skill streamlines test planning, scaffolding, and enforcement to improve code quality.