no-comments
できること
このスキルは、変更内のコードのコメントを整理し、外部のシステムを説明するものを残します。コードが自ら説明することを求める開発者向けです。
使う場面
- ✓変更のコードに、何をしているかをそのまま繰り返すコメントがあるとき。
- ✓差分に、チーム自身のコードを弁明するようなコメントがあるとき。
- ✓特定のファイルから、不要なコメントを取り除くよう頼まれたとき。
スキルのリンク
https://github.com/remotion-dev/remotion/blob/main/.agents/skills/no-comments/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のプルリクエストは、コードの動きを繰り返すコメントだらけです。不要なものは取り除いて、ブラウザーのバグについてのメモは残してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、変更された行にあるコメントを確認します。チーム自身のコードを説明するものは削除し、外部のシステムについてのメモや、eslint-disableのようなリントの指示は残します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
No comments
Delete comments that describe our own code. Code we own should explain itself through names, types, and structure. Keep a comment only when it documents something outside our control that a reader could not learn from our code.
Scope
Use the files or diff the user named. Otherwise use the current diff against
main, including staged, unstaged, and untracked changes:
git diff main...HEAD
git diff HEAD
git ls-files --others --exclude-standard
Only touch comments on lines added or modified in scope. Do not sweep untouched code in the same file.
Keep
A comment stays only if it is about an external system and is still accurate:
- Browser behavior: Chrome/Safari/Firefox quirks, WebCodecs, Canvas, CSS, layout, event ordering, autoplay policy, linked bug trackers.
- Media and tooling: FFmpeg, codecs, containers, Mediabunny, Chromium flags, Lambda/Cloud Run limits, Node.js, Bun, TypeScript compiler, bundler behavior.
- Third-party libraries and APIs: why we call them in an unusual way, links to upstream issues.
- OS, hardware, and spec constraints: file system, GPU, Linux/macOS/Windows differences, RFCs, W3C specs.
Also keep:
- Machine-read directives:
eslint-disable*,@ts-expect-error,@ts-ignore,/// <reference>,'use client',istanbul ignore,prettier-ignore,biome-ignore,@vitest-environment, shebangs, license headers. Still check that each suppression is needed; remove dead ones. - JSDoc on public exported APIs (it surfaces in editor tooltips).
@deprecatedtags (see thedeprecate-apiskill).- Comments in docs, MDX, and code snippets that are shown to users.
Delete
- Narration of what the next lines do (
// Get the frame,// Loop over tracks). - Restating names, types, or parameters.
- Explanations of our own architecture, data flow, or design choices.
- Defenses of workarounds for our own bugs. Fix the root cause in scope or leave the code uncommented.
IMPORTANT,do not remove,keep in sync with X,talk to Y firstnotes about our own code. If the constraint is real, offer to encode it (type, shared constant, test, lint) instead; delete the comment either way.- Commented-out code,
TODO/FIXMEwithout a linked issue, changelog-style notes (// Added in v4.0.x), and section dividers.
Mixed comments: keep only the external-system sentence and delete the rest.
If a comment hides a genuine surprise in our code, prefer a clearer name, extracted variable, or type over keeping the comment. Only reshape code when it is a trivial, local change; otherwise delete the comment and mention the surprise in the report.
Steps
Collect every comment in scope (
//,/* */, JSDoc, JSX{/* */},#in shell/YAML).Classify each as keep or delete using the rules above. When unsure whether a comment is about an external system, check: would this still be true if we rewrote our code? If yes, keep. If it only makes sense because of how we wrote something, delete.
Delete. Do not change behavior. Remove blank lines left behind that would break formatting.
Run formatting and lint on touched packages:
bunx turbo run lint --filter='<package-name>'Report: number of comments deleted, comments kept with a one-line reason each, any constraints offered for encoding, and any code surprises that deserve a follow-up.
よくある質問
どのコメントが残りますか?
このスキルは、ブラウザーの癖、コーデックの動作、サードパーティのAPI、プラットフォームのバグなど、外部のシステムに関するコメントを残します。
リントの指示は取り除かれますか?
いいえ。このスキルによると、eslint-disableやts-expect-errorのような機械が読む指示は残ります。
変更していないコードも対象になりますか?
いいえ。このスキルは、範囲内で追加または変更された行のコメントだけを変えます。
詳細
作者による元の説明
Remove code comments that explain or defend Remotion's own code, keeping only comments about external systems we cannot change (browser quirks, codec/FFmpeg behavior, third-party APIs, OS or platform bugs). Use when the user invokes /no-comments or asks to strip unnecessary comments from a diff or files.
repo: remotion-dev/remotion
人気
- GitHubのスター
- 70k
- ランキング
- #3147
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
fix-root-cause
70kエージェントがバグを、問題が最初に起きた箇所までさかのぼり、回避策で症状を隠す代わりに、その箇所を直すよう導きます。
gh-stack
70kエージェントが大きな作業を、リンクされたブランチとプルリクエストのスタックに分割し、レビューする人が一度に小さな層の変更だけを見られるよう支援します。
issue-management
70kエージェントがGitHubのイシューを、親、サブイシュー、ブロッカーとしてリンクし、GitHub CLIでプロジェクトの作業を明確に整理するよう支援します。
pr-ready
70kエージェントが、失敗したチェックを直し、マージのコンフリクトを解消し、ローカルの変更をプッシュして、プルリクエストをマージできる状態に戻すよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。