legion:code-polish

Clean and simplify code through a structured multi-pass process.

1|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/9thLevelSoftware/legion-ascended --skill legion-code-polish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: legion:code-polish
Source: https://github.com/9thLevelSoftware/legion-ascended/tree/main/skills/code-polish
Command: npx skills add https://github.com/9thLevelSoftware/legion-ascended --skill legion-code-polish

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the issue of maintaining code quality by providing a structured, multi-pass approach to code cleanup, simplification, readability enhancement, and consistency normalization.

Core Features & Use Cases

  • Multi-Pass Code Cleanup: Systematic removal of redundant comments, simplification of code, and normalization of conventions.
  • Customizable Triggers: Trigger code polishing based on specific actions like 'polish', 'cleanup', or 'simplify'.
  • Integration with Legion Workflow: Seamlessly integrates with the Legion workflow system for review and post-review steps.

Quick Start

Run the code-polish skill using the /legion:polish command to apply all passes to the current project.

Frequently Asked Questions about legion:code-polish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code cleanup and readability improvement for my project?

Code cleanup and readability improvement are automated through a structured, multi-pass process that removes redundant comments, simplifies structure, and normalizes conventions across the project.

What is the best way to normalize code conventions across a software workflow?

Normalizing code conventions is best handled by a multi-pass optimization process that targets noise reduction and structure simplification, ensuring consistent formatting and styling throughout the software workflow.

How do I run code optimization passes on demand using specific triggers?

Code optimization passes can be run on demand using customizable triggers like 'polish', 'cleanup', or 'simplify', which initiate the multi-pass cleaning process immediately within the Legion workflow.

Does multi-pass code cleaning work as a standalone process or only within a review loop?

Multi-pass code cleaning works both as a standalone process and within a review loop, providing integration points for post-review steps while supporting direct execution for immediate noise reduction.

When do I need multi-pass code polishing instead of basic formatting?

Multi-pass code polishing is needed when basic formatting falls short, requiring deeper noise reduction, structure simplification, and readability improvement to systematically enhance code quality.