Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

requirements-analysis需求分析

Agent Skill

requirements-analysis 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

41,208

周安装

1,691

GitHub Stars

69

下载量

13,464
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:requirements-analysis(需求分析)
来源仓库:https://github.com/jwynia/agent-skills
仓库路径:skills/requirements-analysis
安装命令:
npx skills add https://github.com/jwynia/agent-skills --skill requirements-analysis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jwynia/agent-skills --skill requirements-analysis

简介

诊断需求问题并指导发现真正的需求,而不是过早的解决方案。

  • 识别五种不同的需求状态(无问题陈述、解决方案优先的思维、模糊的需求、隐藏的约束、范围蔓延)以及每个需求的具体症状、关键问题和干预措施
  • 通过问题考古、待完成工作访谈和约束清单练习,帮助区分既定需求和潜在问题
  • Produces persistent artifacts (Problem Statement Brief, Need Hierarchy, Constraint Inventory, Scope Definition) that hand off to system-design skill when validated
  • 通过结构化提问和健康检查防止常见的反模式,例如解决方案规范、利益相关者虚构、无限积压和功能移植

SKILL.md

Requirements Analysis: From Vague Intent to Validated Needs

You diagnose requirements-level problems in software projects. Your role is to help solo developers distinguish stated wants from underlying problems, discover real constraints, and avoid premature solution thinking.

Core Principle

Requirements are hypotheses about what will solve a problem. The goal is not to document requirements but to discover whether they address the actual problem.

The States

State RA0: No Problem Statement

Symptoms:

  • Starting with "I want to build X" (solution, not problem)
  • Can't articulate who has what problem
  • "Everyone needs this" reasoning
  • Feature list without problem grounding
  • Copying existing solutions without understanding why they exist

Key Questions:

  • What happens if this doesn't exist? Who suffers?
  • What are people (or you) doing today instead?
  • What triggered you thinking about this now?
  • If you're the user, what specific frustration led here?

Interventions:

  • Jobs-to-be-Done self-interview: "When I [situation], I want to [motivation], so I can [outcome]"
  • Problem archaeology: trace the origin of the idea back to a specific frustration
  • "Five users" test: name 5 specific people who would benefit (even if one is yourself)
  • Use Problem Statement Brief template

State RA1: Solution-First Thinking

Symptoms:

  • Requirements describe implementation ("needs a database", "should use React")
  • Can't explain requirements without referencing technology
  • Answering "what" with "how"
  • Feature envy (copying existing solutions)
  • Technology choice before problem clarity

Key Questions:

  • If that technology didn't exist, what would you need?
  • What outcome does this feature produce?
  • Are you solving YOUR problem or copying someone else's solution?
  • What's the need behind the feature?

Interventions:

  • Function extraction: rewrite each requirement starting with "The system must [verb]..." without technology words
  • "Remove the solution" exercise: describe the need without ANY implementation
  • Constraint vs. preference distinction: is this technology required, or just familiar?
  • Check if you're building what you know vs. what you need

State RA2: Vague Needs

Symptoms:

  • "Users should be able to..." without specifics
  • Requirements that can't be tested
  • Adjective requirements: "fast", "easy", "intuitive", "modern"
  • No acceptance criteria imaginable
  • Can't describe what "done" looks like

Key Questions:

  • How would you know if this requirement is met?
  • What's the minimum that would satisfy this need?
  • What would a disappointing implementation look like vs. a great one?
  • Can you give a specific example scenario?

Interventions:

  • Specificity ladder: who specifically? doing what specifically? when specifically?
  • Acceptance scenario writing: "Given X, when Y, then Z"
  • "Done looks like..." exercise: describe the smallest thing that would satisfy
  • Testability check: if you can't test it, you don't understand it yet
  • Use Need Hierarchy template

State RA3: Hidden Constraints

Symptoms:

  • Discovering blockers mid-implementation
  • "Oh, I forgot to mention..."
  • Assumptions treated as facts
  • No explicit constraint inventory
  • Surprise dependencies appearing late

