本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2773

clean-up-comments

できること

このスキルは、公開されるべきでないメモ、デバッグのコード、未使用のマークアップを、本番のHTMLで確認します。公開前にページをきれいで安全にしたい開発者向けです。

使う場面

  • ✓サイトやページを公開する準備をしているとき。
  • ✓ページのソースに、開発者だけを対象にしたTODOやデバッグのメモが見えるとき。
  • ✓ビルドが、取り除くべきコメントやconsoleのコードを出力しているとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/clean-up-comments/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“公開前に、ランディングページのHTMLから開発者のメモとデバッグ用のマークアップを取り除き、きれいにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはテンプレートと描画後のHTMLで、TODO、FIXME、デバッグのメモ、残ったマークアップ、機密の詳細を確認し、アクセシビリティと法的なコメントは残したまま取り除きます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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

よくある質問

コメントは、なぜセキュリティのリスクになりますか?

ページのソースを見る誰にでも、内部のロジック、APIのアドレス、システムの詳細を明かすおそれがあると、このスキルは説明しています。

どのコメントは残すべきですか?

このスキルによると、アクセシビリティと法的なコメントです。

ビルドでコメントを自動で取り除けますか?

はい。コメントを取り除くようビルドツールを設定することを、このスキルは提案しています。

詳細

作者による元の説明

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

人気

GitHubのスター
75k
ランキング
#2773
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル