refactor-test-safety-net

Refactor: Test Safety Net

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "refactor-test-safety-net" with this command: npx skills add cantagestudio/cosmicatlaspacker/cantagestudio-cosmicatlaspacker-refactor-test-safety-net

Refactor: Test Safety Net

Ensure adequate test coverage before making changes.

Pre-Refactoring Test Checklist

  1. Coverage Assessment
  • What's the current test coverage?

  • Which paths are untested?

  1. Test Types Needed

Type Purpose When Required

Unit Function behavior Always

Integration Component interaction Cross-module changes

Snapshot UI/Output structure View refactoring

Regression Known bug prevention Bug-prone areas

  1. Minimal Safety Net

Priority 1: Happy path test Priority 2: Error handling test Priority 3: Edge case test

Rules

  • Never refactor without tests on the target code

  • Add tests BEFORE changes, not after

  • Characterization tests capture behavior, not correctness

  • Run tests after each small step

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

refactor-dedupe-and-cleanup

No summary provided by upstream source.

Repository SourceNeeds Review
General

aesthetic-pattern-miner

No summary provided by upstream source.

Repository SourceNeeds Review
General

brand-guidelines-enforcer

No summary provided by upstream source.

Repository SourceNeeds Review