refactor

Analyze Swift codebases to detect dead code, unused imports, and complex functions.

2|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/soliblue/cloude --skill refactor-soliblue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/soliblue/cloude/tree/main/.claude/skills/refactor
Command: npx skills add https://github.com/soliblue/cloude --skill refactor-soliblue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams improve code quality by analyzing a codebase to identify dead code, unused imports, unclear naming, duplicated logic, and overly complex functions, enabling targeted, maintainable refactors.

Core Features & Use Cases

  • Codebase analysis: Detect dead code, unused imports, ambiguous naming, and large, complex functions.
  • Actionable plan: Propose specific changes with file paths, rationale, and implementation steps.
  • Use Case: When maintaining a growing Swift project like Cloude, use this skill to reduce technical debt while preserving architecture.

Quick Start

Run the Refactor Skill against your Cloude project to receive a prioritized list of improvements and an implementation-ready plan.

Frequently Asked Questions about refactor

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

FAQPage Schema
How do I find dead code and unused imports in a large Swift codebase?

To identify duplicated logic and overly complex functions in Swift, analyze your codebase to target large legacy files. The analysis produces an implementation-ready plan with concrete changes and file paths to reduce technical debt while preserving your architecture.

How do I get an implementation-ready plan to reduce technical debt in a legacy Swift project?

To get an implementation-ready plan for reducing technical debt, analyze your Swift codebase to receive a prioritized change list. This list includes specific file paths, rationale for each change, and concrete steps ready for developer review and approval.

Does this code analysis tool work for large or legacy Swift codebases?

Yes, this code analysis tool specifically targets large or legacy Swift codebases. It detects dead code, unclear naming, and duplicated logic, then proposes concrete changes tailored to improve maintainability without altering your existing architecture.

What is the best way to detect unclear naming and complex functions in Swift?

The best way to detect unclear naming and complex functions is to run a targeted codebase analysis. This identifies ambiguous names and overly large functions, then generates a prioritized list of actionable refactors with clear justifications for your review.

Can I review and approve specific refactoring changes before they are applied?

Yes, you can review and approve specific refactoring changes before application. The analysis produces a prioritized change list with detailed rationale and concrete steps, ensuring developers maintain full control over the implementation process.