شعار Prompt Context Engineer

Prompt Context Engineer

مؤسسة
pnp
prompt-context-engineer

حوّل أي مطالبة أو طلب أو فكرة أولية إلى مطالبة منظمة جيدًا ومصممة وفق السياق، باستخدام مبادئ هندسة السياق لدى Andrej Karpathy. استخدم هذه المهارة كلما طلب المستخدم تحسين مطالبة أو إعادة صياغتها أو تنظيمها أو تحسينها أو «هندستها»؛ أو ذكر هندسة المطالبات أو هندسة السياق؛ أو أرسل مطالبة وطلب جعلها أفضل؛ أو أراد المساعدة في كتابة مطالبة نظام أو تعليمات لذكاء اصطناعي؛ أو قال عبارات مثل «حوّل هذا إلى مطالبة جيدة» أو «اجعل هذه المطالبة تعمل بشكل أفضل» أو «لا يعطيني Claude ما أريده بهذه المطالبة». استخدمها أيضًا عندما يشارك المستخدم طلبًا غامضًا ويريد صراحةً تحويله إلى مطالبة عالية الجودة قابلة لإعادة الاستخدام. لا تستخدم هذه المهارة للإجابة عن المطالبة الأصلية أو تنفيذها، أو لكتابة مستندات عامة (غير متعلقة بالمطالبات)، أو لإنشاء محتوى أو شيفرة لا يتعلق بصياغة مطالبة.

Add to TypingMind

نظرة عامة

الناشرpnp
المستودعcopilot-prompts
اسم المهارةprompt-context-engineer
النجوم
894
التفريعات
307
الملفات المرفقة
5
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها pnp على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Prompt Context Engineer في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/pnp/copilot-prompts/tree/main/samples/skills/prompt-context-engineer
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pnp/copilot-prompts.git /tmp/copilot-prompts
mkdir -p .claude/skills
cp -r /tmp/copilot-prompts/samples/skills/prompt-context-engineer .claude/skills/prompt-context-engineer
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Prompt Context Engineer في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Prompt Context Engineer تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Prompt Context Engineer بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Prompt Context Engineer

Convert a raw prompt or request into a structured prompt built on context engineering principles.

The guiding idea, from Andrej Karpathy: context engineering is "the delicate art and science of filling the context window with just the right information for the next step." A prompt is not one clever sentence — it is everything the model sees. The job is to supply each piece of context the task genuinely needs (task framing, background, examples, constraints, output format) and ruthlessly exclude everything it doesn't. Too little or wrongly-formed context and the model can't perform; too much or irrelevant context and quality degrades and cost rises.

Workflow

Follow these four steps in order.

Step 1 — Diagnose the raw prompt

Read the user's original prompt or request and determine:

  1. Target type — Is this a one-off prompt for a chat assistant, or a reusable system prompt / API instruction? Cues: "system prompt", "for my app", "API", "agent" → system prompt. Otherwise default to a chat prompt. If building a system prompt, also identify what the user turns will contain.
  2. Task type — generation (writing, code), transformation (summarize, translate, rewrite), extraction/analysis, classification, conversation/roleplay, or agentic/multi-step.
  3. Component audit — Check the raw prompt against the context component checklist below. Mark each component as PRESENT, INFERABLE (you can supply a sensible default), or UNCLEAR (genuinely ambiguous and materially affects the output).

Context component checklist:

ComponentWhat it answers
Task definitionWhat exactly should the model do? What does "done" look like?
Role / perspectiveWhat expertise or persona should the model adopt, if any?
Background / dataWhat facts, documents, or domain knowledge does the task depend on?
AudienceWho consumes the output, and at what expertise level?
Examples (few-shot)Would 1–3 input→output examples disambiguate the task?
ConstraintsLength, tone, scope, things to avoid, edge-case handling
Output formatStructure: prose, list, JSON, table, markdown, specific template
State / historyFor multi-turn or agentic prompts: what prior state must be carried?
Success criteriaHow will the user judge whether the output is good?

Not every prompt needs every component. A component is only worth including if its absence would plausibly change the output. Adding components a task doesn't need is itself a context engineering failure — it dilutes the signal.

Step 2 — Resolve gaps (infer first, ask rarely)

For each missing component:

  • INFERABLE → supply a sensible default. Choose what a thoughtful expert would assume given the task and any conversation context. Record every inference you make.
  • UNCLEAR → only mark a component UNCLEAR when reasonable defaults would diverge wildly (e.g., "write something about our product" — for whom? marketing copy or internal docs?). These get an open question.

Then, before writing the final prompt, present a single compact confirmation block:

  • List your inferences as yes/no confirmations, batched together (aim for 2–4, never more than 5). Example: "I've assumed: (1) audience is non-technical executives — yes? (2) output should be under one page — yes? (3) formal tone — yes?"
  • Append any open questions for the UNCLEAR items (at most 1–2).
  • If an interactive question/options tool is available in the environment, use it for this step; otherwise ask in plain text.