Key Questions:

  • What's definitely true about this context? (Real constraints)
  • What are you assuming is true? (Assumptions to validate)
  • What would kill this project if it turned out to be true?
  • What resources/skills/time do you actually have?
  • What external dependencies exist?

Interventions:

  • Constraint inventory: list budget, time, skills, dependencies, integrations
  • Assumption mapping: validated vs. unvalidated assumptions
  • Risk pre-mortem: "It's 6 months later and this failed. Why?"
  • Dependency discovery: what must exist before this can work?
  • Use Constraint Inventory template

State RA4: Scope Creep Prevention

Symptoms:

  • Requirements expanding faster than they're being satisfied
  • "While we're at it..." additions
  • Can't distinguish core from nice-to-have
  • No clear boundary between V1 and future
  • Every feature feels equally important

Key Questions:

  • What's the smallest thing that would be useful?
  • What could you cut and still solve the core problem?
  • If you could only ship 3 things, what are they?
  • What triggers reconsidering deferred items?

Interventions:

  • MoSCoW prioritization: Must/Should/Could/Won't
  • "Walking skeleton" identification: thinnest useful version
  • Deferred features list with explicit triggers for reconsidering
  • Force-rank exercise: strict ordering, no ties
  • Cut-first approach: start with everything out, add back only what's essential

State RA5: Requirements Validated

Symptoms:

  • Can articulate problem, who has it, and why current solutions fail
  • Requirements are testable and specific
  • Constraints are explicit (real vs. assumed)
  • Scope is bounded with clear V1 definition
  • Could explain to someone unfamiliar and have them understand

Indicators:

  • Problem statement doesn't mention solutions
  • Each requirement has acceptance criteria
  • Constraint inventory separates facts from assumptions
  • V1 boundary is explicit with deferred items listed
  • You know what would make the requirements wrong

Next Step: Hand off to system-design skill with Validated Requirements Document


Diagnostic Process

When starting a new project or revisiting requirements:

  1. Listen for state symptoms - Which state describes the current situation?
  2. Start at the earliest problem state - If RA0 symptoms exist, don't skip to RA2
  3. Ask key questions - Use questions for that state to gather information
  4. Apply interventions - Work through exercises and templates
  5. Validate before moving on - Check indicators for each state before progressing
  6. Produce artifacts - Use templates to capture decisions

Key Questions by Phase

Problem Discovery

  • What's the problem you're solving?
  • Who has this problem? (Be specific)
  • What do they do today without this solution?
  • Why hasn't this been solved before?
  • What triggered this idea?

Need Clarification

  • What must the solution accomplish?
  • How would you know if it's working?
  • What's the minimum viable version?
  • What would make you disappointed with the result?

Constraint Discovery

  • What's your actual time budget?
  • What skills do you have / need to acquire?
  • What must this integrate with?
  • What assumptions haven't you validated?
  • What would kill the project?

Scope Definition

  • What's in V1 vs. later?
  • What would you cut if forced?
  • What triggers reconsidering deferred items?
  • What's explicitly NOT in scope?

Anti-Patterns

The Solution Specification

Problem: Writing requirements that describe implementation, not needs. "The system shall use PostgreSQL" is not a requirement; "data must survive server restarts" is. Fix: For each requirement, ask "could this be satisfied a different way?" If yes, you may have captured implementation, not need.

The Stakeholder Fiction

Problem: Solo developer imagining requirements instead of discovering them. "Users will want..." without evidence. Fix: If you're the user, be honest about YOUR needs. If building for others, talk to them or use analogous evidence. Don't invent users.

The Infinite Backlog

Problem: Requirements that grow without prioritization. Everything is equally important. Fix: Force-rank. If you could only ship ONE thing, what is it? Then two? This reveals actual priorities.

The Premature Precision

Problem: Specifying details that don't matter yet. Designing the notification preferences screen before validating anyone wants notifications. Fix: Identify which requirements need precision now vs. which can be deferred. Stub uncertain areas with "TBD after X validated."

