Skip to content
Skill

Refactoring Task

by LEEI1337

AI Summary

A refactoring task booster that helps developers improve code quality by optimizing structure, naming, performance, and maintainability with before/after comparisons. Ideal for developers seeking to enhance existing codebases and establish better coding practices.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "Refactoring Task" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory (5 files)
mkdir -p .claude/skills/commands && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/commands/SKILL.md "https://raw.githubusercontent.com/LEEI1337/phantom-neural-cortex/master/.claude/commands/refactor.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/commands/debug.md "https://raw.githubusercontent.com/LEEI1337/phantom-neural-cortex/master/.claude/commands/debug.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/commands/doc.md "https://raw.githubusercontent.com/LEEI1337/phantom-neural-cortex/master/.claude/commands/doc.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/commands/review.md "https://raw.githubusercontent.com/LEEI1337/phantom-neural-cortex/master/.claude/commands/review.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/commands/test.md "https://raw.githubusercontent.com/LEEI1337/phantom-neural-cortex/master/.claude/commands/test.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Refactor code for better maintainability and performance

Refactoring Task

Please refactor the provided code focusing on:

1. Code Structure

• Extract reusable functions/components • Reduce complexity and nesting • Improve modularity • Apply design patterns where appropriate

2. Naming & Clarity

• Use descriptive variable and function names • Remove magic numbers and strings • Add meaningful comments • Improve code readability

3. Performance

• Optimize algorithms • Reduce redundant operations • Improve resource usage • Consider caching where appropriate

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2mo ago
Active
AdoptionUnder 100 stars
5 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars5
Forks1
Issues0
Updated2mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code