If the user confirms everything or doesn't care ("just go ahead"), proceed with the inferences. If the raw prompt is already complete and unambiguous, skip the questions entirely and go straight to Step 3 — don't manufacture questions for their own sake.

Exception — speed mode: if the user says anything like "don't ask, just rewrite it", skip all questions, infer everything, and list the assumptions beneath the finished prompt instead.

Step 3 — Engineer the prompt

Assemble the structured prompt. Apply these principles:

  1. Right information, right form. Every section earns its place. Cut anything the model doesn't need for this task. A concise summary of background beats a dump of raw material.
  2. Structure with clear delimiters. Use labeled sections. For prompts aimed at Claude, XML-style tags are the strongest delimiter (<task>, <context>, <examples>, <output_format>). Markdown headers are an acceptable alternative if the user prefers. Separate instructions from data — never interleave them.
  3. Instructions before data, format last. Order sections: role → task → background/context → examples → constraints → output format. Put long documents/data in their own clearly-tagged block.
  4. Examples over adjectives. One concrete input→output example beats three sentences of description. Include examples whenever the task has a non-obvious style or format. Write realistic, minimal examples — not bloated ones.
  5. Positive instruction. Say what to do, not only what to avoid. "Write in plain conversational sentences" beats "don't be too formal".
  6. Make success checkable. Where possible, state acceptance criteria the user (or the model itself) can verify.
  7. Placeholders for variable inputs. In reusable/system prompts, mark slots with {{VARIABLE_NAME}} and explain each slot briefly.
  8. Compression pass. Re-read the draft and delete redundant or low-value lines. Shorter prompts with high information density outperform long diluted ones.

Use the template skeletons in references/templates.md as starting points — read that file when you reach this step, pick the skeleton matching the task type, and adapt it. Don't force a skeleton onto a task it doesn't fit.

Step 4 — Deliver

Present the result in this structure:

  1. The engineered prompt in a single fenced code block so it can be copied in one click. Nothing else inside the block.
  2. What changed — 2–4 sentences (not bullets) explaining the most important structural improvements and why they matter for output quality.
  3. Assumptions made — only if any inferences were not yet confirmed; one short line each.
  4. Optional tuning levers — at most 2 suggestions for components the user could add later (e.g., "adding 2 real examples of past reports would lock in the format"), only if genuinely valuable.

Keep the commentary brief. The prompt is the deliverable; the explanation is a footnote.

Quality bar

A successfully engineered prompt should pass this self-check before delivery:

  • Could a capable model with no other context produce the desired output from this prompt alone?
  • Is every sentence in the prompt load-bearing? (If a line could be deleted without changing the output, delete it.)
  • Are instructions and data clearly separated?
  • Is the desired output format unambiguous?
  • Is it the user's intent, not a generic improvement? (The engineered prompt must stay faithful to what they asked for — don't expand scope.)

What this skill is not

  • It does not answer the original prompt. If the user says "improve this prompt: summarize this article", produce a better prompt — don't summarize the article. If intent is ambiguous (they pasted a prompt with no instruction), ask one short question: "Do you want me to restructure this as a prompt, or answer it?"
  • It does not pad. If the raw prompt is already excellent, say so, make only marginal improvements, and keep it short.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي Prompt Context Engineer؟

حوّل أي مطالبة أو طلب أو فكرة أولية إلى مطالبة منظمة جيدًا ومصممة وفق السياق، باستخدام مبادئ هندسة السياق لدى Andrej Karpathy. استخدم هذه المهارة كلما طلب المستخدم تحسين مطالبة أو إعادة صياغتها أو تنظيمها أو تحسينها أو «هندستها»؛ أو ذكر هندسة المطالبات أو هندسة السياق؛ أو أرسل مطالبة وطلب جعلها أفضل؛ أو أراد المساعدة في كتابة مطالبة نظام أو تعليمات لذكاء اصطناعي؛ أو قال عبارات مثل «حوّل هذا إلى مطالبة جيدة» أو «اجعل هذه المطالبة تعمل بشكل أفضل» أو «لا يعطيني Claude ما أريده بهذه المطالبة». استخدمها أيضًا عندما يشارك المستخدم طلبًا غامضًا ويريد صراحةً تحويله إلى مطالبة عالية الجودة قابلة لإع...

لماذا تستخدم Prompt Context Engineer على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Prompt Context Engineer عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Prompt Context Engineer في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/pnp/copilot-prompts/tree/main/samples/skills/prompt-context-engineer. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Prompt Context Engineer؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Prompt Context Engineer؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Prompt Context Engineer معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Prompt Context Engineer مجانية؟

نعم. نشرها pnp على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