Refactor Feature — Code Quality skill for Claude Code
Skill: Refactor a Feature (Move Code Between Layers Safely).
How to install Refactor Feature
Installs to ~/.claude/skills/ihabkhaled-nextranger-refactor-feature/SKILL.md
mkdir -p ~/.claude/skills/ihabkhaled-nextranger-refactor-feature && curl -fsSL https://raw.githubusercontent.com/ihabkhaled/NextRanger/HEAD/skills/refactor-feature.md -o ~/.claude/skills/ihabkhaled-nextranger-refactor-feature/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Feature does
Skill: Refactor a Feature (Move Code Between Layers Safely)
Use this when code sits in the wrong layer — logic in a component, fetching in a container, React in a service — or when a module needs restructuring. The layer contract is [rules/01-next-app-router-architecture.md](../rules/01-next-app-router-architecture.md); the enforcement table is `eslint/architecture.config.mjs` (`layerPolicies`). The articles module (`src/modules/articles/`) is the reference anatomy for where each kind of code
Alternatives in Code Quality
- Refactor — We are about to refactor code 1.6k ★
- Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
- Claude Command Suite — Professional slash commands for Claude Code that provide structured workflows for software development tasks 1.1k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Refactor Module
Safely refactor a Rust crate or Flutter module in GarraRUST.
Refactor Safely
Plan and execute safe refactoring using dependency analysis
TDD Loop
Implement a feature using TDD (Red-Green-Refactor) for GarraRUST.
TDD Feature
Complete TDD workflow orchestrator - RED (Sonnet) → GREEN (Haiku) → REFACTOR (Haiku) → REVIEW (Opus). Use with
SDK Skills
Agent skills for managing feature development across Sentry SDKs, following the Agent Skills open format.
Bazodiac Feature
Full feature loop — domain brief → plan → subagent execution → code review → ship (web or mobile)
Related Agents
Feature Implementer
Implement a ReviewFlow feature via TDD inside-out. Receives a validated plan (docs/plans/ .plan.md) and spec (
Zod
Safely switches between TS-only types and Zod-inferred runtime validation with preflight checks.
Refactor Cleaner
Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refa