Habilidades fixing-motion-performance
🎨

fixing-motion-performance

Seguro

تحسين أداء الرسوم المتحركة

الرسوم المتحركة البطيئة تزعج المستخدمين وتضر بالتفاعل. توفر هذه المهارة إرشادات مثبتة لتحقيق رسوم متحركة سلسة بسرعة 60 إطاراً في الثانية من خلال الاستفادة من طبقات compositor للمتصفح وتجنب عمليات التخطيط المكلفة.

Soporta: Claude Codex Code(CC)
🥉 72 Bronce
1

Descargar el ZIP de la skill

2

Subir en Claude

Ve a Configuración → Capacidades → Skills → Subir skill

3

Activa y empieza a usar

Pruébalo

Usando "fixing-motion-performance". Code that animates height and width continuously on a large container

Resultado esperado:

VIOLATION: Animating layout properties (height, width) continuously on a large surface causes expensive reflow.

WHY IT MATTERS: Layout operations trigger the browser's most expensive rendering phase, blocking the main thread.

FIX: Replace with transform: scale() which runs on the compositor thread. If layout effect is required, measure once with getBoundingClientRect(), then animate using FLIP technique.

Usando "fixing-motion-performance". requestAnimationFrame loop without stop condition

Resultado esperado:

VIOLATION: Animation loop has no stop condition, running continuously.

WHY IT MATTERS: Infinite animation loops consume CPU and battery indefinitely, degrading performance.

FIX: Add requestAnimationFrame loop with clear stop conditions: when animation completes, element is removed, or page visibility changes.

Auditoría de seguridad

Seguro
v1 • 2/11/2026

All 7 static findings are false positives. The scanner misidentified slash command documentation as external commands, CSS performance terminology as system reconnaissance, and YAML field names as cryptographic patterns. This is a documentation-only skill containing 128 lines of markdown guidelines for animation performance optimization. No code execution, network calls, file operations, or script execution occurs.

1
Archivos escaneados
128
Líneas analizadas
0
hallazgos
1
Auditorías totales
No se encontraron problemas de seguridad
Auditado por: claude

Puntuación de calidad

38
Arquitectura
100
Mantenibilidad
87
Contenido
41
Comunidad
100
Seguridad
83
Cumplimiento de la especificación

Lo que puedes crear

مطور الواجهة الأمامية يراجع المكونات

مطور الواجهة الأمامية يريد التأكد من أن الرسوم المتحركة الجديدة تلبي معايير الأداء قبل دمج الكود.

إعادة هيكلة التفاعلات المتقطعة

تحديد فريق للرسوم المتحركة المرتبطة بالتمرير التي تسبب تقطع ويحتاجون إرشادات حول أساليب التحسين.

تعلم أفضل ممارسات الرسوم المتحركة

مطور جديد في رسوم المتحركة على الويب يريد تعلم أساسيات عرض المتصفح وال حركة الفعالة.

Prueba estos prompts

فحص أساسي للرسوم المتحركة
Apply the fixing-motion-performance skill to review my animation code in {file}. Identify any violations of performance guidelines and suggest specific fixes.
تحسين رسوم المتحركة المرتبطة بالتمرير
Using fixing-motion-performance guidelines, review my scroll-linked animation. Check that it uses appropriate mechanisms like Scroll Timelines or IntersectionObserver, and verify it does not trigger continuous layout or paint.
مراجعة رسوم المتحركة لمتغيرات CSS
Review my use of animated CSS variables against fixing-motion-performance rules. Ensure variables are scoped locally, not inherited, and do not trigger paint on large surfaces.
استراتيجية ترقي الطبقات
Apply fixing-motion-performance to analyze my layer usage. Validate that will-change is used surgically, layers are not over-promoted, and compositor animations respect layer boundaries.

Mejores prácticas

  • فضل دائماً التحويل والعتامة على خصائص التخطيط أو تشغيل الرسوم البيانية للحركة المستمرة.
  • قم بقياس تخطيط DOM مرة واحدة قبل التحريك، ثم اكتب جميع التغييرات دفعة واحدة لتجنب التناوب بين القراءات والكتابات.
  • استخدم Scroll Timelines أو IntersectionObserver بدلاً من استطلاع موقف التمرير للرسوم المتحركة المرتبطة بالتمرير.

Evitar

  • قيادة الرسوم المتحركة مباشرة من أحداث التمرير أو قيم scrollTop/scrollY.
  • خلط أنظمة رسوم متحركة متعددة تقيس أو تعدل التخطيط في نفس الإطار.
  • تحريك متغيرات CSS للتحويل أو العتامة أو الموقف دون فهم آثار الوراثة.

Preguntas frecuentes

ما هو أهم قاعدة لأداء الرسوم المتحركة؟
فضل دائماً التحويل والعتامة للرسوم المتحركة. هذه الخصائص تعمل على مؤشر ترابط compositor، مما يتجنب عمليات التخطيط والرسوم البيانية المكلفة.
كيف أصلح اهتزاز التخطيط؟
اجمع جميع قراءات DOM (مثل getBoundingClientRect) قبل أي عمليات كتابة. اقرأ مرة واحدة، ثم اكتب جميع التغييرات. استخدم تقنية FLIP لتأثيرات التخطيط.
هل يمكنني تحريك تأثيرات التمويه؟
اجعل رسوم تحريك التمويه صغيرة (8 بكسل أو أقل) واستخدمها فقط لتأثيرات قصيرة لمرة واحدة. لا تحرك التمويه باستمرار أو على مساحات كبيرة.
ماذا يجب أن أستخدمه للرسوم المتحركة المرتبطة بالتمرير؟
فضل CSS Scroll Timelines عند توفرها. استخدم IntersectionObserver آخر للكشف عن الرؤية. لا تستطلع موقف التمرير أبداً في حلقات requestAnimationFrame.
كيف يجب أن أستخدم will-change؟
طبق will-change مؤقتاً وبشكل جراحي، وليس بشكل دائم. تجنب ترقي الكثير من العناصر أو العناصر الكبيرة كطبقات بسبب النفقات العامة للذاكرة.
هل تهجر هذه المهارة مكتبة الرسوم المتحركة الخاصة بي؟
لا. تطبق هذه المهارة إرشادات الأداء ضمن مكدس الرسوم المتحركة الحالي الخاص بك. لن تهاجر أو تعيد كتابة مكتبات الرسوم المتحركة إلا إذا طُلب ذلك صراحة.

Detalles del desarrollador

Estructura de archivos

📄 SKILL.md