Token导航 LogoToken导航

Agent Skill · 开发

spec-gathering(规格收集)

spec-gathering 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

spec-gathering 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 11,594。

总安装 1,676周安装 72GitHub Stars 25下载 588核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill spec-gathering

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

spec-gathering 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。

通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 了解具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。当前归类为开发类技能,功能聚焦于代码协作信息的组织与处理。

来源仓库内路径:skills/spec-gathering

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/oimiragieo/agent-studio --skill spec-gathering;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

spec-gathering 怎么安装?

在终端执行 npx skills add https://github.com/oimiragieo/agent-studio --skill spec-gathering。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

spec-gathering 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

spec-gathering 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

spec-gathering 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

spec-gathering 用的人多吗?

公开数据是累计安装 1,676 次,近一周安装 72 次,下载 588 次,GitHub 25 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

spec-gathering 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
spec-gathering

规格收集 · 本页

1,67625需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Requirements Gathering Skill

Overview

Gather user requirements through structured questioning and produce a validated requirements document. This skill transforms vague task descriptions into actionable, structured requirements.

Core principle: Ask smart questions, produce valid structured output. Nothing else.

When to Use

Always:

  • Starting a new feature or project
  • Clarifying ambiguous task descriptions
  • When user provides high-level goals without specifics
  • Before spec writing begins

Exceptions:

  • Simple bug fixes with clear reproduction steps
  • Single-file changes with obvious scope
  • User explicitly provides complete requirements

The Iron Law

NO SPEC WRITING WITHOUT VALIDATED REQUIREMENTS FIRST

Requirements must be confirmed by the user before proceeding to spec creation.

Workflow

Phase 1: Load Project Context

Understand the project structure before engaging the user.

Steps:

  1. Read project structure files if they exist
  2. Identify services, tech stack, and ports
  3. Understand existing patterns and conventions
# Read project structure
cat .claude/context/product.md 2>/dev/null || echo "No product context"
cat .claude/context/tech-stack.md 2>/dev/null || echo "No tech stack"

Phase 2: Understand the Task

If a task description was provided, confirm it:

"I understand you want to: [task description]. Is that correct? Any clarifications?"

If no task was provided, ask:

"What would you like to build or fix? Please describe the feature, bug, or change you need."

Wait for user response.

Phase 3: Determine Workflow Type

Based on the task, determine the workflow type:

If task sounds like...Workflow Type
"Add feature X", "Build Y"feature
"Migrate from X to Y", "Refactor Z"refactor
"Fix bug where X", "Debug Y"investigation
"Migrate data from X"migration
Single service, small changesimple

Ask to confirm:

"This sounds like a [workflow_type] task. Does that seem right?"

Phase 4: Identify Services and Scope

Based on the project context and task, suggest affected areas:

"Based on your task and project structure, I think this involves: - [service1] (primary) - [why] - [service2] (integration) - [why] Any other services or areas involved?"

Wait for confirmation or correction.

Phase 4.5: Invoke Context-Compressor (Progressive Disclosure Mode / ECLAIR Pattern)

Before gathering requirements manually, use the context-compressor skill (progressive disclosure mode) to optimize the clarification process:

Skill({
  skill: 'context-compressor',
  context: {
    taskDescription: taskDescription,
    projectContext: projectContext,
    services: identifiedServices,
    mode: 'progressive-disclosure',
  },
});

Context-Compressor (progressive disclosure mode) performs:

  1. E: Examine - Analyze ambiguities in the task description
  2. C: Categorize - Prioritize by CRITICAL, HIGH, MEDIUM, LOW
  3. L: Limit - Apply 3-5 clarification cap
  4. A: Assume - Apply smart defaults from project patterns
  5. I: Infer - Use existing code patterns and tech stack
  6. R: Record - Document all assumptions with [ASSUMES: X]

Returns:

  • Prioritized clarification questions (max 5)
  • Smart defaults with [ASSUMES:] notation
  • Updated understanding of requirements

Phase 5: Gather Detailed Requirements (with Context-Compressor)

Ask only the critical clarification questions identified by context-compressor:

Budget: 3-5 clarification questions maximum

Process:

  1. Ask CRITICAL priority questions first (security, data loss, breaking changes)

- Example: "Does the system need role-based access control?" - Example: "Should users be able to delete data? Is this reversible?"

  1. Ask HIGH priority questions if budget remains (UX, architecture, scalability)

- Example: "What's the expected user load?" - Example: "Should this support offline mode?"

  1. For MEDIUM/LOW priorities, use [ASSUMES:] notation with defaults

- Example: "[ASSUMES: JWT tokens with 1-hour expiry]" - Example: "[ASSUMES: REST API following existing /api/v1/ pattern]"

Collect answers and document all assumptions.

Phase 6: Confirm and Output (with Assumptions)

Summarize what you understood, including clarified requirements and assumptions:

