Skillpedia
تحسين محركات البحث (SEO)75k · #2845

filename-quality

ما الذي تفعله

تراجع هذه المهارة أسماء ملفات الصور في موقع أو مشروع، وتقترح أسماء أوضح. وهي موجهة إلى أصحاب المواقع والمطورين الذين يريدون بحثًا أفضل عن الصور ومجلدات أصول مرتبة.

متى تستخدمها

  • ✓عندما تحمل ملفات الصور أسماء مثل IMG_4532.jpg أو image1.jpg.
  • ✓عندما تريد أن تظهر صورك بشكل أفضل في بحث الصور.
  • ✓عندما يجد فريقك صعوبة في إيجاد الصور في مجلد أصول كبير.

رابط المهارة

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/filename-quality/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/filename-quality/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك فحص أسماء ملفات الصور عندي واقتراح أسماء أفضل؟”

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

كيف تعمل

يفحص الوكيل مراجع الصور في الكود ومجلدات الأصول بحثًا عن أسماء تولدها الأنظمة أو غير واضحة. ويقترح أسماء بحروف صغيرة مفصولة بشرطات تصف كل صورة.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Use descriptive image filenames

Google explicitly recommends descriptive filenames in its Image SEO best practices. A file named red-leather-wallet.jpg gives search engines context about the image content, improving discoverability in image search. Generic filenames waste this SEO signal. Descriptive names also help developers maintain large asset libraries without opening every file to identify its content.

Quick Reference

  • Use descriptive, hyphen-separated filenames: hero-homepage-team-collaboration.jpg
  • Avoid generic names like image1.jpg, photo.png, or camera defaults like IMG_4532.jpg
  • Use lowercase only—avoid uppercase letters and spaces which can cause URL encoding issues
  • Google uses filenames as a relevance signal for image search results

Check

Scan all image file references in this codebase (<img src>, CSS url(), import statements, and public/assets directories). Identify filenames that: 1) Use auto-generated names (e.g., IMG_1234.jpg, DSC_0056.png, screenshot-2024-01-01.png). 2) Use meaningless names (e.g., image1.jpg, photo.png, pic.jpg). 3) Contain spaces (e.g., 'my photo.jpg'). 4) Use underscores as word separators (e.g., hero_image.jpg instead of hero-image.jpg). 5) Mix uppercase and lowercase letters. Report each problematic filename with its path.

Fix

Rename image files with descriptive, SEO-friendly names: 1) Replace generic names with descriptive ones reflecting the content (e.g., rename IMG_1234.jpg to blue-running-shoes-side-view.jpg). 2) Use lowercase letters only. 3) Replace spaces and underscores with hyphens. 4) Keep names concise but meaningful—3 to 5 words is ideal. 5) Update all references to the renamed file in HTML, CSS, and JavaScript. For large-scale renames, provide a migration script that reads old paths, generates new names, and updates all references.

Explain

Explain why descriptive filenames matter for image SEO. Google explicitly states it uses filename as a signal for image search ranking. A filename like product-red-leather-wallet.jpg gives Google context about the image before it even analyses the pixels. Generic filenames (image1.jpg, photo.png) provide no signal. Additionally, descriptive filenames improve developer experience—team members can understand what an asset is without opening it.

Code Review

Review image assets, markup, and delivery configuration related to Use descriptive image filenames. Flag exact files or components where format choice, sizing, or loading behavior violates the rule, and describe how to confirm the fix in DevTools.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/images/filename-quality

الأسئلة الشائعة

لماذا تهم أسماء الملفات للبحث؟

تقول المهارة إن Google توصي بأسماء ملفات وصفية كإشارة سياقية لبحث الصور.

ما أسلوب التسمية الذي توصي به؟

كلمات بحروف صغيرة مفصولة بشرطات، مثل hero-homepage-team-collaboration.jpg.

ماذا عن المسافات والشرطات السفلية؟

تنبه المهارة إلى المسافات والشرطات السفلية، وتقترح الشرطة العادية بديلًا للفصل بين الكلمات.

التفاصيل

الوصف الأصلي من المؤلف

Use when reviewing image assets, markup, and CDN or build transforms related to Use descriptive image filenames. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#2845
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة