🛠️
QualityShell

Refactor Safely

by techygarg

Refactor Safely is a Quality skill for Claude Code, published by techygarg in lattice.

185 stars13 forkson techygarg/latticeAdded 2026/09/06+1% in starsRepository updated 2026/09/04
agentagent-frameworkagent-skillsagenticagentic-aiclaude-code-pluginclaude-skillsclean-architecturecodexcodex-plugincodex-skillscontext-engineeringcursor-plugindddengineering-enablementgorkkimikimi-codelatticesdlc-workflow
Install in seconds
Install Refactor Safely
Copy Refactor Safely into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/techygarg/lattice/tree/main/skills/refactor-safely ~/.claude/skills/refactor-safely

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/techygarg/lattice.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/refactor-safely/SKILL.md in techygarg/lattice
Installs to
~/.claude/skills/refactor-safely
Collection
One of 25 skills cataloged from this repository
Category
Quality1745 skills

What Refactor Safely does

Refactor Safely restructures existing code without changing externally visible behavior. It guides characterization-first refactors with context, architecture, code quality, and test guardrails.

Refactor Safely is cataloged under Quality on DirSkills. Refactor Safely comes from a repository tagged agent, agent-framework, agent-skills, agentic and agentic-ai.

Commands Refactor Safely provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /bug-fix
  • /design-blueprint
  • /review

Frequently asked about Refactor Safely

  • What else does techygarg publish alongside Refactor Safely?

    Refactor Safely is one of 25 skills that DirSkills catalogs from techygarg/lattice, the repository it ships in. Its siblings there include Architecture, Architecture Compass and Architecture Refiner. Each one is a separate skill with its own page in this directory, installs the same way Refactor Safely does, and is maintained by techygarg in that same repository. The rest of the collection is listed on the techygarg/lattice page.

  • How does Refactor Safely compare to other Quality skills?

    Refactor Safely ranks #1649 by stars among the 1745 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Refactor Safely against them. Open each page to compare what they document and how they install.

More from techygarg/lattice

Refactor Safely is one of 25 skills cataloged on DirSkills from techygarg/lattice.

See all 25 skills
🏗️
5h ago

Architecture

Architecture enforces architectural rules when generating or reviewing code, and checks proposed designs against loaded architecture standards. It validates layer responsibilities, dependency direction, and structural constraints for clean, hexagonal, modular monolith, or custom architectures.
Quality
18513
🧭
5h ago

Architecture Compass

Architecture Compass scans a repository, interviews the user about unclear parts, and drafts a shareable architectural assessment. Use it to understand the current structure, drift, and recommended direction for one codebase, module, or folder.
AI Engineering
18513
🏗️
5h ago

Architecture Refiner

Architecture Refiner facilitates a structured conversation to define architecture principles for a repository. It supports clean architecture, hexagonal/ports and adapters, modular monolith, or a custom style when setting up or revising project standards.
AI Engineering
18513
🪲
5h ago

Bug Fix

Bug Fix investigates, reproduces, and safely repairs a bug with regression protection. It is used when fixing failures, regressions, or broken behavior in a codebase.
Quality
18513
🧼
5h ago

Clean Code

Clean Code applies clean code principles when generating or modifying implementation code. It helps with function focus, naming clarity, complexity management, error handling, and self-documenting style.
Quality
18513
🧹
5h ago

Clean Code Refiner

Clean Code Refiner guides a structured conversation to define clean code principles for a repository. It produces a clean-code.md document used as the override or overlay for coding standards and code quality rules.
Quality
18513