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ファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    jdm4pkuがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「User Story Re」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/user-story-re
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでUser Story Reを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にUser Story Reを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、User Story Reは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでUser Story Reを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。User Story Reはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにUser Story Reをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/jdm4pku/RE-Skills/tree/main/skills/user-story-reを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

User Story Reを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

User Story Reで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもUser Story Reを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「User Story Re」は無料ですか?

jdm4pkuがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