refactor-code

SkillDev tools

Refactor selected code while preserving behavior, then verify. Use when the user types /refactor-code.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the refactor-code skill

What this skill tells your AI

The instructions your AI receives, as published by blockmatic/basilic in .agents/skills/workflow/refactor-code/SKILL.md and read by ahel’s review.

Refactor selected code to improve quality while maintaining same functionality, providing refactored code with explanations.

  1. Code Quality: Extract reusable functions/components, eliminate duplication, improve naming, simplify complex logic/reduce nesting
  2. Performance: Identify/fix bottlenecks, optimize algorithms/data structures, reduce unnecessary computations, improve memory usage
  3. Maintainability: Make code readable/self-documenting, add appropriate comments, follow SOLID principles/design patterns, improve error handling/edge case coverage

Signals

GitHub stars
89
Forks
11
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
refactor-code
Source
github.com/blockmatic/basilic