ihabkhaled

Refactor Feature — Code Quality skill for Claude Code

Code Quality community

Skill: Refactor a Feature (Move Code Between Layers Safely).

How to install Refactor Feature

Installs to ~/.claude/skills/ihabkhaled-nextranger-refactor-feature/SKILL.md

Terminal
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 Repository