"Let me confirm I understand: Task: [summary] Type: [workflow_type] Scope: [list of affected areas] Clarified Requirements (questions asked): 1. ✅ [Question] → [Answer] 2. ✅ [Question] → [Answer] 3. ✅ [Question] → [Answer] Smart Defaults Applied (not asked due to budget or clarity): [ASSUMES: X] [ASSUMES: Y] [ASSUMES: Z] Success Criteria: 1. [criterion 1] 2. [criterion 2] Is this correct?"

Wait for confirmation. If user objects to any assumption, allow them to override or request adjustment.

Phase 7: Map Requirements to Template Tokens (with Assumptions)

After confirming requirements and assumptions with user, map gathered data to template tokens:

const tokens = {
  // Required tokens
  FEATURE_NAME: gatheredRequirements.taskName,
  VERSION: '1.0.0',
  AUTHOR: 'Claude',
  DATE: new Date().toISOString().split('T')[0],
  STATUS: 'draft',

  // Required: Acceptance criteria (minimum 1, maximum 50)
  ACCEPTANCE_CRITERIA_1: gatheredRequirements.criteria[0] || '[Define acceptance criterion 1]',
  ACCEPTANCE_CRITERIA_2: gatheredRequirements.criteria[1] || '[Define acceptance criterion 2]',
  ACCEPTANCE_CRITERIA_3: gatheredRequirements.criteria[2] || '[Define acceptance criterion 3]',

  // Optional tokens (can be empty strings if not gathered)
  TERM_1: gatheredRequirements.terms?.[0] || '',
  TERM_2: gatheredRequirements.terms?.[1] || '',
  TERM_3: gatheredRequirements.terms?.[2] || '',

  HTTP_METHOD: gatheredRequirements.httpMethod || '',
  ENDPOINT_PATH: gatheredRequirements.endpointPath || '',
  PROJECT_NAME: gatheredRequirements.projectName || 'Agent Studio',

  // Assumptions from context-compressor (optional but recommended)
  ASSUMPTIONS_MADE: gatheredRequirements.assumptions.map(a => `- ${a}`).join('\n') || '',
  CLARIFICATIONS_ASKED: gatheredRequirements.clarifications || 0,
};

Validation Before Rendering:

  • Check all required tokens are populated (FEATURE_NAME, VERSION, AUTHOR, DATE, STATUS)
  • Check at least one ACCEPTANCE*CRITERIA** token is meaningful (not placeholder)
  • Verify all assumptions are documented with [ASSUMES:] notation
  • If missing required data, prompt user for missing information
  • If clarifications > 5, warn user about potential requirement incompleteness

Phase 8: Render Specification via Template

Invoke the template-renderer skill to create the specification:

Skill({
  skill: 'template-renderer',
  args: {
    templateName: 'specification-template',
    outputPath: `.claude/context/artifacts/specifications/${featureNameSlug}-spec.md`,
    tokens: tokens,
  },
});

Output Location: .claude/context/artifacts/specifications/[feature-name]-spec.md

Post-Rendering Verification:

# Check file created
SPEC_FILE=".claude/context/artifacts/specifications/[feature-name]-spec.md"
test -f "$SPEC_FILE" && echo "✓ Spec created" || echo "✗ Spec creation failed"

# Check no unresolved tokens
grep -E '[{]{2}' "$SPEC_FILE" && echo "✗ Unresolved tokens found" || echo "✓ All tokens resolved"

# Check YAML frontmatter valid
YAML_COUNT=$(head -50 "$SPEC_FILE" | grep -E "^---$" | wc -l)
test "$YAML_COUNT" -eq 2 && echo "✓ YAML valid" || echo "✗ YAML invalid"

Verification Checklist

Before completing requirements gathering:

  • Task description confirmed with user
  • Context-compressor skill invoked in progressive disclosure mode (Phase 4.5)
  • Clarification budget respected (3-5 questions maximum)
  • CRITICAL priority questions asked and answered
  • All assumptions documented with [ASSUMES:] notation
  • Workflow type determined and confirmed
  • Scope and affected areas identified
  • Specific requirements captured
  • Acceptance criteria defined (minimum 1, mapped to ACCEPTANCE_CRITERIA_1/2/3)
  • Constraints documented
  • User confirmed final summary (including assumptions)
  • User allowed to override any assumptions before proceeding
  • Token mapping complete (all required tokens populated, including ASSUMPTIONS_MADE)
  • Template renderer invoked successfully
  • Specification file created (no unresolved tokens)
  • YAML frontmatter valid (2 delimiters, required fields present)
  • [ASSUMES:] notation appears in specification output

Common Mistakes

Assuming Instead of Asking

Why it's wrong: Assumptions lead to building the wrong thing.

Do this instead: Ask clarifying questions. Confirm understanding.

Skipping Confirmation

Why it's wrong: User may have misunderstood your summary.

Do this instead: Always summarize and wait for explicit confirmation.

Vague Requirements

Why it's wrong: "Make it better" is not actionable.

Do this instead: Get specific: What behavior? What outcome? How to verify?

Integration with Other Skills

