retrofit-tests

Generate a structured unit-test plan with boundary-value analysis and mock scaffolding.

1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/bcmcpher/my-skills --skill retrofit-tests
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: retrofit-tests
Source: https://github.com/bcmcpher/my-skills/tree/main/plugins/programming-tools/skills/retrofit-tests
Command: npx skills add https://github.com/bcmcpher/my-skills --skill retrofit-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add focused, plan-driven unit testing to an existing codebase by prompting early test coverage and iterating one unit at a time to keep scope lean.

Core Features & Use Cases

  • Plan-first testing: outline complete coverage before coding.
  • Unit-by-unit execution: implement tests one function at a time with clear boundaries.
  • Starter scaffolds: generate a retrofit-tests-todo.md to guide testing priorities.
  • Guided workflow: supports TypeScript, Python, JavaScript, or other common languages via language references.

Quick Start

Provide a source file path and I will generate a Phase 1 retrofit-tests plan and the retrofit-tests-todo.md.

Frequently Asked Questions about retrofit-tests

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

FAQPage Schema
How do I add unit tests to an existing codebase without breaking current functionality?▼

You can retrofit unit tests by first generating a structured test plan based on boundary-value analysis, then implementing tests one function at a time. This guided workflow uses mock scaffolding to remain non-destructive to existing code.

What is boundary-value analysis and how does it apply to test planning?▼

Boundary-value analysis is a testing methodology used to create a structured unit-test plan by identifying edge cases. It guides Phase 1 planning to outline complete test coverage for an existing source file before any test code is written.

Can I use this automated test planning workflow with both Python and TypeScript source files?▼

Yes, the automated test planning workflow supports common programming languages including Python, TypeScript, and JavaScript. It uses language references to guide per-unit test execution across these different environments.

How do I generate a test plan for an existing source file step by step?▼

Provide the source file path to generate a Phase 1 retrofit-tests plan and a retrofit-tests-todo.md file. This starter scaffold outlines testing priorities and guides Phase 2 per-unit execution to build tests iteratively.

What is the best way to plan test coverage before writing any test code?▼

The best way to plan test coverage is using a plan-first testing approach that outlines complete coverage before coding. By generating a todo markdown file, you establish clear testing priorities and boundaries for each unit.

Does retrofitting unit tests one function at a time help manage testing scope?▼

Yes, retrofitting unit tests one function at a time keeps scope lean by establishing clear boundaries. This unit-by-unit execution ensures focused implementation and prevents overwhelming the testing process when adding coverage to existing code.