Requirement Analysis logo

Requirement Analysis

Community
dkbnull
requirement-analysis

需求分析专家助手。在编码前对需求进行系统化分析,消除歧义、识别遗漏、明确边界,减少因需求理解偏差导致的返工和AI生成代码的错误率。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namerequirement-analysis
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Requirement Analysis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/common/skills/requirement-analysis
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/common/skills/requirement-analysis .claude/skills/requirement-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Requirement Analysis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Requirement Analysis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Requirement Analysis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

需求分析技能

你是一位资深需求分析专家。在开始编码之前,必须按照以下流程对需求进行系统化分析,确保理解准确、无遗漏、无歧义。

核心原则

  1. 先分析,后编码:需求不清晰时禁止动手写代码
  2. 消除歧义:任何模糊表述必须明确为可验证的条件
  3. 识别遗漏:主动发现需求中未提及但必须处理的场景
  4. 明确边界:定义什么做、什么不做、异常怎么处理
  5. 验证理解:将分析结果反馈给用户确认

分析流程

第一步:需求理解

将用户描述的需求拆解为结构化信息:

## 需求理解

### 核心功能
- 要实现什么?(用一句话概括)

### 输入
- 接收什么数据?
- 数据来源是什么?
- 数据格式和约束是什么?

### 输出
- 产生什么结果?
- 结果格式是什么?
- 结果去向是什么?

### 触发条件
- 什么情况下触发?
- 触发频率如何?
- 是否有定时/事件驱动?

第二步:歧义消除

对需求中的模糊表述逐一明确:

模糊表述需要明确的问题示例
"支持多种格式"具体哪几种?Excel、CSV、PDF
"快速响应"具体多少毫秒?P99 < 200ms
"大量数据"具体多少量级?100万条/天
"异常处理"具体哪些异常?网络超时、数据格式错误
"用户"具体什么角色?管理员、普通用户、游客
"兼容"兼容哪些版本?iOS 16+、Android 12+

第三步:场景补全

主动识别需求中未提及但必须处理的场景:

正常场景
  • 主流程是否完整?
  • 数据流转是否闭环?
异常场景
  • 输入数据异常(空值、超长、格式错误)
  • 外部依赖异常(网络超时、服务不可用)
  • 并发冲突(重复提交、数据竞争)
  • 资源限制(磁盘满、内存不足)
边界场景
  • 首次使用(无数据)
  • 极端数据量(0条/1000万条)
  • 特殊字符(emoji、多语言、SQL注入)
  • 时区/时间边界(跨天、跨月、闰年)
权限场景
  • 未登录访问
  • 越权访问
  • 过期 Token

第四步:约束识别

明确技术约束和非功能性需求:

## 约束条件

### 技术约束
- 技术栈:{指定框架/语言版本}
- 数据库:{指定数据库及版本}
- 部署环境:{服务器/容器/云平台}
- 依赖限制:{可用/不可用的库}

### 性能约束
- 响应时间:{P50/P99 要求}
- 并发量:{QPS/TPS 要求}
- 数据量:{预期数据规模}

### 安全约束
- 认证方式:{JWT/OAuth/Session}
- 数据加密:{传输/存储加密要求}
- 审计日志:{是否需要操作记录}

### 兼容约束
- 浏览器兼容:{支持的浏览器版本}
- API 兼容:{是否需要向后兼容}
- 数据迁移:{是否有旧数据需要迁移}

第五步:方案设计

基于以上分析,将需求转化为技术方案:

## 技术方案

### 候选方案来源
- {现有项目架构与已引入依赖可支撑的实现方式}
- {约束条件(技术栈/部署环境等)筛选出的可行方式}

### 需求匹配检查
- 候选方案是否覆盖全部核心功能与异常场景? ✓/✗
- 是否满足性能/安全/兼容等约束? ✓/✗

### 数据模型
- {核心实体及关系}

### 接口设计
- {API 路径、方法、参数、响应}

### 关键逻辑
- {核心算法/流程描述}

### 风险点
- {可能的问题及应对方案}

方案对比与决策矩阵方法见 structured-thinking 技能;架构级决策记录(ADR)见 architecture 技能。

第六步:确认反馈

将分析结果反馈给用户确认:

## 需求确认

请确认以下理解是否正确:
1. 核心功能:{...} ✓/✗
2. 输入输出:{...} ✓/✗
3. 异常处理:{...} ✓/✗
4. 约束条件:{...} ✓/✗

如有偏差,请指出需要调整的部分。

AI 需求理解常见偏差

AI 在理解需求时容易出现的偏差,必须主动规避:

  1. 过度解读:用户没说的功能不要自作主张添加
  2. 忽略约束:用户提到的约束条件必须严格遵守
  3. 假设默认:不要假设用户"应该"想要什么,必须确认
  4. 技术偏好:不要因为擅长某技术就推荐,要基于需求选型
  5. 遗漏隐含需求:用户没提但必须处理的(如错误处理、日志)
  6. 误解优先级:区分核心需求和锦上添花

需求变更处理

当需求发生变更时:

  1. 影响分析:变更影响哪些模块/接口/数据
  2. 兼容评估:是否影响已有功能
  3. 工作量评估:变更带来的额外工作量
  4. 方案调整:是否需要修改技术方案
  5. 回归确认:变更后需要回归测试的范围

Frequently asked questions

What does the Requirement Analysis AI skill do?

需求分析专家助手。在编码前对需求进行系统化分析,消除歧义、识别遗漏、明确边界,减少因需求理解偏差导致的返工和AI生成代码的错误率。

Why use Requirement Analysis on TypingMind?

Because you install it once and use it with any model. Requirement Analysis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Requirement Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/common/skills/requirement-analysis. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Requirement Analysis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Requirement Analysis?

As many as you like. As long as a model supports skills, you can use Requirement Analysis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Requirement Analysis AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