foundry-refactor

Official

Safe, cross-file refactoring with LSP guidance.

Authorfoundry-works
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Cross-file symbol refactoring is error-prone and time-consuming. This skill provides a safe, LSP-powered workflow that analyzes references before making changes, ensuring updates propagate correctly and reducing drift.

Core Features & Use Cases

  • Safe rename operations with complete reference updates
  • Extract function/method with reference updating
  • Move symbol across files with import updates
  • Optional dead code cleanup based on reference analysis
  • Works within a spec-driven development workflow (planning, verification, and journaling)

Quick Start

To use this skill, initiate a refactor task (rename, extract, or move) in a project with LSP support and the Claude Code environment, then follow the prompts to scope, validate references, execute changes, and verify results.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: foundry-refactor
Download link: https://github.com/foundry-works/claude-foundry/archive/main.zip#foundry-refactor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.