🧠PROMPTS
3 prompts، صفر hallucination
مرحبًا! 👋 إليك ما وعدتك به:
الـ 3 prompts كاملة التي تجعل Claude Code يخطّط قبل أن يكتب، ويبني دون أن يهلوس، ويختبر قبل أن يقول "انتهينا" — copy/paste مباشرة:
1. SPEC FIRST — يكتب لك الـ plan قبل الـ code:
Before writing ANY code: write a full spec in SPEC.md for this feature — the goal, the user flow, every file you will create or touch, the edge cases, and a numbered implementation plan. Do NOT write code yet. Show me the spec and wait for my OK.
2. BUILD — يبني الـ features التي تحدثت معه عنها سابقًا، ويتبع الـ spec:
Now build the feature by following SPEC.md exactly, step by step in order. After each step, tell me which files you changed and why. If you need anything that is not in the spec, STOP and ask me first — no extra features, and never guess an API you are not sure exists.
3. TEST & FIX — بعد أي code، يجب أن يختبره ويصلحه:
Now test everything you just built: run it, go through the whole flow, and list every bug, error, or broken state you find — system bugs, broken buttons, anything not working right. Then fix them one by one and re-test after each fix. Do not tell me it is done until it runs clean.🔗Claude Codehttps://github.com/anthropics/claude-code←
كيفية البدء
- افتح Claude Code في الـ project الخاص بك.
- prompt 1 → انتظر الـ spec، اقرأه، وأعطه الـ OK.
- prompt 2 → يبني حسب الـ plan، feature بـ feature.
- prompt 3 → يصطاد الـ bugs ويصلحها قبل أن ينهي.
- أعد نفس الدورة لكل feature جديدة — لا hallucination، لا tokens ضائعة. ✅