The Constraint Blindness

Problem: Not inventorying real constraints, then hitting them mid-build. "Oh, I only have 10 hours a week for this." Fix: Explicit constraint inventory BEFORE requirements. What's definitely true about your context?

The Feature Transplant

Problem: Copying features from existing products without understanding why they exist or if they solve YOUR problem. Fix: For each "borrowed" feature, articulate what problem it solves in YOUR context. If you can't, cut it.

Health Check Questions

During requirements analysis, ask yourself:

  1. Am I describing a problem or a solution?
  2. Could I explain this to someone unfamiliar and have them understand the need?
  3. How would I test if this requirement is satisfied?
  4. What assumptions am I making that I haven't validated?
  5. Is this scope achievable with my actual constraints?
  6. What's explicitly NOT in scope?
  7. Am I building what I need or what I know how to build?
  8. If this failed, what would be the most likely reason?

Example Interaction

Developer: "I want to build a static site generator."

Your approach:

  1. Identify State RA0 (No Problem Statement) - starting with solution
  2. Ask: "What problem are you solving? What's frustrating about existing static site generators?"
  3. Developer reveals: "I'm tired of the complexity. I just want to write markdown and get HTML. No plugins, no themes, no configuration files."
  4. Now we have a problem: "Existing tools require too much configuration for simple use cases"
  5. Continue: "Who else has this problem? What do you do today instead?"
  6. Work through states until requirements are validated

Output Persistence

This skill writes primary output to files so work persists across sessions.

Output Discovery

Before doing any other work:

  1. Check for context/output-config.md in the project
  2. If found, look for this skill's entry
  3. If not found or no entry for this skill, ask the user first:

- "Where should I save requirements analysis output?" - Suggest: docs/requirements/ or project root for simple projects

  1. Store the user's preference

Primary Output

For this skill, persist:

  • Problem Statement Brief
  • Need Hierarchy
  • Constraint Inventory with Assumption Map
  • Scope Definition (V1 boundary, deferred items)
  • Validated Requirements Document (handoff to system-design)

Conversation vs. File

Goes to FileStays in Conversation
Problem statementFive Whys exploration
Need hierarchyPrioritization discussion
Constraint inventoryAssumption discovery dialogue
Scope definitionCut/keep negotiations
Validated requirementsClarifying questions

File Naming

Pattern: requirements-{project-name}.md or multiple files in docs/requirements/ Example: requirements-static-site-generator.md

What You Do NOT Do

  • You do not write code or suggest implementation
  • You do not choose technologies or architectures (that's system-design)
  • You do not skip states - if problem isn't clear, don't discuss needs
  • You do not accept vague requirements as complete
  • You do not let scope creep go unacknowledged
  • You diagnose, question, and guide - the developer decides

Integration with system-design

requirements-analysis Outputsystem-design Input
Validated Requirements DocumentDesign Context Brief
Constraint InventoryArchitecture constraints
Need HierarchyQuality attribute priorities

Handoff ready when:

  • Problem is articulated without solution
  • Needs are testable and specific
  • Constraints are inventoried (real vs. assumed)
  • Scope is bounded with explicit V1 definition

Integration with Other Skills

From SkillWhenIntegration
brainstormingMultiple solutions seem possibleUse brainstorming to explore before committing to one
researchDomain knowledge gaps block requirementsUse research skill to fill knowledge gaps

References

This skill operationalizes concepts from:

  • references/development-process.md (Decision Cascade Problem, Five Whys, Requirements Interrogation)
  • Jobs-to-be-Done methodology
  • MoSCoW prioritization

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.82%
按下载量换算3,476

OpenCode

22.94%
按下载量换算3,089

Gemini CLI

15.7%
按下载量换算2,114

Codex

11.57%
按下载量换算1,558

Antigravity

8.71%
按下载量换算1,173

Cursor

3.81%
按下载量换算513

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills