refactor-verify

Capture baselines and verify post-refactor tests, metrics, and code state.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/alexanderjamesmcleod/makecents --skill refactor-verify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-verify
Source: https://github.com/alexanderjamesmcleod/makecents/tree/main/src/skills/development/refactor-verify.skill
Command: npx skills add https://github.com/alexanderjamesmcleod/makecents --skill refactor-verify

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pnpm, git, and includes scripts (resource) components.

What problem does it solve?

Baseline capture and post-change verification to prevent regressions during refactoring, ensuring changes remain safe and trackable.

Core Features & Use Cases

  • Baseline capture: records tests, code metrics, and git state before changes.
  • Post-change verification: re-runs tests, re-measures metrics, and reports any differences.
  • CI/IDE integration: supports usage in local workflows and CI pipelines to guard refactors.

Quick Start

Run refactor-verify before <path> to capture baseline, then refactor and run refactor-verify after <path> to validate changes.

Frequently Asked Questions about refactor-verify

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

FAQPage Schema
How do I verify a code refactor to prevent regressions?

To verify a code refactor and prevent regressions, capture a baseline of tests, metrics, and git state before changing code, then run post-change verification to compare results and generate a diff report.

What is baseline capture in refactoring and why is it needed?

Baseline capture in refactoring records your tests, code metrics, and git state before changes. It is needed to establish a reference point for post-change verification to detect regressions and track code quality differences.

How do I integrate refactor verification into a CI pipeline?

You integrate refactor verification into a CI pipeline by running the baseline capture step before changes and the verification step after. This guards refactors in automated workflows by comparing metrics and test results.

Do I need pnpm and git installed to verify refactors locally?

Yes, you need pnpm and git installed to verify refactors locally. These dependencies are required to record the git state, manage packages, and execute the scripts that capture baseline metrics.

What is the best way to compare code metrics before and after a refactor?

The best way to compare code metrics before and after a refactor is using an automated verification tool that records a baseline, re-measures metrics post-change, and generates a diff report with a final verdict.

Can I use this refactor verification for local development workflows?

Yes, you can use this refactor verification for local development workflows. It applies to both local IDE environments and CI pipelines to safely compare pre- and post-refactor results across tests and metrics.