Requirements Analysis Process 标志

Requirements Analysis Process

社区
jdm4pku
requirements-analysis-process

Transform raw elicitation outputs into analyzed, modeled, and structured requirements. Use when moving from "what stakeholders said" to "what the system shall do" through visual modeling, data analysis, and requirements decomposition.

概览

发布者jdm4pku
代码仓库RE-Skills
技能名称requirements-analysis-process
星标数
27
复刻数
1
附带文件
1
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 jdm4pku 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Requirements Analysis Process AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/requirements-analysis-process
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
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/requirements-analysis-process .claude/skills/requirements-analysis-process
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Requirements Analysis Process,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Requirements Analysis Process。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Requirements Analysis Process 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Purpose

Transform raw elicitation outputs into structured, analyzed, modeled requirements. This is the bridge between "what stakeholders said" and "what the system shall do."

This is not elicitation (gathering information) or validation (reviewing requirements). It is the analytical work in between -- decomposing, modeling, structuring, and gap-filling.

Key Concepts

The Analysis Process

Raw Elicitation Outputs
    |
    v
[Classify] - Sort into requirement types
    |
    v
[Model] - Create visual analysis models
    |
    v
[Decompose] - Break high-level needs into detailed requirements
    |
    v
[Analyze Data] - Define data elements and relationships
    |
    v
[Resolve Conflicts] - Identify and resolve inconsistencies
    |
    v
[Verify Completeness] - Check for gaps using models and checklists
    |
    v
Structured Requirements (ready for SRS)

Analysis Techniques by Purpose

PurposeTechniqueSkill Reference
System boundaryContext diagramskills/context-diagram/SKILL.md
Process flowDFDs, swimlane diagrams(inline in this workflow)
Object lifecycleState-transition diagramsskills/state-modeling/SKILL.md
Complex logicDecision tablesskills/decision-table/SKILL.md
Data structureERDs, data dictionaryskills/data-dictionary/SKILL.md
CompletenessCRUD matrixskills/data-dictionary/SKILL.md
BehaviorUse casesskills/use-case/SKILL.md
Business rulesRule catalogskills/business-rule/SKILL.md

Application

Phase 1: Classify Elicitation Outputs (30-60 min)

Take your raw elicitation notes and sort each item into categories:

  1. Functional requirements -- What the system must do
  2. Quality attributes -- Performance, security, usability expectations
  3. Business rules -- Policies and constraints that govern behavior
  4. Data requirements -- What data is needed, stored, processed
  5. Constraints -- Technical or business limitations
  6. Assumptions -- Things assumed true but not verified
  7. Open questions -- Ambiguities that need follow-up
  8. Out of scope -- Items explicitly excluded

For each item, note:

  • Source (which stakeholder said this)
  • Confidence level (clear / needs clarification / conflicting)

Phase 2: Create Visual Models (1-2 hours)

Apply analysis models to discover missing requirements:

2.1 Context Diagram (if not done during scoping) Use skills/context-diagram/SKILL.md:

  • Identify all external entities and data flows
  • Each data flow becomes a candidate for interface requirements

2.2 Process Models For each major workflow:

  • Draw a swimlane diagram showing actors and process steps
  • Identify decision points (these become use case alternative flows or decision tables)
  • Identify data stores (these feed the data dictionary)

2.3 State Models Use skills/state-modeling/SKILL.md:

  • For each key domain object (orders, chemicals, requests, etc.)
  • List all states and events
  • Build the state table and fill in every cell
  • Empty cells = missing requirements

2.4 Decision Tables Use skills/decision-table/SKILL.md:

  • For any requirement with multiple interacting conditions
  • Build the table, verify 2^N completeness
  • Each rule becomes a testable requirement

Phase 3: Decompose Requirements (1-2 hours)

Transform high-level needs into detailed, atomic requirements:

3.1 From User Needs to System Behavior

Stakeholder said: "I need to know when chemicals are about to expire."
    |
    v
User Requirement: "Lab technician needs expiration visibility."
    |
    v
Functional Requirements:
  - FR-1: System shall display expiration date in chemical list
  - FR-2: System shall highlight chemicals expiring within 30 days
  - FR-3: System shall send email alert at 30-day mark
  - FR-4: System shall send urgent email at 7-day mark
  - FR-5: System shall prevent expired chemicals from being assigned

3.2 Apply EARS Templates Use the EARS patterns from skills/srs-document/SKILL.md:

  • Ubiquitous: "The system shall [always do this]"
  • Event-driven: "When [trigger], the system shall [response]"
  • State-driven: "While [condition], the system shall [behavior]"
  • Unwanted: "If [error], the system shall [handling]"
  • Optional: "Where [feature included], the system shall [behavior]"

