Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/justinfleek-safe-refactoring-8a6885
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
safe-refactoring- Description
- Safely refactor code without breaking functionality. Use when refactoring, restructuring code, or improving code quality while maintaining behavior.
- License
- MIT
- Compatibility
- opencode
- Instructions
- 45 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Safe Refactoring Skill ## Golden Rule Working code is more valuable than clean code. Never break working code to make it "cleaner." ## Before ANY Refactor ### 1. Create a Baseline ```bash git stash git status # Should be clean npm test # Should pass npx tsc --noEmit # Note current error count ``` ### 2. Understand the Code - Read ENTIRE file(s) being refactored - List all exports and their consumers - Document current behavior ### 3. Make Changes Incrementally - One logical change at a time - Verify after EACH change - If tests fail, REVERT immediately ### 4. Verify No Functionality Lost ```bash git diff # Review every deleted line ``` Ask: "Does this deletion remove functionality or just cleanup?" ## Refactor Checklist - [ ] Tests pass before starting - [ ] Tests pass after each change - [ ] No exports removed without updating consumers - [ ] No properties deleted from objects - [ ] Type definitions updated (not code forced to match types) ## Red Flags (STOP if you see these) - "I need to delete this property to fix the type error" - "This code doesn't match the type, so I'll change the code" - "I'll add backwards compatibility for the old way" - "Let me just use `as any` to make this work"
From justinfleek/ComfyUI-Lattice-Compositor, MIT.
More from justinfleek/ComfyUI-Lattice-Compositor
- 0.409score
type-cleanup
justinfleek
Fix type issues by updating type definitions to match code, not vice versa.
SkillDFreshness: DClaude Code +9 - 0.409score
safe-refactoring
justinfleek
Safely refactor code without breaking functionality.
SkillDFreshness: DClaude Code +9 - 0.409score
expert-researcher
justinfleek
Transform into a methodical research assistant that gathers evidence, evaluates sources, and synthesizes findings.
SkillDFreshness: DClaude Code +9 - 0.409score
straylight-script
justinfleek
Write Haskell scripts using Straylight.Script instead of bash.
SkillDFreshness: DClaude Code +9 - 0.406score
creative-coder
justinfleek
Specializes in creative, unconventional, off-the-wall solutions using experimental approaches and novel language features
SkillDFreshness: DClaude Code +9 - 0.406score
feature-analyzer
justinfleek
Deep analysis of external codebases to extract features, compare against Lattice capabilities, identify gaps, and propose integration strategies.
SkillDFreshness: DClaude Code +9 - 0.406score
council
justinfleek
Summon a panel of three world-class experts with complementary perspectives to analyze complex questions through structured dialogue and forced consensus.
SkillDFreshness: DClaude Code +9 - 0.406score
exploratory-architect
justinfleek
Optimized for architecture design, algorithm optimization, and complex problem-solving with deep reasoning.
SkillDFreshness: DClaude Code +9 - 0.405score
thorough-reading
justinfleek
Read entire files completely before modification.
SkillDFreshness: DClaude Code +9 - 0.405score
verification
justinfleek
Verify fixes and changes with evidence-based testing.
SkillDFreshness: DClaude Code +9 - 0.403score
deterministic-coder
justinfleek
Optimized for bug fixes, spec implementations, refactoring, and routine development with precise, consistent execution - STRAYLIGHT-CORE CONFORMANT
SkillDFreshness: DClaude Code +9 - 0.380score
testing-methodology
justinfleek
Write comprehensive tests using property tests, unit tests, integration tests, and regression tests.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 7, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from justinfleek
- 0.409score
type-cleanup
justinfleek
Fix type issues by updating type definitions to match code, not vice versa.
SkillDFreshness: DClaude Code +9 - 0.409score
safe-refactoring
justinfleek
Safely refactor code without breaking functionality.
SkillDFreshness: DClaude Code +9 - 0.409score
expert-researcher
justinfleek
Transform into a methodical research assistant that gathers evidence, evaluates sources, and synthesizes findings.
SkillDFreshness: DClaude Code +9 - 0.409score
straylight-script
justinfleek
Write Haskell scripts using Straylight.Script instead of bash.
SkillDFreshness: DClaude Code +9 - 0.406score
creative-coder
justinfleek
Specializes in creative, unconventional, off-the-wall solutions using experimental approaches and novel language features
SkillDFreshness: DClaude Code +9 - 0.406score
feature-analyzer
justinfleek
Deep analysis of external codebases to extract features, compare against Lattice capabilities, identify gaps, and propose integration strategies.
SkillDFreshness: DClaude Code +9
Cite this page
safe-refactoring skill. Agent Mart. https://agentmart.dev/skills/justinfleek-safe-refactoring-8a6885 (last updated 2026-10-24)