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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2773
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.