refactor

Analyze codebases for duplication, security issues, and structural improvements.

1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/matteobortolazzo/claude-tools --skill refactor-matteobortolazzo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/matteobortolazzo/claude-tools/tree/main/ccflow/skills/refactor
Command: npx skills add https://github.com/matteobortolazzo/claude-tools --skill refactor-matteobortolazzo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze codebases to identify duplication, security issues, and structural improvements, and to propose actionable refactor tickets that streamline maintenance.

Core Features & Use Cases

  • Context loading from project config to tailor analysis for each repo.
  • Multi-phase analysis (duplication, security, structure) with consolidated findings and ticket suggestions.
  • Monorepo-aware scope handling, per-project conventions, and automated ticket creation guidance.

Quick Start

Run /ccflow:refactor in your project to begin a multi-stage refactor analysis and ticket generation workflow.

Frequently Asked Questions about refactor

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

FAQPage Schema
How do I detect code duplication and security issues across a monorepo?

Code duplication and security issues across a monorepo are detected by coordinating multi-phase analyzers on collected file metadata. The system loads project configuration, scopes analysis via explicit paths or recent changes, and outputs structured findings with actionable refactor tickets.

What is the best way to generate actionable refactor tickets for structural code improvements?

Generating actionable refactor tickets for structural improvements requires a multi-stage analysis of the codebase. The system evaluates duplication, security, and structure, then consolidates the findings into ticket suggestions that streamline maintenance.

Can I scope codebase analysis to specific paths or recent changes in a multi-project repository?

Yes, codebase analysis can be scoped to specific paths or recent changes in a multi-project repository. The system handles monorepo scope by accepting explicit paths, globs, or recent changes to produce a shared context for the analyzers.

Does monorepo refactor analysis require a specific project configuration file?

Monorepo refactor analysis requires a project configuration file named .claude/config.json. Loading this configuration allows the system to tailor the duplication, security, and structural analysis for each specific repository.

What limitations exist when analyzing structural improvements in a multi-project codebase?

Limitations when analyzing structural improvements in a multi-project codebase depend on the scope defined by explicit paths, globs, or recent changes. Analysis is constrained to the shared context produced from the loaded .claude/config.json project configuration.