no-comments
Skill này làm gì
Skill này dọn các comment trong một tập thay đổi, giữ lại những comment giải thích hệ thống bên ngoài. Nó dành cho lập trình viên muốn code tự giải thích.
Khi nào nên dùng
- ✓Khi một thay đổi code có comment chỉ lặp lại điều code đang làm.
- ✓Khi một diff có comment bảo vệ code riêng của đội.
- ✓Khi ai đó yêu cầu bỏ các comment không cần thiết khỏi một số file.
Liên kết skill
https://github.com/remotion-dev/remotion/blob/main/.agents/skills/no-comments/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Pull request của tôi đầy comment lặp lại điều code làm. Bạn có thể xóa các comment không cần thiết nhưng giữ ghi chú về lỗi trình duyệt không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent rà soát comment trên các dòng đã thay đổi. Nó xóa những comment mô tả code riêng của đội và giữ lại ghi chú về hệ thống bên ngoài, cùng các chỉ thị như dòng tắt lint.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Comment nào được giữ lại?
Skill giữ các comment về hệ thống bên ngoài, như điểm kỳ lạ của trình duyệt, hành vi codec, API bên thứ ba và lỗi nền tảng.
Các chỉ thị lint có bị xóa không?
Không. Skill cho biết các chỉ thị máy đọc như eslint-disable và ts-expect-error được giữ lại.
Nó có động tới code tôi không thay đổi không?
Không. Skill chỉ thay đổi comment trên các dòng được thêm hoặc sửa trong phạm vi.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 70k
- Vị trí xếp hạng
- #3147
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
fix-root-cause
70kDạy agent của bạn truy vết lỗi về nơi mọi thứ sai lần đầu tiên, và sửa đúng chỗ đó thay vì che triệu chứng bằng một cách tạm thời.
gh-stack
70kChỉ cho agent của bạn cách chia công việc lớn thành một chuỗi nhánh và pull request liên kết, để người rà soát chỉ thấy một lớp thay đổi nhỏ mỗi lần.
issue-management
70kGiúp agent của bạn liên kết các issue GitHub theo quan hệ cha, con và chặn nhau bằng GitHub CLI, để công việc dự án luôn được tổ chức rõ ràng.
pr-ready
70kGiúp agent của bạn đưa pull request về trạng thái sẵn sàng gộp bằng cách sửa các kiểm tra thất bại, giải quyết xung đột gộp và đẩy các thay đổi cục bộ.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.