code-cleanup

Performs focused, behavior-preserving cleanup of Rust, TypeScript, and JavaScript codebases.

Updated Sep 30, 2021
One-click install
npx skills add https://github.com/isymchych/accel-os --skill code-cleanup-isymchych
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-cleanup
Source: https://github.com/isymchych/accel-os/tree/main/ai/codex/skills/code-cleanup
Command: npx skills add https://github.com/isymchych/accel-os --skill code-cleanup-isymchych

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Focused, behavior-preserving code cleanup helps teams reduce complexity and align Rust, TypeScript, and JavaScript code with project guidelines.

Core Features & Use Cases

  • Strict cleanup workflow with a single, high-value pass
  • Behavior preservation verification and guardrails against unintended changes
  • Supports Rust, TypeScript, and JavaScript codebases across targeted scopes

Quick Start

Provide the exact file or module to clean and I will apply a single, behavior-preserving cleanup pass.

Frequently Asked Questions about code-cleanup

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

FAQPage Schema
How do I safely refactor and clean up dead code in TypeScript and JavaScript?

To safely clean up TypeScript and JavaScript, provide the exact file or module to target. The workflow applies a single, behavior-preserving cleanup pass that removes dead code and simplifies type-level indirection while verifying changes against tests.

What is behavior-preserving code cleanup and when do I need it?

Behavior-preserving code cleanup reduces complexity by removing dead code, simplifying types, and inlining private helpers without changing functionality. You need it when your Rust, TypeScript, or JavaScript codebase must align with project guidelines while guaranteeing existing behaviors remain intact.

Can I use this workflow to refactor an entire Rust repository at once?

No, this workflow performs focused cleanup on targeted scopes within a repository, not the entire codebase at once. You provide the exact file or module to clean, ensuring a strict, high-value single pass that preserves behavior safely.

What's the best way to simplify type-level indirection without breaking tests?

The best way to simplify type-level indirection is a strict workflow with critique, a single cleanup pass, and closure verification. This process validates changes against repository guidelines and tests to prevent unintended behavior changes in Rust, TypeScript, and JavaScript.

Why should I use a focused refactor workflow instead of automated formatting tools?

Unlike automated formatting tools, a focused refactor workflow enforces critique and closure verification to remove dead code and inline private helpers safely. It ensures behavior preservation by validating changes against repository guidelines and tests, not just syntax styling.