no-comments
ما الذي تفعله
تنظّف هذه المهارة تعليقات الشيفرة في مجموعة من التغييرات، وتترك التعليقات التي تشرح أنظمة خارجية. وهي مخصصة للمطورين الذين يريدون شيفرة تشرح نفسها.
متى تستخدمها
- ✓عندما تحتوي التغييرات على تعليقات تعيد فقط وصف ما تفعله الشيفرة.
- ✓عندما يحتوي الفرق diff على تعليقات تبرر شيفرة الفريق نفسها.
- ✓عندما يطلب أحد إزالة التعليقات غير الضرورية من بعض الملفات.
رابط المهارة
https://github.com/remotion-dev/remotion/blob/main/.agents/skills/no-comments/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“طلب الدمج الخاص بي مليء بتعليقات تكرر ما تفعله الشيفرة. هل يمكنك حذف غير الضرورية منها والإبقاء على الملاحظات عن أخطاء المتصفح؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يراجع الوكيل التعليقات في الأسطر التي تغيّرت. فيحذف ما يصف شيفرة الفريق، ويحتفظ بالملاحظات عن الأنظمة الخارجية، مع التوجيهات التي تقرأها الأدوات مثل سطور تعطيل lint.
المحتوى التقني (ملف 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.
الأسئلة الشائعة
أي التعليقات تُبقى؟
تُبقي المهارة التعليقات عن الأنظمة الخارجية، مثل غرائب المتصفح وسلوك الترميزات وواجهات الطرف الثالث وأخطاء المنصات.
هل تُحذف توجيهات lint؟
لا. تقول المهارة إن التوجيهات التي تقرأها الآلة، مثل 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
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
fix-root-cause
70kيعلّم وكيلك تتبع الخلل حتى أول نقطة انحرف فيها الأمور، ثم إصلاح تلك النقطة بدلا من إخفاء العرض بحل مؤقت.
gh-stack
70kيُريك وكيلك كيف يقسّم العمل الكبير إلى سلسلة من الفروع وطلبات الدمج المترابطة، فيرى المراجعون طبقة صغيرة واحدة من التغييرات في كل مرة.
issue-management
70kيساعد وكيلك على ربط مشكلات GitHub كآباء وفروع فرعية وحواجز، باستخدام GitHub CLI، حتى يبقى عمل المشروع منظما بوضوح.
pr-ready
70kيساعد وكيلك على تجهيز طلب الدمج ليكون جاهزا للدمج، عبر إصلاح الفحوصات الفاشلة وحل تعارضات الدمج ودفع التغييرات المحلية.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.