no-comments
What it does
This skill cleans up code comments in a set of changes, leaving those that explain outside systems. It is for developers who want code that explains itself.
When to use it
- ✓When a code change has comments that just restate what the code does.
- ✓When a diff contains comments that defend the team's own code.
- ✓When someone asks to strip unnecessary comments from some files.
Skill link
https://github.com/remotion-dev/remotion/blob/main/.agents/skills/no-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
“My pull request is full of comments that repeat what the code does. Can you remove the unnecessary ones but keep the notes about browser bugs?”
5 new skills a week. 1 minute to read.
How it works
The agent reviews comments on the lines that changed. It deletes those that describe the team's own code and keeps notes on external systems, along with directives such as lint-disable lines.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Which comments are kept?
The skill keeps comments about outside systems, such as browser quirks, codec behavior, third-party APIs and platform bugs.
Are lint directives removed?
No. The skill says machine-read directives such as eslint-disable and ts-expect-error stay.
Will it touch code I did not change?
No. The skill only changes comments on lines that were added or modified in scope.
Details
Original description by the author
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
Popularity
- GitHub stars
- 70k
- Ranking position
- #3147
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
fix-root-cause
70kTeaches your agent to trace a bug back to where things first went wrong, and fix that spot instead of hiding the symptom with a workaround.
gh-stack
70kShows your agent how to split large work into a stack of linked branches and pull requests, so reviewers see one small layer of changes at a time.
issue-management
70kHelps your agent link GitHub issues as parents, sub-issues and blockers using the GitHub CLI, so project work stays clearly organized.
pr-ready
70kHelps your agent get a pull request ready to merge by fixing failed checks, resolving merge conflicts and pushing any local changes.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.