File cleaner

From devclarityai/environment-setup · View interactive version

File cleaner is an AI agent skill from the GitHub repository devclarityai/environment-setup. Improve readability of a single source file without changing behavior. Use when the user wants to clean up, refactor for readability, or improve code style.

How to use this skill

Skill file

Use this template to improve readability of a single source file without changing behavior.

INPUTS

INSTRUCTIONS

  1. Keep behavior identical. Avoid semantic changes.
  2. Rename unclear variables and functions to intent-revealing names.
  3. Remove redundant or noisy comments. Keep value-adding docs.
  4. Add comments where logic is non-obvious (why > what).
  5. Reformat for consistency per PROJECT_CONTEXT standards.
  6. Ensure lints and static analysis pass.
  7. Surface any low-risk micro-optimizations as suggestions, not changes.
  8. Keep lines ≤80 chars.

OUTPUT FORMAT

Summary

Cleaned file

// full revised file

Diff (for review)

- old
+ new

Naming changes

Lint & style

Notes for follow-up (optional)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.