pm-refactor

Create and manage refactor packets with lifecycle states and verification gates.

3|3|Updated Aug 19, 2024
One-click install
npx skills add https://github.com/AMDResearch/dh_comms --skill pm-refactor-amdresearch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pm-refactor
Source: https://github.com/AMDResearch/dh_comms/tree/main/.agents/skills/pm-refactor
Command: npx skills add https://github.com/AMDResearch/dh_comms --skill pm-refactor-amdresearch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create or manage a refactor workflow packet that preserves user-visible behavior while enabling boundary preservation, regression risk identification, and verification gates at each step.

Core Features & Use Cases

  • Create and manage a refactor packet with lifecycle states (draft, active, done).
  • Use templates and documentation to ensure traceability, risk containment, and verification across steps.
  • Coordinate changes across multiple modules with checks and validation reads.

Quick Start

Create a new refactor workflow packet under .agents/workflows/draft using the rf_<slug> naming convention, then populate dossier.md, run-log.md, handoff.md, and artifacts.md with the provided templates.

Frequently Asked Questions about pm-refactor

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

FAQPage Schema
How do I manage a code refactor workflow while preserving user-visible behavior?

A code refactor workflow preserves user-visible behavior by using a managed packet with boundary preservation, regression risk checks, and verification gates. It guides changes through draft, active, and done states to ensure traceability and rollback readiness.

What is a refactor packet and when do I need one for my codebase?

A refactor packet is a managed workflow structure that coordinates safe code changes across multiple modules. You need one when your refactor requires boundary preservation, regression risk identification, and strict verification gates to maintain traceability.

Can I use this refactor workflow for coordinating changes across multiple modules?

Yes, this refactor workflow coordinates changes across multiple modules by applying validation reads and verification checks at each step. It uses artifact tracking to ensure boundary preservation and regression risk containment throughout the process.

What's the best way to track traceability and rollback readiness during a structured refactor?

The best way to track traceability during a structured refactor is by populating dossier, run-log, handoff, and artifacts templates. These documents provide verification gates and ensure rollback readiness throughout the draft, active, and done lifecycle states.

How do I start a new refactor packet and what files do I need to create?

To start a refactor packet, create a new workflow under the draft directory using the rf_slug naming convention. You then populate dossier.md, run-log.md, handoff.md, and artifacts.md using the provided templates to establish traceability.

What are the limitations of managing refactors without verification gates and artifact tracking?

Without verification gates and artifact tracking, refactors lack regression risk identification, traceability, and rollback readiness. This increases the risk of breaking user-visible behavior when coordinating changes across multiple modules without structured lifecycle states.