شعار User Story Re

User Story Re

المجتمع
jdm4pku
user-story-re

Write requirements-focused user stories with INVEST criteria and structured acceptance criteria. Use when capturing user needs in agile RE contexts where traceability and testability matter.

نظرة عامة

الناشرjdm4pku
المستودعRE-Skills
اسم المهارةuser-story-re
النجوم
27
التفريعات
1
الملفات المرفقة
2
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/user-story-re
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jdm4pku/RE-Skills.git /tmp/RE-Skills
mkdir -p .claude/skills
cp -r /tmp/RE-Skills/skills/user-story-re .claude/skills/user-story-re
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Purpose

Create user stories that satisfy requirements engineering standards -- traceable, testable, prioritized expressions of user need. Each story follows the "As a / I want / So that" format with structured acceptance criteria, evaluated against the INVEST criteria. Use this in agile or hybrid environments where user stories serve as requirements artifacts.

This is not about replacing formal requirements with sticky notes. It is about writing user stories with enough rigor to serve as traceable, verifiable requirements while keeping the conversational, user-centered spirit of agile.

Key Concepts

User Story Format

As a [user class or persona],
I want to [action or capability],
So that [business value or outcome].

Every word earns its place:

  • As a -- Forces identification of a specific user class (not "as a user")
  • I want to -- Describes the capability from the user's perspective
  • So that -- Explains the business value (not a restatement of the action)

INVEST Criteria

Use this as a quality gate before accepting a story into a sprint:

CriterionQuestionRed Flag
IndependentCan this story be developed and delivered without depending on another story?"We can't do this until Story X is done"
NegotiableIs there room for discussion on implementation?Overly prescriptive implementation details
ValuableDoes it deliver value to a user or customer?"As a developer, I want to refactor..."
EstimableCan the team estimate the effort?"We have no idea how complex this is"
SmallCan it be completed in one sprint?Epic disguised as a story
TestableCan you write a test to verify it?"The system should be user-friendly"

Acceptance Criteria Formats

Given/When/Then (Gherkin):

Given [precondition],
When [action],
Then [expected result].

Checklist format:

- [ ] [Verifiable condition 1]
- [ ] [Verifiable condition 2]
- [ ] [Verifiable condition 3]

Rule-based:

Rule: [Business rule that must be satisfied]
Example: [Concrete example of the rule in action]

User Stories in the Requirements Hierarchy

Business Requirements (Vision and Scope)
  -> Epics (large user needs)
    -> User Stories (sprint-sized capabilities)
      -> Acceptance Criteria (testable conditions)
        -> Tasks (implementation work)

Anti-Patterns

  • Technical Stories -- "As a developer, I want to upgrade the database" (not user value)
  • Epic in Disguise -- One story covering 5+ capabilities
  • Vague Value -- "So that I can use the system" (restating the obvious)
  • No Acceptance Criteria -- Story with no way to verify completion

Application

Use template.md for the fill-in structure.

Step 1: Identify the User Class

Reference your stakeholder analysis (skills/stakeholder-analysis/SKILL.md). Use the specific user class name, not "user."

Good: "As a lab technician" Bad: "As a user"

Step 2: Write the Story Statement

Focus on the what (capability) and why (value), not the how (implementation).

Good: "I want to receive an alert when a chemical is about to expire, so that I can remove or replace it before it becomes a safety hazard." Bad: "I want the system to send an email with the subject ALERT and a red icon, so that I see the alert."

Step 3: Write Acceptance Criteria

For each story, write 3-7 acceptance criteria. Each criterion must be:

  • Specific -- Concrete condition, not vague
  • Testable -- A tester can verify pass/fail
  • Independent -- Each criterion stands alone
markdown
#### Acceptance Criteria:
- [ ] Alert is sent via email 30 days before chemical expiration
- [ ] Alert includes chemical name, CAS number, location, and expiration date
- [ ] Alert is sent to the lab technician assigned to the chemical's storage location
- [ ] If the technician has no email on file, alert is sent to the lab manager
- [ ] Alert is not sent for chemicals already marked as "Disposed"

Step 4: Add Requirements Attributes