3.3 Write Each Requirement For each decomposed requirement:

  • Assign a unique ID
  • Write using "shall" language
  • Link to source (stakeholder, elicitation session)
  • Link to business objective
  • Identify business rules that apply
  • Flag any remaining ambiguity as open questions

Phase 4: Analyze Data (30-60 min)

Use skills/data-dictionary/SKILL.md:

4.1 Build the Data Dictionary

  • Extract every data element mentioned in requirements
  • Define each element: type, format, valid values
  • Compose structures from primitives

4.2 Create CRUD Matrix

  • Cross-reference data entities with system functions
  • Identify missing operations (created but never read? read but never created?)
  • Each gap is a potential missing requirement

4.3 Define Entity Relationships

  • Draw ERD or class diagram showing key entities
  • Identify cardinality (1:1, 1:N, M:N)
  • Each relationship implies data integrity requirements

Phase 5: Resolve Conflicts (30-60 min)

5.1 Identify Conflicts During classification and modeling, you will find:

  • Stakeholder A says X; Stakeholder B says not-X
  • Two requirements that contradict each other
  • A requirement that conflicts with a constraint

5.2 Resolve Each Conflict For each conflict:

  1. Document both positions with source
  2. Identify the root cause (different user classes? different assumptions?)
  3. Propose resolution options
  4. Escalate to the appropriate stakeholder for decision
  5. Document the decision and rationale

Phase 6: Verify Completeness (30 min)

Use these systematic checks:

  • Every data flow in the context diagram has at least one requirement
  • Every cell in every state table is filled
  • Every cell in the CRUD matrix is accounted for
  • Every decision table has 2^N rules (or documented consolidation)
  • Every business rule traces to at least one functional requirement
  • Every user class (from stakeholder analysis) has at least one use case or user story
  • Error handling is specified for every normal flow step
  • Quality attributes are specified for all critical functions
  • Open questions list is reviewed -- any remaining TBDs?

Examples

See examples/sample.md for an analysis walkthrough.

Common Pitfalls

Pitfall 1: Skipping Visual Models

Symptom: Going directly from elicitation notes to writing requirements in an SRS.

Consequence: Missing requirements that visual models would reveal (unhandled states, incomplete data operations, missing decision rules).

Fix: Invest 1-2 hours in visual modeling. The CRUD matrix alone typically reveals 5-10 missing requirements.


Pitfall 2: Writing Requirements at the Wrong Level

Symptom: Some requirements are high-level ("manage chemicals") and others are detailed ("validate CAS check digit using algorithm X").

Consequence: Inconsistent abstraction level makes the SRS hard to review, estimate, and test.

Fix: Decompose consistently. Each requirement should be at the same level of detail -- one testable behavior per requirement.


Pitfall 3: Ignoring Conflicts

Symptom: Contradictory requirements from different stakeholders are both included in the SRS without resolution.

Consequence: Developers discover the contradiction during implementation and must make a design decision that should have been a requirements decision.

Fix: Resolve every conflict before baselining. Document the decision and rationale so the "losing" stakeholder understands why.

References

Related Skills (Orchestrated by This Workflow)

  • skills/context-diagram/SKILL.md -- Phase 2: Boundary modeling
  • skills/state-modeling/SKILL.md -- Phase 2: Object lifecycle modeling
  • skills/decision-table/SKILL.md -- Phase 2: Complex logic analysis
  • skills/data-dictionary/SKILL.md -- Phase 4: Data analysis and CRUD matrix
  • skills/use-case/SKILL.md -- Phase 3: Behavioral decomposition
  • skills/business-rule/SKILL.md -- Phase 1: Classification
  • skills/srs-document/SKILL.md -- Final output structure

External Frameworks

  • Karl Wiegers & Joy Beatty, Software Requirements, Third Edition (2013) -- Chapters 12-13
  • Tom DeMarco, Structured Analysis and System Specification (1979) -- DFDs and data dictionary
  • Peter Chen, "The Entity-Relationship Model" (1976) -- Data modeling

Skill type: Workflow Dependencies: Follows skills/requirements-elicitation-workshop/SKILL.md Outputs: Ready-to-write requirements for skills/srs-document/SKILL.md

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Requirements Analysis Process AI 技能有什么作用?

Transform raw elicitation outputs into analyzed, modeled, and structured requirements. Use when moving from "what stakeholders said" to "what the system shall do" through visual modeling, data analysis, and requirements decomposition.

为什么在 TypingMind 中使用 Requirements Analysis Process?

因为您只需安装一次,就能搭配任何模型使用。Requirements Analysis Process 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Requirements Analysis Process?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/jdm4pku/RE-Skills/tree/main/skills/requirements-analysis-process。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Requirements Analysis Process?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Requirements Analysis Process 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Requirements Analysis Process 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Requirements Analysis Process AI 技能免费吗?

jdm4pku 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