cookie-consent
ما الذي تفعله
تتحقق هذه المهارة من أن الموقع يطلب الموافقة قبل وضع ملفات تعريف الارتباط غير الضرورية، مثل وسوم التحليلات أو الإعلانات. وهي موجهة إلى أصحاب المواقع الذين يجب أن يلتزموا بقواعد الخصوصية في أماكن مثل الاتحاد الأوروبي.
متى تستخدمها
- ✓عندما يضع موقعك ملفات تعريف ارتباط للتحليلات أو الإعلانات لزوار من الاتحاد الأوروبي.
- ✓عندما تُحمَّل سكربتات التتبع قبل أن يوافق الزائر.
- ✓عندما تحتاج إلى طريقة يغيّر بها الزوار اختيارهم أو يسحبونه.
رابط المهارة
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/cookie-consent/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أضف إلى موقعي شريط ملفات تعريف الارتباط يحجب التحليلات حتى يضغط الزوار على قبول.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يتحقق الوكيل من أن السكربتات غير الضرورية تبقى محجوبة حتى يقبل الزائر تلك الفئة، ويضيف طريقة لتغيير التفضيلات لاحقًا، عادة عبر أداة موافقة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Show a cookie consent notice
GDPR violations can result in fines up to €20 million or 4% of global annual turnover. Regulators across the EU have actively fined organizations for deploying tracking cookies without valid consent.
Quick Reference
- GDPR requires consent before setting non-essential cookies (analytics, advertising, personalization)
- Essential/strictly necessary cookies (session, security, login) do not require consent
- Consent must be freely given, specific, informed, and unambiguous — pre-ticked boxes are invalid
- Users must be able to withdraw consent as easily as they gave it
- Scripts and pixels must not load until the user has actively accepted their category
- Non-essential trackers must stay blocked until consent and after revocation
Check
Check whether the site displays a cookie consent notice before setting non-essential cookies. Verify that analytics, advertising, and tracking scripts do not load until the user has actively accepted. Check whether users can reject non-essential cookies without losing access to content.
Fix
Implement a cookie consent management platform (CMP) that blocks non-essential scripts until consent is granted. Configure analytics and tracking tags to initialize only after explicit consent. Provide a mechanism for users to change their consent preferences at any time.
Explain
Explain what GDPR requires for cookie consent, the difference between essential and non-essential cookies, why pre-ticked boxes are invalid consent, and what a technically compliant consent implementation looks like.
Code Review
Review server config, headers, forms, and integration points related to Show a cookie consent notice. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response. Check that tracker initialization is gated on consent and that a persistent "change cookie settings" path exists after the banner is gone.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/privacy/cookie-consent
الأسئلة الشائعة
أي ملفات تعريف الارتباط لا تحتاج إلى موافقة؟
ملفات الضرورة القصوى، مثل ملفات الجلسة والأمان وتسجيل الدخول.
هل يُعد المربع المحدد مسبقًا موافقة؟
لا. تقول المهارة إن المربعات المحددة مسبقًا ليست موافقة صالحة.
كم يمكن أن تبلغ غرامات GDPR؟
تذكر المهارة أنها قد تصل إلى 20 مليون يورو أو 4 بالمئة من الإيرادات السنوية العالمية.
التفاصيل
الوصف الأصلي من المؤلف
Use when reviewing a website for GDPR/CCPA compliance, specifically whether cookie consent is obtained before non-essential cookies are set.
الشعبية
- نجوم GitHub
- 75k
- الترتيب
- #2788
- الترخيص
- MIT
- آخر تحديث
- 31/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
frontendchecklist
75kيفحص شيفرة الواجهة الأمامية والصفحات الحية مقابل أكثر من 380 قاعدة للوصول وسرعة الأداء وتحسين محركات البحث والأمان، بأداة سطر أوامر.
frontend-checklist-global
75kيدقق مشروع الواجهة الأمامية وفق كل قواعد Front-End Checklist البالغ عددها 386، ويقدم إصلاحًا محددًا لكل مشكلة وجدت.
404-page
75kيتأكد من أن صفحة الصفحات غير الموجودة تقدم روابط مفيدة وتُرجع رمز حالة 404 حقيقيًا، لمساعدة الزوار التائهين على إيجاد طريقهم.
about-page
75kيراجع ما إذا كان لموقعك صفحة «من نحن» واضحة تشرح من يديره، لبناء الثقة لدى الزوار ومحركات البحث.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.