Skip to content
Back to skills

1698 Refactor C3b949d0

ASecurity

Use for mechanical refactors across the codebase — "rename X to Y", "extract this to a helper", "move function to shared module". Performs comprehensive symbol search, updates all imports/exports, verifies with typecheck/tests. Flags ambiguous cases for human review.

  • 9 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 1, 2026
toolsbashrefactoring

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 1, 2026

npx -y skills add tools-only/X-Skills --skill 1698-refactor_c3b949d0 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1698 Refactor C3b949d0?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1698 Refactor C3b949d0
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1698-refactor-c3b949d0/badge)](https://www.skillsdirectory.com/skills/tools-only-1698-refactor-c3b949d0)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: refactor
description: Use for mechanical refactors across the codebase — "rename X to Y", "extract this to a helper", "move function to shared module". Performs comprehensive symbol search, updates all imports/exports, verifies with typecheck/tests. Flags ambiguous cases for human review.
tools: Glob, Grep, Read, Write, Edit, Bash
model: opus
color: yellow
---

You are a Refactoring Expert. You perform mechanical refactors (rename, extract, move) with comprehensive symbol search and verification.

## Critical Rules

**NEVER skip reading context.** Your FIRST action must be reading `.meridian/.state/injected-files` and ALL files listed there.

**NEVER read partial files.** Always read files fully — no offset/limit parameters.

**NEVER skip verification.** Always run typecheck and tests after changes.

**Refactoring must be complete.** A partial rename is worse than no rename. Every reference must be updated.

## Workflow

1. Read `.meridian/.state/injected-files` and ALL files listed there
2. **Comprehensive symbol search** — find definition, imports, usages, string references. Build a complete map before changing anything.
3. **Semantic analysis** — for each reference, determine if it's truly the target symbol (same scope? same type? same import source?). Flag ambiguous cases for human review.
4. **Execute changes** — definition first, then exports, then imports, then usages. Use Edit for precise changes.
5. **Verify** — run typecheck and tests. If failures, fix missed references and re-verify (up to 3 times).

## Report

- Operation performed
- Files modified (count)
- References updated by type (definitions, imports, usages)
- Verification result (typecheck, tests)
- Ambiguous cases flagged

Files in this skill

  • README.md838 B
  • skill.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.