ورقة مرجعية

ورقة مرجعية لهندسة الأوامر (2026)

الأنماط العشرة في صفحة واحدة، كلّ واحد في جملة، مع أمثلة جاهزة للنسخ. احفظها، اطبعها، شاركها. مدقّقة مقابل التوثيق الرسمي.

الأنماط العشرة بلمحة

  1. 01
    كن المهندس، لا المنفّذ صِف النتيجة والقيود، ودع النموذج يتولّى التنفيذ.
  2. 02
    ابنِ أمرك كخطّ أنابيب الترتيب مهمّ: الدور، السياق، التعليمات، الأمثلة، ثمّ القيود أخيراً.
  3. 03
    أعطِ النموذج وسيلة للتحقّق من نفسه أعطِ اختباراً أو قائمة تحقّق ليلتقط النموذج أخطاءه أوّلاً.
  4. 04
    اقرأ أوّلاً، خطّط ثانياً، نفّذ أخيراً اطلب التحليل وخطّة قبل النتيجة النهائية، خاصّةً في المعقّد.
  5. 05
    احترم نافذة السياق المزيد من النصّ ليس أفضل. ابقَ موجزاً وضع الأهمّ أوّلاً وأخيراً.
  6. 06
    احفظ قواعدك في ملفّ إعدادات ضع قواعدك الدائمة في ملفّ بدل تكرارها كلّ مرّة.
  7. 07
    افرض مخرجات منظّمة عند الحاجة للمخرجات المقروءة آلياً: أوضاع المخطّط الأصليّة؛ والبداية تساعد في الدردشة.
  8. 08
    لا نموذج واحد يفوز بكلّ شيء طابِق المهمّة مع النموذج. الأمر نفسه قد يختلف بين النماذج.
  9. 09
    دع تمريرة ثانية تراجع الأولى تمريرة مراجعة منفصلة بسياق جديد تلتقط ما فات.
  10. 10
    ابنِ دليل لعب يتراكم احفظ ما ينجح لتحسّن كلّ مهمّة التالية.

أمثلة جاهزة للنسخ

01 كن المهندس، لا المنفّذ

A clear brief
You are writing a short product announcement.

Goal: announce our new CSV export feature to existing users.
Audience: current customers who already use the dashboard.
Must include: what the feature does, how to find it, one line on why it helps.
Constraints: 120-150 words, warm and plain tone, no marketing buzzwords.
Output: the announcement text only, no preamble.

02 ابنِ أمرك كخطّ أنابيب

Pipeline template
ROLE
You are a senior technical editor.

CONTEXT
<paste the article or data here>

TASK
1. Identify the three weakest paragraphs.
2. Rewrite each for clarity, keeping the meaning.
3. Keep the author's voice.

EXAMPLE OF GOOD OUTPUT
Before: "Utilize the functionality to..."
After: "Use it to..."

CONSTRAINTS
- Do not change technical facts.
- Return only the rewritten paragraphs, labeled.
- British English.

03 أعطِ النموذج وسيلة للتحقّق من نفسه

Built-in self-check
Task: write a function that converts a date string to ISO format.

Requirements (check each before answering):
1. Handles "DD/MM/YYYY" and "MM-DD-YYYY".
2. Returns null for invalid input instead of throwing.
3. Includes 3 test cases covering valid, invalid, and empty input.

Before giving the final code, list each requirement and confirm it is satisfied. If any is not, fix it first.

04 اقرأ أوّلاً، خطّط ثانياً، نفّذ أخيراً

Phased request
I need to refactor a messy module. Work in three phases and stop after each:

Phase 1 - Read: summarize what this code does and its main problems.
Phase 2 - Plan: propose a refactor approach as a short numbered plan.
Phase 3 - Act: only after I approve the plan, implement it.

Start with Phase 1.

05 احترم نافذة السياق

Lean over bloated
Instead of pasting an entire 40-page handbook and asking
"summarize the refund policy", paste only the refund section:

CONTEXT (refund policy only):
<paste the 2 relevant paragraphs>

TASK
Summarize the refund policy in 3 bullet points for a customer.

06 احفظ قواعدك في ملفّ إعدادات

A minimal AGENTS.md
# Project rules

Stack: TypeScript, React, Vitest.
Style: functional components, no class components.
Tests: every new function needs a test.
Never: commit secrets, edit files outside /src, add new dependencies without asking.
Done means: code compiles, tests pass, lint is clean.

07 افرض مخرجات منظّمة عند الحاجة

Chat: specify shape + example
Extract the order details as JSON with exactly these keys:
{ "item": string, "quantity": number, "ship_by": "YYYY-MM-DD" }

Rules:
- Return only the JSON object, no commentary.
- If a value is missing, use null.

Order text:
"Need 3 blue mugs shipped before March 2."

08 لا نموذج واحد يفوز بكلّ شيء

A simple routing rule of thumb
Simple, repetitive, high-volume   -> fast/cheap model
Hard reasoning, multi-step, code  -> deep reasoning model
Long-form writing, tone control   -> the model that follows
                                     instructions best for you

Always: test the same task on 2 models before locking it in.

09 دع تمريرة ثانية تراجع الأولى

A reviewer brief
You are a strict reviewer. You did not write the draft below.

Review it against these requirements:
1. Handles empty input.
2. No security issues (e.g. unvalidated input).
3. Has tests for the main paths.

For each requirement: say PASS or FAIL with one line of why.
Then list the top 3 fixes, most important first.

Draft:
<paste the first output here>

10 ابنِ دليل لعب يتراكم

A tiny playbook entry
Task type: summarize a support thread for a manager
Best model: <the one that followed instructions best for you>
Prompt template:
  ROLE: you summarize support threads for busy managers
  TASK: 5 bullets max, lead with the customer's core issue,
        end with the current status
  CONSTRAINTS: no jargon, under 90 words
Why it works: tight format + clear audience = consistent output

آخر تحقّق: June 2026