code-formatter

Remove commented code and debug statements from C# source files.

2|3|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/mkalhitti-cloud/universal-or-strategy --skill code-formatter-mkalhitti-cloud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-formatter
Source: https://github.com/mkalhitti-cloud/universal-or-strategy/tree/main/.agent/skills/code-formatter
Command: npx skills add https://github.com/mkalhitti-cloud/universal-or-strategy --skill code-formatter-mkalhitti-cloud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides lightweight cleanup of C# code by removing unnecessary commented code, debugging statements, and misformatted sections, and ensures consistent formatting across files.

Core Features & Use Cases

  • Remove commented code and commented-out blocks that are not explanatory
  • Remove debug Print() statements and other development-only logs
  • Fix indentation and formatting to follow C# conventions
  • Auto-triggers on cleanup requests during development workflows or pre-commit checks

Quick Start

Trigger the code formatter on a target file or project by requesting: "Clean up code in file.cs" or "Format the repository to standard C# style".

Frequently Asked Questions about code-formatter

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

FAQPage Schema
How do I automatically remove commented code and debug statements from C# files?

You can clean up C# source code by removing unnecessary commented blocks and debug Print() statements using an automated formatter that applies standard C# conventions to individual files or entire projects.

Can I format an entire C# repository to follow consistent indentation rules?

Yes, you can trigger a cleanup request to format an entire repository, applying consistent indentation and standard C# formatting across all files during development workflows or pre-commit checks.

Do I need to install external tools to format C# code before a commit?

No external installations are required to format C# code before a commit. The cleanup process relies on the Haiku sub-agent framework and standard formatting rules without needing additional dependencies.

What's the best way to clean up misformatted C# code during active development?

The best way to clean up misformatted C# code during development is to trigger an automated cleanup request on your target file, fixing indentation and removing development-only logs automatically.

Does the C# code cleanup process remove all comments from the file?

No, the C# code cleanup process removes unnecessary commented-out code and blocks, but it preserves explanatory comments while fixing indentation and stripping debug statements.