Skip to content
Development
Command

/make-it-pretty

I'll improve code readability while preserving exact functionality.

From plugin
ccplugins
2.8k23 skills23 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/make-it-pretty

Context preview

What this command does when you run it.

I'll improve code readability while preserving exact functionality.

Command definition

make-it-pretty.md

Make It Pretty

I'll improve code readability while preserving exact functionality.

Strategic Thinking Process

<think> Before making any changes, I need to consider:

1. **Code Analysis**

  • What makes this code "ugly" or hard to read?
  • Are there complex nested structures that need simplification?
  • Is the naming unclear or inconsistent?
  • Are there repeated patterns that could be abstracted?

2. **Safety Considerations**

  • Which changes are purely cosmetic (safe)?
  • Which might affect behavior (risky)?
  • Are there implicit dependencies on current structure?
  • Could renaming break external references?

3. **Improvement Strategy**

  • Priority 1: Clear naming (variables, functions, files)
  • Priority 2: Reduce complexity (extract functions, simplify logic)
  • Priority 3: Remove redundancy (DRY principle)
  • Priority 4: Improve type safety (if applicable)

4. **Validation Approach**

  • How can I ensure functionality remains identical?
  • What tests exist to verify behavior?
  • Should I add temporary logging to verify flow?

</think>

Based on this analysis, I'll proceed safely:

**Safety First:**

  • Create git checkpoint before changes
  • Use **Write** tool to create backups
  • Track all modifications systematically

I'll identify files to beautify based on:

  • Files you specify, or if none specified, analyze the entire application
  • Recently modified code
  • Our conversation context

**Improvements I'll Make:**

  • Variable and function names for clarity
  • Code organization and structure
  • Remove unused code and clutter
  • Simplify complex expressions
  • Group related functionality
  • Fix loose or generic type declarations
  • Add missing type annotations where supported
  • Make types more specific based on usage

**My Approach:** 1. Analyze current code patterns and type usage 2. Apply consistent naming conventions 3. Improve type safety where applicable 4. Reorganize for better readability 5. Remove redundancy without changing logic

**Quality Assurance:**

  • All functionality remains identical
  • Tests continue to pass (if available)
  • No behavior changes occur
  • Clear commit messages for changes

**Important**: I will NEVER:

  • Add "Co-authored-by" or any Claude signatures
  • Include "Generated with Claude Code" or similar messages
  • Modify git config or user credentials
  • Add any AI/assistant attribution to the commit

This helps transform working code into maintainable code without risk.

Read more
Ships withccplugins

Best Claude Code framework that actually save time. Built by a dev tired of typing "please act like a senior engineer" in every conversation.

Get the whole plugin
Stats
2,773
Stars
164
Forks
Maintained
Maintenance
Python
Language
MIT
License
1mo ago
Last commit
1y ago
Created

Repo: notlikeDev/CCPlugins