ide-refactor
SolidSafe refactoring with snapshot rollback. Creates a checkpoint, performs the refactoring using LSP rename and code actions, runs tests, and rolls back automatically if anything breaks.
AI & Automation 24 stars
4 forks Updated today MIT
Install
Quality Score: 87/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# IDE Safe Refactor Workflow
## Prerequisites
1. Check if the `getToolCapabilities` MCP tool is available to you.
- **Not available** (no MCP tool by that name): stop and tell the user:
"This skill requires the Claude IDE Bridge with a connected VS Code extension. It uses LSP tools (rename symbol, code actions, references, snapshots) that have no CLI equivalent.
To use this skill:
1. Start the bridge: `npm run start-all` (in claude-ide-bridge/)
2. Ensure the Claude IDE Bridge extension is installed in your IDE
3. Use the `claude --ide` session (not remote-control)"
- **Available**: call it. If `extensionConnected` is `false`: show the same message. If `true`: proceed.
Perform refactoring with a safety net. Uses snapshots for instant rollback if tests fail after the change.
## Workflow
### Phase 1: Checkpoint
1. Use `createSnapshot` with name "pre-refactor" to capture current workspace state
2. Confirm: "Snapshot created. Starting refactoring: $ARGUMENTS"
### Phase 2: Plan the refactoring
3. Analyze what needs to change based on the description: `$ARGUMENTS`
4. Use `searchWorkspace` and `getDocumentSymbols` to identify all affected symbols
5. Use `findReferences` to map the impact across the codebase
6. Use `getCallHierarchy` to understand dependency chains
7. List all files that will be affected and confirm the plan
### Phase 3: Execute the refactoring
For symbol renames:
8. Use `refactorAnalyze` on the target symbol first:
- Retur...
Details
- Author
- Oolab-labs
- Repository
- Oolab-labs/patchwork-os
- Created
- 1 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Listed
refactor-safely
Plan and execute safe refactoring using dependency analysis
0 Updated yesterday
gdm257 Code & Development Listed
refactor-expert
Guide safe, incremental refactoring that improves code quality without changing behavior.
19 Updated 2 days ago
nguyenthienthanh Code & Development Listed
refactor
Safe multi-file refactoring with automatic rollback. Establishes a type/test baseline, plans all changes, executes file-by-file, and verifies zero regressions. Reverts if verification fails after two fix attempts. Handles renames, extracts, moves, splits, merges, and inlines.
1 Updated today
allysgrandiose674