JustHandled Labs
Menu
// developer tools

Code Comment Cleaner

Preview code-like comment candidates across JavaScript, TypeScript, Python, Java, Go, Rust, HTML, and CSS, then confirm only the reviewed ranges you want removed.

Format: Agent skill, not a browser app. You need an AI agent that can load its instructions and use the required tools.

Package requirements: An AI agent that can read your selected source files and the bundled pattern reference. Removing approved blocks also needs permission to create backups and edit those files. No separate service account is required by the package.

You get: A review queue of code-like comments, with preservation rules for TODOs, licence headers, disabled tests and documentation. Removal requires your reviewed selection.

Licence and purchase details

Review the package licence at the destination.

Review the offer and access method at your chosen marketplace. Agensi provides connected-agent access, not a download. Buying a skill does not include an AI-agent subscription or setup service.

Agensi access: This product’s bundled-script workflow through Agensi has not been verified here. Tests of other products do not establish this package’s compatibility. Local setup examples apply to separately obtained downloadable packages.

See tested hosts, versions and workflow limits.

What it does

Code Comment Cleaner builds a review queue of code-like comment blocks across JavaScript, TypeScript, Python, Java, Go, Rust, HTML, and CSS. It looks for implementation signals such as assignments, calls, control flow, brackets, and multi-line syntax, then applies preservation rules before proposing any removal.

The result is a preview, not a blind search-and-delete. You see which lines were classified as candidates and why before deciding whether the cleanup should be written.

Package boundary: the purchase contains a procedural SKILL.md workflow and language-specific reference patterns. It does not bundle a deterministic scanner executable, so results depend on the agent's implementation and still require review.

// 24-second representative run

See the preview-first workflow

The walkthrough shows the intended sequence: read the preservation rules, preview exact candidates without changing files, keep a TODO, confirm the reviewed cleanup, create a .bak backup, remove only the approved block, and run the repository check.

Representative run: this is a truthful walkthrough of the published procedural workflow, not a deterministic bundled scanner. Your agent's implementation and repository results can vary, so review every proposed removal.

// representative example

Preview what leaves—and what stays

This illustrative example shows the published two-pass behavior. The review step remains necessary for project-specific comments.

orders.jsbefore cleanup
function loadOrders() {
  // const data = await legacyApi.get("/orders");
  // const items = data.items;
  // return items;
  // TODO: add pagination before 10k orders
  // Keep batching low to protect the upstream rate limit.
  return fetchOrders();
}
proposed previewno write yet
  • candidateLines 2–4: three adjacent code-like comment lines.
  • keepLine 5: actionable TODO marker.
  • reviewLine 6: project-specific prose still needs human judgment.

What it is designed to preserve

These defined preservation patterns win over detection. Project-specific directives, docstrings, examples, generated sections, and unusual prose can fall outside them and must be reviewed manually.

Where it helps

How to run

Get it on Agensi and run it with any agent that reads SKILL.md, such as Claude Code, Codex, or Cursor. Define the directories and file types in scope, review the candidate report, inspect the proposed diff, and confirm only the removals you accept.

Safety and permissions

The published listing declares terminal access for scanning and backup creation, read access to supported source files, and write access for source and .bak files only after explicit confirmation. It declares no browser, network, or environment access.

The confirmed workflow writes backup copies before modifying a file. Keep the repository on a clean branch and run its normal tests, lint, type checks, and build afterward; a comment classifier cannot prove that every project-specific directive or embedded example is harmless to remove.

Use it as a reversible cleanup

Comment cleanup should separate obsolete implementation from documentation, legal text, TODOs, tool directives, disabled tests, and explanations of intent. Follow the preview-first commented-code cleanup guide to define the scope, classify candidates, inspect the diff, and verify the repository after the write.

// choose with context

Is Code Comment Cleaner the right skill?

Best fit

Review commented-out code candidates before approving selective removal.

It returns

A review queue of code-like comments, with preservation rules for TODOs, licence headers, disabled tests and documentation. Removal requires your reviewed selection.

Do not use it as

A bundled deterministic code scanner or permission to delete comments without review. This is an agent workflow with reference patterns; inspect its proposed removals first.

Compatibility, access, version, and licence

Reads or accesses
Reads the selected source files and bundled language patterns. Preview mode makes no file changes. Approved cleanup writes a .bak backup beside each changed file and edits only the reviewed blocks.
Compatibility
An AI agent that can read your selected source files and the bundled pattern reference. Removing approved blocks also needs permission to create backups and edit those files. No separate service account is required by the package.
Version
Verify the current package version at the linked destination.
Licence
Review the package licence and seller terms at the linked destination.

What happens next

Open the Agensi listing, check the current offer and connect a supported agent. Agensi loads the skill through its connector; it no longer provides a download. Approve any purchase before use. Check Agensi’s current connection guide before changing an existing connection.

Questions

How does it distinguish dead code from useful comments?

It applies preservation patterns before candidate detection: TODO, FIXME, NOTE, and XXX markers; license or copyright terms; disabled-test patterns; and a narrow prose-sentence rule. Everything else remains a heuristic candidate that must be reviewed.

Which languages does it support?

JavaScript, TypeScript, Python, Java, Go, Rust, HTML, and CSS.

Will it delete comments without a preview?

No. It produces a proposed removal set first. File writes occur only after explicit confirmation, and backup copies are created before confirmed changes.

What permissions does it use?

Terminal access for scanning and backups, read access for supported source files, and confirmed write access for source and .bak files. The package is a procedural workflow with reference patterns, not a bundled executable scanner.

Add Code Comment Cleaner to your toolkit.

Current price and purchase option are shown on Agensi. Use a supported agent connection on Agensi. Review the requirements above before getting started.

Get Code Comment Cleaner on Agensi