Saltar al contenido
Skillpedia
Programación general70 mil · #3147

no-comments

Qué hace

Esta skill limpia los comentarios de código de un conjunto de cambios, dejando los que explican sistemas externos. Es para desarrolladores que quieren un código que se explique por sí mismo.

Cuándo usarla

  • ✓Cuando un cambio de código tiene comentarios que solo repiten lo que hace el código.
  • ✓Cuando un diff contiene comentarios que justifican el código propio del equipo.
  • ✓Cuando alguien pide quitar comentarios innecesarios de algunos archivos.

Link de la skill

https://github.com/remotion-dev/remotion/blob/main/.agents/skills/no-comments/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/remotion-dev/remotion/blob/main/.agents/skills/no-comments/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Mi pull request está lleno de comentarios que repiten lo que hace el código. ¿Puedes quitar los innecesarios pero conservar las notas sobre errores del navegador?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente revisa los comentarios de las líneas cambiadas. Borra los que describen el código propio del equipo y conserva las notas sobre sistemas externos, junto con las directivas como las líneas de desactivación de lint.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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).
  • @deprecated tags (see the deprecate-api skill).
  • 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 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.
  • Commented-out code, 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.

Steps

  1. Collect every comment in scope (//, /* */, JSDoc, JSX {/* */}, # in shell/YAML).

  2. 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.

  3. Delete. Do not change behavior. Remove blank lines left behind that would break formatting.

  4. Run formatting and lint on touched packages:

    bunx turbo run lint --filter='<package-name>'
    
  5. 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.

Preguntas frecuentes

¿Qué comentarios se conservan?

La skill conserva los comentarios sobre sistemas externos, como particularidades del navegador, comportamiento de códecs, APIs de terceros y errores de plataforma.

¿Se quitan las directivas de lint?

No. La skill indica que las directivas que lee la máquina, como eslint-disable y ts-expect-error, se mantienen.

¿Tocará código que no cambié?

No. La skill solo modifica comentarios en las líneas añadidas o modificadas dentro del alcance.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
70 mil
Posición en el ranking
#3147
Licencia
—
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas