improve

improve is a command for coding agents from SuperClaude-Org/SuperClaude_Plugin. It costs 15 tokens per session (867 once invoked), scanned A, original, MIT.

A command for making systematic improvements to software quality, speed, maintainability, or style. Maintainability means how easy the code is to understand, change, and keep working over time.

In plain words
What is it for?
Use it to refactor code, optimize slow parts, apply framework best practices, and improve code quality. It can validate that the changes preserve existing behavior and summarize the work.
Why use it?
It helps identify technical debt, which is the future cost of quick or messy code, and guides changes through planning and validation.

Command

Part of the sc plugin — 32 commands, 20 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/superclaude-org/superclaude_plugin/sc-improve
Clone the repo
git clone --depth 1 https://github.com/SuperClaude-Org/SuperClaude_Plugin

Or install sc, the plugin that ships this one along with the rest of its 32 commands, 20 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for improve

README.md
[![agentmods](https://agentmods.dev/badge/commands/superclaude-org/superclaude_plugin/sc-improve.svg)](https://agentmods.dev/commands/superclaude-org/superclaude_plugin/sc-improve)
Your own site
<a href="https://agentmods.dev/commands/superclaude-org/superclaude_plugin/sc-improve"><img src="https://agentmods.dev/badge/commands/superclaude-org/superclaude_plugin/sc-improve.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.00867
Opus 5 $0.00008 $0.00434
Sonnet 5 $0.00003 $0.00173
Haiku 4.5 $0.00002 $0.00087

Measured 4d ago against content hash 6f3bc819a91e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

improve scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/sc-improve.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/sc:sc:sc:improve - Code Improvement

Triggers

  • Code quality enhancement and refactoring requests
  • Performance optimization and bottleneck resolution needs
  • Maintainability improvements and technical debt reduction
  • Best practices application and coding standards enforcement

Usage

/sc:sc:improve [target] [--type quality|performance|maintainability|style] [--safe] [--interactive]

Behavioral Flow

  1. Analyze: Examine codebase for improvement opportunities and quality issues
  2. Plan: Choose improvement approach and activate relevant personas for expertise
  3. Execute: Apply systematic improvements with domain-specific best practices
  4. Validate: Ensure improvements preserve functionality and meet quality standards
  5. Document: Generate improvement summary and recommendations for future work

Key behaviors:

  • Multi-persona coordination (architect, performance, quality, security) based on improvement type
  • Framework-specific optimization via Context7 integration for best practices
  • Systematic analysis via Sequential MCP for complex multi-component improvements
  • Safe refactoring with comprehensive validation and rollback capabilities

MCP Integration

  • Sequential MCP: Auto-activated for complex multi-step improvement analysis and planning
  • Context7 MCP: Framework-specific best practices and optimization patterns
  • Persona Coordination: Architect (structure), Performance (speed), Quality (maintainability), Security (safety)

Tool Coordination

  • Read/Grep/Glob: Code analysis and improvement opportunity identification
  • Edit/MultiEdit: Safe code modification and systematic refactoring
  • TodoWrite: Progress tracking for complex multi-file improvement operations
  • Task: Delegation for large-scale improvement workflows requiring systematic coordination

Key Patterns

  • Quality Improvement: Code analysis → technical debt identification → refactoring application
  • Performance Optimization: Profiling analysis → bottleneck identification → optimization implementation
  • Maintainability Enhancement: Structure analysis → complexity reduction → documentation improvement
  • Security Hardening: Vulnerability analysis → security pattern application → validation verification

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 114 lines · 15 tokens per session scan A 6f3bc819a91e

Subscribe to this mod's changes

improve is a command published in the GitHub repository SuperClaude-Org/SuperClaude_Plugin (55 stars, last pushed 14d ago), licensed MIT. It adds 15 tokens to every session and 867 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.