dev-suggest-refactoring

Analyze codebases to suggest automated refactoring opportunities using AST processing and code metrics.

3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/GDSDN/kord-aios --skill dev-suggest-refactoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-suggest-refactoring
Source: https://github.com/GDSDN/kord-aios/tree/main/src/features/builtin-skills/kord-aios/dev-workflow/dev-suggest-refactoring
Command: npx skills add https://github.com/GDSDN/kord-aios --skill dev-suggest-refactoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires chalk, inquirer, glob, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the identification and suggestion of code refactoring opportunities, improving code quality, maintainability, and performance.

Core Features & Use Cases

  • Automated Analysis: Scans codebases for common refactoring patterns like extracting methods, simplifying conditionals, and removing dead code.
  • Impact Assessment: Prioritizes suggestions based on calculated impact and configurable thresholds.
  • Use Case: A developer can run this Skill on a large module to quickly identify areas ripe for improvement, such as complex functions that could be broken down or redundant code blocks that could be consolidated.

Quick Start

Run the suggest-refactoring skill on the kord-aios-core/agents directory to find refactoring opportunities.

Frequently Asked Questions about dev-suggest-refactoring

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

FAQPage Schema
How do I automate code refactoring suggestions for large modules?

Automating code refactoring suggestions involves scanning your codebase to identify patterns like method extraction, variable extraction, and dead code removal. This approach uses AST processing and code metrics to generate targeted improvement recommendations and assess their impact.

How does AST processing identify refactoring opportunities in a codebase?

AST processing works by parsing the codebase structure to detect complex functions, redundant blocks, and dead code. It evaluates code metrics to prioritize refactoring suggestions based on calculated impact and configurable thresholds for improved maintainability.

Can I assess the impact of dead code removal and method extraction before applying changes?

Yes, you can assess the impact of dead code removal and method extraction before applying changes. The analysis calculates impact scores using configurable thresholds to prioritize refactoring suggestions, helping you focus on the most beneficial code improvements.

Does this automated code analysis tool work on specified file paths within a large project?

Yes, this automated code analysis tool works on specified file paths within a large project. You can target specific directories to quickly identify refactoring opportunities, complex functions, and redundant code blocks without scanning the entire codebase.

What are the limitations of using AST processing for automated refactoring suggestions?

Limitations of using AST processing for automated refactoring suggestions include relying on static code metrics and pattern matching, which may miss context-specific design flaws. It identifies structural improvements like method extraction but requires developer review for semantic correctness.