AI Rules

قواعد الذكاء الاصطناعي

IntermediateAI Builder Patterns1 min read
ai-rulesllm-rulescoding-rules

Definition

Custom instructions that define how an AI coding assistant should behave in your project.

تعليمات مخصصة تحدد كيفية تصرف مساعد الترميز AI في مشروعك.

Why It Matters

404Fault has AI rules in CLAUDE.md: 'Never use Service Account JSON', 'Always use verifyAdminRequest()', 'Never ask Omar to run terminal commands'.

404Fault لديها قواعد AI في CLAUDE.md: 'لا تستخدم Service Account JSON أبداً'، 'استخدم دائماً verifyAdminRequest()'، 'لا تطلب من عمر أبداً تشغيل أوامر الطرفية'.

Full Definition

AI Rules (like Claude Code's CLAUDE.md or Cursor's .cursorrules) are project-specific instructions that tell an AI coding assistant about your tech stack, conventions, security constraints, and preferences. They persist across sessions and ensure the AI always follows your project's standards without repeating instructions each time.
قواعد AI (مثل CLAUDE.md في Claude Code أو .cursorrules في Cursor) هي تعليمات خاصة بالمشروع تُخبر مساعد الترميز AI عن مكدس التقنيات والاتفاقيات وقيود الأمان.

Example Usage

404Fault has AI rules in CLAUDE.md: 'Never use Service Account JSON', 'Always use verifyAdminRequest()', 'Never ask Omar to run terminal commands'.

404Fault لديها قواعد AI في CLAUDE.md: 'لا تستخدم Service Account JSON أبداً'، 'استخدم دائماً verifyAdminRequest()'، 'لا تطلب من عمر أبداً تشغيل أوامر الطرفية'.

Knowledge Graph

Avoid these mistakes when using AI Rules:

1

Writing AI rules that are too vague to be useful → Include specific tech versions, banned patterns, file naming conventions, and security rules. Concrete beats abstract.

Sign in to unlock guided AI explanations from AI Teacher.

Generate a Prompt

Copy this prompt and use it directly with any AI model — no setup needed.

Ready-to-Use Prompt
Help me build a project using AI Rules.

Explain:
1. What is AI Rules and why it matters
2. The core architecture and required tools
3. Step-by-step implementation plan
4. Common mistakes to avoid: Writing AI rules that are too vague to be useful → Include specific tech versions, banned patterns, file naming conventions, and security rules. Concrete beats abstract.
5. Best practices and production tips

Official Resources

No official documentation link on file for AI Rules yet.