شعار Write Prd

Write Prd

المجتمع
dianyike
write-prd

اكتب PRD منظّمًا انطلاقًا من قرارات التصميم أو الأفكار الأولية أو سياق المحادثة. استخدمه عندما يريد المستخدم كتابة PRD، أو تحديد المتطلبات، أو توثيق مواصفات ميزة، أو تحويل قرارات التصميم إلى مستند لمتطلبات المنتج. يربط بين استكشاف التصميم (grill-me) وتخطيط التنفيذ (prd-to-plan).

Add to TypingMind

نظرة عامة

الناشرdianyike
المستودعclaude-code-insights
اسم المهارةwrite-prd
النجوم
69
التفريعات
13
الملفات المرفقة
4
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/dianyike/claude-code-insights/tree/main/examples/write-prd
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dianyike/claude-code-insights.git /tmp/claude-code-insights
mkdir -p .claude/skills
cp -r /tmp/claude-code-insights/examples/write-prd .claude/skills/write-prd
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Write PRD

Turn design decisions, rough ideas, or conversation context into a structured PRD that prd-to-plan can consume directly.

Workflow

1. Gather context

Check what's already available before asking the user to repeat themselves:

  • Look for decision records in docs/decisions/ — these are grill-me outputs
  • Check if the user pasted or referenced any existing design notes
  • Scan conversation history for requirements already discussed

If context is thin, interview the user (see Interview Guide).

2. Interview Guide

Fill gaps the existing context doesn't cover. Ask exactly one blocking question per turn — do not batch multiple questions into a single response. This matters because batching overwhelms the user and produces shallow answers; one focused question gets a thoughtful response.

Must answer before drafting (block on these, ask in order):

  1. Who is the target user and what's their pain?
  2. What does "done" look like? (the success state, not the feature list)
  3. What is explicitly out of scope? (non-goals prevent scope creep)

Ask if not inferrable from context (one per turn):

  • What are the priority tiers — what's P0 vs P1 vs nice-to-have?
  • Are there hard technical constraints (existing APIs, schema contracts, third-party limits)?
  • What are the non-functional requirements (performance, security, compliance)?
  • How will success be measured?

Stop interviewing once you have enough to draft. Don't exhaust the user — you can mark gaps as Open Questions in the PRD.

3. Draft the PRD

Use the template at templates/prd.md. Key principles:

  • User stories are the spine — prd-to-plan maps phases to user stories, so every requirement must trace back to at least one story. If a requirement has no user story, either write one or question whether it belongs.
  • Non-goals are as important as goals — they prevent scope creep during prd-to-plan and tdd phases. Be specific: "not building admin dashboard" is better than "keeping it simple."
  • Prioritize ruthlessly — P0/P1/P2 tiers. If everything is P0, nothing is. Push the user to make hard choices.
  • Link decision records — if grill-me decision records exist, reference them in the References section so context isn't lost.
  • Stay at product and system-contract level — PRDs describe what the system promises, not how it's built. Do not include implementation mechanisms such as cookie types (httpOnly), SDK pinning strategies, function names, or file paths. Those belong in the implementation plan, not the PRD.
  • Traceability — every functional requirement must trace back to a user story or a decision in the decision record. If you can't trace it, either write a user story for it or remove the requirement.

4. Review with user

Present the draft and explicitly ask:

  • Are the non-goals correct? (most common source of later scope disputes)
  • Do the P0 user stories capture the minimum viable feature?
  • Any missing technical constraints?

Iterate until the user approves.

5. Write the PRD file

Create docs/prds/ if it doesn't exist. Write to docs/prds/YYYY-MM-DD-<feature-name>.md.

  • Ask the user to confirm the filename before writing
  • If decision records from grill-me exist, add them to the References section

6. Delegated / Eval Mode

If this skill is being executed by a subagent, eval harness, or any caller that provides an explicit output path or workspace, distinguish between draft artifacts and the canonical PRD file:

  • Draft artifacts: Write the PRD draft and any handoff notes to the caller-provided output location
  • Canonical PRD file: Only write docs/prds/YYYY-MM-DD-<feature-name>.md after explicit user confirmation of the filename in the current conversation
  • No silent promotion: Do not treat a draft written to an eval workspace as the canonical PRD
  • Handoff clarity: If canonical write is blocked on confirmation, say so explicitly and include the proposed filename/path

When operating in delegated/eval mode:

  • Prefer saving prd-draft.md plus a short process-log.md or handoff note
  • Preserve unresolved questions so the parent agent can continue the user conversation
  • If the caller gives both an output directory and a confirmed canonical path, write both: the draft artifact for evaluation and the canonical PRD for the repo

Completion Criteria

  • Problem statement clearly articulates user pain (not solution)
  • Every functional requirement traces to a user story
  • Non-goals section is non-empty and specific
  • User stories have priority tiers (P0/P1/P2)
  • User approved the final PRD
  • PRD file written to docs/prds/ with confirmed filename
  • In delegated/eval mode, draft artifacts were written to the caller-provided output path and canonical write was deferred unless explicitly confirmed

Gotchas

  • Do not batch questions: The interview step says "one question per turn" for a reason. Batching 3 questions into one message produces shallow answers — the user skims and gives one-line replies. One focused question gets a thoughtful response. This was confirmed in eval iteration 1 where the skill sent 3 questions at once despite the instruction.
  • Do not leak implementation details into PRDs: Technical constraints like "httpOnly cookies", "SDK versions pinned", or specific API endpoint paths are implementation-level concerns. A PRD should say "session tokens must not be accessible to client-side scripts" (system contract), not "use httpOnly cookies" (implementation). This regression was caught in eval iteration 1 — the with-skill output was more implementation-heavy than the without-skill baseline.
  • Iterate this section: After each PRD session, append new gotchas here

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Write Prd؟

اكتب PRD منظّمًا انطلاقًا من قرارات التصميم أو الأفكار الأولية أو سياق المحادثة. استخدمه عندما يريد المستخدم كتابة PRD، أو تحديد المتطلبات، أو توثيق مواصفات ميزة، أو تحويل قرارات التصميم إلى مستند لمتطلبات المنتج. يربط بين استكشاف التصميم (grill-me) وتخطيط التنفيذ (prd-to-plan).

لماذا تستخدم Write Prd على TypingMind؟

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

كيف أثبّت Write Prd في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/dianyike/claude-code-insights/tree/main/examples/write-prd. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Write Prd؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Write Prd؟

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

هل مهارة الذكاء الاصطناعي Write Prd مجانية؟

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

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

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

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

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

عرض الكل

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

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