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.
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
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.
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-standardOnly touch comments on lines added or modified in scope. Do not sweep untouched code in the same file.
A comment stays only if it is about an external system and is still accurate:
Also keep:
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.@deprecated tags (see the deprecate-api skill).// Get the frame, // Loop over tracks).IMPORTANT, do not remove, keep in sync with X, talk to Y first notes
about our own code. If the constraint is real, offer to encode it (type,
shared constant, test, lint) instead; delete the comment either way.TODO/FIXME without 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.
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.
remotion-dev/remotion
0e4c50c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.