Logo User Story Re

User Story Re

Cộng đồng
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.

Tổng quan

Nhà phát hànhjdm4pku
Kho mãRE-Skills
Tên kỹ nănguser-story-re
Sao
27
Bản fork
1
Tệp đi kèm
2
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được jdm4pku công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI User Story Re trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/user-story-re
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật User Story Re trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp User Story Re ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng User Story Re với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI User Story Re làm được gì?

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.

Vì sao nên dùng User Story Re trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. User Story Re là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài User Story Re trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jdm4pku/RE-Skills/tree/main/skills/user-story-re. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng User Story Re?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng User Story Re với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng User Story Re với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI User Story Re có miễn phí không?

Kỹ năng này được jdm4pku phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