refactor-scan

Analyze code for refactoring opportunities and report issues with severity and suggestions.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Objective-Arts/lens-dist --skill refactor-scan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-scan
Source: https://github.com/Objective-Arts/lens-dist/tree/main/skills/refactor-scan
Command: npx skills add https://github.com/Objective-Arts/lens-dist --skill refactor-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill identifies potential code quality issues and refactoring opportunities without making any actual changes to the codebase.

Core Features & Use Cases

  • Code Analysis: Scans code against predefined criteria for common anti-patterns and quality metrics.
  • Issue Reporting: Clearly lists identified issues with severity, location, and suggested fixes.
  • Refactoring Plan: Outlines the steps a /refactoring command would take to address the issues.
  • Use Case: Before committing to a large refactoring effort, use this Skill to get a clear, actionable report of what needs attention in your codebase.

Quick Start

Run refactor-scan on the current directory to identify code quality issues.

Frequently Asked Questions about refactor-scan

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

FAQPage Schema
How do I analyze code for refactoring opportunities without modifying files?

Code analysis for refactoring scans your codebase against predefined criteria to identify issues like long functions, high complexity, vague names, and AI antipatterns without modifying files. It reports findings with severity and suggests actionable improvements.

What specific code quality issues can static analysis detect before a refactoring effort?

Static analysis for refactoring detects common anti-patterns and quality metrics including long functions, high complexity, vague names, and AI antipatterns. It clearly lists identified issues with severity, location, and suggested fixes.

Can I use code analysis to generate a refactoring plan for my project?

Code analysis can generate a refactoring plan by outlining the steps a refactoring command would take to address the identified issues. It provides a clear, actionable report of what needs attention in your codebase.

What is the best way to check code maintainability before committing to large changes?

The best way to check code maintainability is running a scan on your current directory to identify code quality issues. This provides an actionable report of what needs attention before you commit to large changes.

Does code refactoring analysis require any external dependencies or setup?

Code refactoring analysis requires no external dependencies or setup. You can run it directly on your current directory to immediately identify code quality issues and refactoring opportunities.