Skip to content
Skillpedia
Websites & UI (frontend)75k · #2773

clean-up-comments

What it does

This skill checks production HTML for notes, debug code and unused markup that should not be public. It is for developers who want clean, safe pages before launch.

When to use it

  • ✓When you are preparing a site or page for release.
  • ✓When page source shows TODO or debug notes meant only for developers.
  • ✓When a build outputs comments or console code that should be removed.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/clean-up-comments/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/clean-up-comments/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Clean up the HTML of my landing page so developer notes and debug markup are removed before launch.”

5 new skills a week. 1 minute to read.

How it works

The agent reviews templates and rendered HTML for TODO, FIXME and debug notes, leftover markup and sensitive details, then removes them while keeping accessibility and legal comments.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Remove comments and debug code in production

Comments expose internal logic to attackers, increase file size, and can leak sensitive information like API endpoints, credentials, or system architecture.

Quick Reference

  • Remove TODO, FIXME, DEBUG comments before production
  • Keep accessibility and legal comments
  • Configure build tools to strip comments automatically
  • Review for sensitive data leaks in comments

Check

Review this HTML code for unnecessary comments, debug code, console logs, and temporary markup that should be removed before production deployment.

Fix

Remove all development comments, debug code, unused markup, and temporary elements from the HTML before deploying to production.

Explain

Explain why cleaning up code before production is important for security, performance, and professional presentation of web applications.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Remove comments and debug code in production. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/html/clean-up-comments

FAQ

Why can comments be a security risk?

The skill says they can reveal internal logic, API addresses or system details to anyone who views the page source.

Which comments should stay?

Accessibility and legal comments, according to the skill.

Can the build remove comments automatically?

Yes. The skill suggests configuring build tools to strip comments.

Details

Original description by the author

Use when reviewing templates, rendered HTML, or shared components related to Remove comments and debug code in production. Validate the final browser-facing markup, not just the source framework abstraction.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2773
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills