propose-refactor

Analyzes codebase for defects and writes ranked proposals to .agent/queue.md without executing changes.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/ysgdepaula/x-deep-os --skill propose-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: propose-refactor
Source: https://github.com/ysgdepaula/x-deep-os/tree/main/.claude/skills/propose-refactor
Command: npx skills add https://github.com/ysgdepaula/x-deep-os --skill propose-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes code for drift, duplication, and code smells and writes concrete refactor proposals to .agent/queue.md. Never executes the refactor.

Core Features & Use Cases

  • Scan the codebase for drift signals such as duplicated logic, mixed concerns, naming inconsistencies, dead code, and unreferenced files.
  • Prioritize findings to surface up to three proposals per run, scoring by Impact and Effort.
  • Write formatted proposals to .agent/queue.md with clear rollback and validation guidance, without touching source files.

Quick Start

Request a refactor analysis for the current project to generate concrete proposals written to .agent/queue.md.

Frequently Asked Questions about propose-refactor

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

FAQPage Schema
How do I analyze my codebase for drift and code smells without modifying source files?

A codebase drift analysis scans for duplicated logic, mixed concerns, and unreferenced files, then writes up to three prioritized refactor proposals to .agent/queue.md without modifying source files. It preserves safety by never executing changes during the audit.

What is the best way to prioritize refactoring tasks for a major version prep?

The best way to prioritize refactor tasks is by scoring findings based on Impact and Effort, surfacing up to three proposals per run. This Skill ranks drift signals and code smells to help focus on high-impact, manageable refactors first during major version prep.

How do I generate a markdown queue of actionable refactor proposals from a repository scan?

To generate a markdown queue of refactor proposals, run a repository-scoped scan that formats findings into prescribed markdown blocks with metadata. The Skill writes these proposals, complete with rollback and validation guidance, directly to .agent/queue.md.

Does this codebase audit tool support nightly automated drift detection?

Yes, this codebase audit tool supports nightly automated drift detection triggered by scheduled audits or scaffolds. It performs per-run drift detection, analyzes the codebase, and outputs formatted refactor proposals to the queue file without executing changes.

What are the limitations of automated refactor proposal generation?

A key limitation of automated refactor proposal generation is that it is strictly limited to three proposals per run and never executes refactors or modifies code. It only surfaces actionable proposals with rollback guidance, requiring manual implementation afterward.