For RE contexts, augment each story with:

  • Story ID -- Unique persistent identifier (US-001, US-002)
  • Priority -- High / Medium / Low (or MoSCoW)
  • Source -- Who requested this (stakeholder, user class, regulation)
  • Business Rule -- BR-IDs that govern this story
  • Traces to -- Business objective or feature in vision and scope
  • Status -- Proposed / Approved / Implemented / Verified

Step 5: Validate Against INVEST

Before accepting the story, check each INVEST criterion. If any fails, revise:

  • Not Independent? Identify the dependency and either remove it or sequence the stories.
  • Not Valuable? Rewrite to express user value, or reclassify as a technical task.
  • Not Small? Split using techniques: workflow steps, business rules, data variations, CRUD operations, or happy/sad paths.
  • Not Testable? Add specific, measurable acceptance criteria.

Examples

See examples/sample.md for complete examples.

Mini example:

markdown
### US-015: Expiration Alert for Lab Technician
**As a** lab technician,
**I want to** receive an email alert 30 days before a chemical expires,
**So that** I can arrange disposal or replacement before it becomes a
safety hazard.

**Acceptance Criteria:**
- [ ] Email sent 30 days before expiration date
- [ ] Email includes: chemical name, CAS number, location, expiration date
- [ ] Email sent to technician assigned to the storage location
- [ ] No alert for chemicals already marked "Disposed"
- [ ] Alert logged in system audit trail

**Priority:** High
**Source:** Lab Technician user class (Maria Santos)
**Business Rules:** BR-011
**Traces to:** BO-2 (Eliminate expired chemicals)

Common Pitfalls

Pitfall 1: Stories Without Acceptance Criteria

Symptom: "As a user, I want to search for chemicals." No criteria for what constitutes a successful search.

Consequence: Developer implements minimal search. Tester has no basis for testing. Arguments ensue.

Fix: Every story must have at least 3 acceptance criteria before entering a sprint.


Pitfall 2: "So That" Restates "I Want To"

Symptom: "I want to log in, so that I can access the system."

Consequence: No insight into why this matters. Does not help prioritize.

Fix: Dig into the real value: "so that I can check my experiment results without walking to the lab."


Pitfall 3: Too Big (Epic in Disguise)

Symptom: A single story with 15 acceptance criteria covering multiple capabilities.

Consequence: Cannot be completed in one sprint. Too complex to estimate.

Fix: Split by workflow step, business rule, data variation, or happy/sad path. Each resulting story should have 3-7 acceptance criteria.


Pitfall 4: No Traceability

Symptom: 200 user stories in a backlog with no link to business objectives.

Consequence: Cannot answer "why are we building this?" Cannot demonstrate coverage of business needs.

Fix: Add a "Traces to" attribute linking each story to a business objective or feature in the vision and scope document.

References

Related Skills

  • skills/stakeholder-analysis/SKILL.md -- User classes for the "As a" clause
  • skills/acceptance-criteria/SKILL.md -- Detailed guidance on writing acceptance criteria
  • skills/use-case/SKILL.md -- More detailed alternative for complex interactions
  • skills/vision-and-scope/SKILL.md -- Business objectives that stories trace to
  • skills/requirements-traceability/SKILL.md -- Maintaining story-to-objective traceability

External Frameworks

  • Mike Cohn, User Stories Applied (2004) -- Origin of the format
  • Bill Wake, "INVEST in Good Stories" (2003) -- The INVEST acronym
  • Karl Wiegers & Joy Beatty, Software Requirements, Third Edition (2013) -- Chapter 8

Skill type: Component Dependencies: References skills/stakeholder-analysis/SKILL.md, skills/vision-and-scope/SKILL.md Used by: skills/requirements-analysis-process/SKILL.md, skills/srs-document/SKILL.md

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي User Story Re؟

Write requirements-focused user stories with INVEST criteria and structured acceptance criteria. Use when capturing user needs in agile RE contexts where traceability and testability matter.

لماذا تستخدم User Story Re على TypingMind؟

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

كيف أثبّت User Story Re في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/jdm4pku/RE-Skills/tree/main/skills/user-story-re. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام User Story Re؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع User Story Re؟

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

هل مهارة الذكاء الاصطناعي User Story Re مجانية؟

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

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

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

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

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

عرض الكل

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

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