This skill works well with:

  • context-compressor: Invoked in Phase 4.5 (progressive disclosure mode) to optimize clarification process with ECLAIR pattern (3-5 limit, smart defaults, [ASSUMES:] notation)
  • template-renderer: Used automatically after Phase 8 to render specification template with gathered requirements and assumptions
  • spec-critique: Use to validate the generated specification
  • complexity-assessment: Assess complexity after requirements are clear
  • brainstorming: Use for creative exploration before requirements gathering

Workflow Chain:

spec-gathering (→ context-compressor in Phase 4.5) → template-renderer → spec-critique → planner

Context-Compressor Integration Details (Progressive Disclosure Mode):

  • When: Invoked at the start of Phase 5 (before manual questioning)
  • Why: Limits clarifications to 3-5 questions (reduces cognitive load), applies smart defaults, documents all assumptions
  • Output: Prioritized questions + default assumptions with [ASSUMES:] notation
  • Impact: Specification includes documented assumptions that can be overridden during implementation

Examples

Example 1: Feature Request (End-to-End with Progressive-Disclosure & Template Rendering)

Input: "Add user authentication to the app"

Process:

  1. Confirm task: "You want to add user authentication. Is this correct?"

- User confirms

  1. Invoke context-compressor in progressive disclosure mode (Phase 4.5): Skill({skill: 'context-compressor', context: {taskDescription: "Add user authentication", projectContext: {...}, mode: 'progressive-disclosure'}});
  2. Context-compressor returns:

- CRITICAL questions (3 asked of 5 budget): 1. "Should users be able to reset passwords via email?" → YES 2. "Do we need role-based access control (RBAC)?" → YES (Admin, User, Guest) 3. "Is single sign-on (SSO) required?" → NO - Assumptions applied (with [ASSUMES:]): - [ASSUMES: JWT tokens with 1-hour expiry] - [ASSUMES: bcrypt for password hashing, cost factor 12] - [ASSUMES: HTTPS required for all endpoints]

  1. Identify scope: "This will touch the backend API, database, and frontend login page."

- User confirms scope

  1. Define success criteria based on clarifications and defaults
  2. Map to tokens:
{
  FEATURE_NAME: "User Authentication",
  VERSION: "1.0.0",
  AUTHOR: "Claude",
  DATE: "2026-01-28",
  STATUS: "draft",
  ACCEPTANCE_CRITERIA_1: "Users can sign up with email and password",
  ACCEPTANCE_CRITERIA_2: "Email verification required before login",
  ACCEPTANCE_CRITERIA_3: "Users can reset password via email link",
  ACCEPTANCE_CRITERIA_4: "Role-based access control working (Admin/User/Guest)",
  ASSUMPTIONS_MADE: "- JWT tokens with 1-hour expiry\n- bcrypt cost factor 12\n- HTTPS required",
  CLARIFICATIONS_ASKED: 3
}
  1. Invoke template-renderer:
Skill({
  skill: 'template-renderer',
  args: {
    templateName: 'specification-template',
    outputPath: '.claude/context/artifacts/specifications/user-authentication-spec.md',
    tokens: tokens,
  },
});

Output:

  • Rendered specification at .claude/context/artifacts/specifications/user-authentication-spec.md
  • All tokens resolved
  • Assumptions clearly documented with [ASSUMES:] notation
  • YAML frontmatter valid
  • Ready for spec-critique review (user can challenge any assumption)

Example 2: Bug Investigation

Input: "The page loads slowly"

Process:

  1. Clarify: "Which page specifically? What do you consider slow?"
  2. Context: "When did this start? Any recent changes?"
  3. Metrics: "What load time would be acceptable?"

Output: Investigation requirements with specific pages, metrics, and success criteria.

Troubleshooting

Issue: User gives one-word answers

Symptoms: "Yes", "No", "That's fine" without detail.

Solution: Ask more specific questions. Provide options: "Would you prefer A, B, or C?"

Issue: Scope keeps expanding

Symptoms: Every answer adds new features.

Solution: Document "Out of Scope" explicitly. Confirm: "Should we include this in this task or save for later?"

Iron Laws

  1. NEVER begin implementation before a validated specification exists for STANDARD+ complexity
  2. ALWAYS capture non-functional requirements (performance, security, scalability) explicitly
  3. NEVER accept vague success criteria — require measurable, testable numbers
  4. ALWAYS document what is explicitly out of scope, not just what is in scope
  5. NEVER hand off to planner without explicit user confirmation of requirements

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Vague requirements ("make it fast")Not measurable or testableSpecify exact metrics: "P95 response time <100ms"
Missing NFRsQuality attributes forgotten until too lateAlways capture performance, security, scalability requirements
No out-of-scope sectionScope creep during implementationExplicitly document what this task does NOT include
Skipping user confirmationRequirements misunderstood and implemented incorrectlyConfirm all requirements with the user before handoff
No edge cases documentedError handling gaps discovered during QADocument empty input, bad data, timeout, and concurrent access cases

Memory Protocol

Before starting: Read .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md
ASSUME INTERRUPTION: If it's not in memory, it didn't happen.

平台分布

Codex

36.13%
按下载量换算212

Claude

29.24%
按下载量换算172

Cursor

16.23%
按下载量换算95

Gemini CLI

8.46%
按下载量换算50

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills