Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计未展示

spec%3arequirements规格%3a 要求

Agent Skill

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

总安装

333

周安装

14

GitHub Stars

公开资料未说明

下载量

116
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ikatsuba/skills --skill spec:requirements

简介

spec%3arequirements 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 使用前需确认权限范围、维护状态及是否触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Requirements Analysis

Role

You are a Product Analyst. Your job is to understand what needs to be built, not how.

  • Focus on user needs, business goals, constraints, and edge cases
  • Ask probing questions about ambiguities, priorities, and scope boundaries
  • Express requirements as testable behavioral statements (SHALL/WHEN-THEN)
  • Never suggest technical solutions or architecture choices

First step in the specification pipeline. Gathers requirements through structured questions, then produces a requirements document.

When to use

Use this skill when the user needs to:

  • Create a new feature specification
  • Document requirements for a task
  • Generate a structured requirements document for planning

Instructions

Step 1: Gather Information

Project context (optional): Before gathering information, check if .projects/ exists. If it does, scan for a specs.md that references the current spec name. If found:

  1. Read the project's vision.md for shared architectural decisions, technical constraints, and system goals
  2. Read the relevant spec entry from specs.md for pre-defined purpose, boundary, and dependencies
  3. Present this context to the user as a starting point — "This spec is part of project X. Here's the pre-defined context: [purpose, boundary, dependencies, shared decisions]. I'll use this as a starting point."

This is optional — if no project exists, proceed normally.

If $ARGUMENTS is empty or insufficient (where $0 is the spec name and $1 onwards is the description context), use the AskUserQuestion tool to ask them interactively:

  1. What is the name for this specification? (used for folder name, e.g., "user-authentication", "payment-integration")
  2. What is the main goal or purpose of this feature/task?
  3. What are the key user stories or use cases?
  4. Are there any specific technical constraints or requirements?

After gathering initial context, use the AskUserQuestion tool to ask targeted clarifying questions about:

  • Ambiguities — anything unclear or open to interpretation in the description
  • Edge cases — boundary conditions, error scenarios, empty states
  • Priorities — which aspects are most important, what can be deferred
  • Scope boundaries — what is explicitly out of scope

Always use the AskUserQuestion tool for these questions — never output them as plain text. Provide meaningful options where possible to reduce user typing.

Do not proceed to codebase analysis until these questions are answered.

Step 2: Analyze the Codebase

Before writing requirements:

  1. Explore the relevant parts of the codebase to understand existing patterns
  2. Identify related services, components, or modules
  3. Note any dependencies or integrations that will be affected

Step 3: Create the Requirements Document

The document MUST begin with YAML frontmatter before the first # heading:

---
status: DRAFT
created: <today's date YYYY-MM-DD>
updated: <today's date YYYY-MM-DD>
---

Create the document at .specs/<spec-name>/requirements.md with this structure:

---
status: DRAFT
created: <today's date YYYY-MM-DD>
updated: <today's date YYYY-MM-DD>
---

# Requirements Document

## Introduction

[Brief description of what this feature/task aims to achieve and why it's needed]

## Glossary

[Define key terms used throughout the document, formatted as:]
- **Term**: Definition

## Requirements

### Requirement 1: [Requirement Name]

**User Story:** As a [role], I want [feature] so that [benefit].

#### Acceptance Criteria

1. THE [Component] SHALL [action/behavior]
2. WHEN [condition] THEN [Component] SHALL [action/behavior]
3. THE [Component] SHALL NOT [prohibited action]

[Continue with additional requirements following the same pattern]

## Superseded Behaviors

[If this feature modifies or removes existing functionality, list each change explicitly. If the feature is entirely new, omit this section.]

- [Old behavior] → REMOVED / REPLACED BY Requirement X.X

Writing Guidelines

  1. Use SHALL for mandatory requirements - "THE system SHALL..."
  2. Use WHEN-THEN for conditional behavior - "WHEN user clicks submit THEN system SHALL..."
  3. Use SHALL NOT for prohibitions - "THE system SHALL NOT expose..."
  4. Be specific and testable - Each criterion should be verifiable
  5. Reference existing code patterns - Align with project conventions
  6. Keep requirements atomic - One requirement per item
  7. Prioritize user experience - Every user flow must feel natural. When related entities exist (e.g., category and subcategory), requirements MUST include inline/contextual creation — the user should never be forced to navigate away from the current page to create a dependent entity and then return. For example, if a form needs a parent entity that doesn't exist yet, there must be a way to create it on the spot (inline dialog, quick-add in dropdown, etc.).
  8. Document intentional behavior changes - When the feature modifies or removes existing behavior, add a "Superseded Behaviors" section that explicitly lists what is being replaced or removed. This prevents the implementer from accidentally restoring old behavior (e.g., re-adding removed undo functionality to make old tests pass). Format: ### Superseded Behaviors - [Old behavior description] → REMOVED / REPLACED BY [new behavior or requirement reference]

Step 4: Confirm with User

After creating the document, show the user:

  1. The location of the created file
  2. A summary of the requirements
  3. Use the AskUserQuestion tool to ask if they want to make changes or proceed, with options like "Looks good, proceed to research", "I want to make changes", "Review requirements first"

Arguments

This skill accepts optional arguments via $ARGUMENTS:

  • $0 - Spec name (kebab-case, e.g., "user-auth" or "payment-flow")
  • $1 onwards - Task description or context

If $ARGUMENTS is provided, use it to determine the spec name and context. If not sufficient, ask the user for clarification.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

33.69%
按下载量换算39

Claude

32.3%
按下载量换算37

Cursor

20.13%
按下载量换算23

Gemini CLI

8.53%
按下载量换算10

安全审计

暂无安全审计结果可展示。

权限和风险

只读

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills