Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

bb-specifybb 指定

Agent Skill

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

总安装

212

周安装

9

GitHub Stars

17

下载量

74
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/buildbetter-app/bb-skills --skill bb-specify

简介

该技能用于将自然语言描述转化为结构化功能规格文档。

  • 适用于快速沉淀产品想法为可执行的开发任务说明书。
  • 支持调用 spec-template.md 等标准模板自动生成初步需求框架。
  • 操作前需确认项目根目录或 docs/ 下存在目标规格文件路径。
  • 若模板缺失,可从 BB-Skills 仓库的 templates/ 目录获取补充。

SKILL.md

Templates: If you need the template files referenced below (spec-template.md, plan-template.md, etc.), they are available in the BB-Skills repository at templates/. If installed locally, check ~/.bb-skills/templates/ or the project's templates/ directory.

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Outline

The text the user typed when invoking this skill is the feature description. Assume you always have it available in this conversation. Do not ask the user to repeat it unless they provided an empty command.

Given that feature description, do this:

  1. Generate a concise short name (2-4 words) for the branch:

- Analyze the feature description and extract the most meaningful keywords - Create a 2-4 word short name that captures the essence of the feature - Use action-noun format when possible (e.g., "add-user-auth", "fix-payment-bug") - Preserve technical terms and acronyms (OAuth2, API, JWT, etc.) - Keep it concise but descriptive enough to understand the feature at a glance - Examples: - "I want to add user authentication" -> "user-auth" - "Implement OAuth2 integration for the API" -> "oauth2-api-integration" - "Create a dashboard for analytics" -> "analytics-dashboard" - "Fix payment processing timeout bug" -> "fix-payment-timeout"

  1. Check for existing branches before creating new one: a. First, fetch all remote branches to ensure we have the latest information: git fetch --all --prune b. Find the highest feature number across all sources for the short-name: c. Determine the next available number: d. Create the feature branch and spec directory structure: IMPORTANT:

- Remote branches: git ls-remote --heads origin | grep -E 'refs/heads/[0-9]+-<short-name>$' - Local branches: git branch | grep -E '^[*]*[0-9]+-<short-name>$' - Specs directories: Check for directories matching specs/[0-9]+-<short-name> - Extract all numbers from all three sources - Find the highest number N - Use N+1 for the new branch number - Create and checkout a new branch named N+1-<short-name> - Create the specs directory: specs/N+1-<short-name>/ - Initialize the spec file at specs/N+1-<short-name>/spec.md - Check all three sources (remote branches, local branches, specs directories) to find the highest number - Only match branches/directories with the exact short-name pattern - If no existing branches/directories found with this short-name, start with number 1 - You must only create one branch per feature

  1. Collect BuildBetter context (best-effort):

- Derive FEATURE_DIR from the spec file path. - If BuildBetter context collection is available, run it to gather customer evidence using the feature description. - The collector writes: - FEATURE_DIR/buildbetter-context.json - FEATURE_DIR/buildbetter-context.md - FEATURE_DIR/user-stories.md - Handle collector status: - ok: Use BuildBetter evidence directly. - partial: Use available evidence and preserve warnings. - skipped: Continue without BuildBetter data and add a note in spec assumptions. - error: Continue without BuildBetter data, warn explicitly, and preserve any generated artifacts.

  1. Load the spec template and BuildBetter artifacts (if present) to understand required sections and evidence context.
  2. Follow this execution flow:

1. Parse user description from Input If empty: ERROR "No feature description provided" 2. Extract key concepts from description and BuildBetter evidence Identify: actors, actions, data, constraints - Pull exact customer quotes from buildbetter-context.md when available - Pull existing stories from user-stories.md when available - Track each requirement/story to one or more evidence IDs (BB-EXTRACTION-*) when available 3. For unclear aspects: - Make informed guesses based on context and industry standards - Only mark with [NEEDS CLARIFICATION: specific question] if: - The choice significantly impacts feature scope or user experience - Multiple reasonable interpretations exist with different implications - No reasonable default exists - LIMIT: Maximum 3 [NEEDS CLARIFICATION] markers total - Prioritize clarifications by impact: scope > security/privacy > user experience > technical details 4. Fill User Scenarios & Testing section If no clear user flow: ERROR "Cannot determine user scenarios" - Prioritize evidence-backed user journeys first 5. Generate Functional Requirements Each requirement must be testable Use reasonable defaults for unspecified details (document assumptions in Assumptions section) 6. Define Success Criteria Create measurable, technology-agnostic outcomes Include both quantitative metrics (time, performance, volume) and qualitative measures (user satisfaction, task completion) Each criterion must be verifiable without implementation details 7. Identify Key Entities (if data involved) 8. Add evidence traceability annotations: - Each major user story includes Evidence References - Requirements include evidence IDs where relevant - If BuildBetter unavailable, explicitly mark assumptions as non-evidence-backed 9. Return: SUCCESS (spec ready for planning)

  1. Write the specification to the spec file using the template structure, replacing placeholders with concrete details derived from the feature description and BuildBetter context while preserving section order and headings.
  2. Specification Quality Validation: After writing the initial spec, validate it against quality criteria: a. Create Spec Quality Checklist: Generate a checklist file at FEATURE_DIR/checklists/requirements.md using the checklist template structure with these validation items: # Specification Quality Checklist: [FEATURE NAME] **Purpose**: Validate specification completeness and quality before proceeding to planning **Created**: [DATE] **Feature**: [Link to spec.md] ## Content Quality - [] No implementation details (languages, frameworks, APIs) - [] Focused on user value and business needs - [] Written for non-technical stakeholders - [] All mandatory sections completed ## Requirement Completeness - [] No [NEEDS CLARIFICATION] markers remain - [] Requirements are testable and unambiguous - [] Success criteria are measurable - [] Success criteria are technology-agnostic (no implementation details) - [] All acceptance scenarios are defined - [] Edge cases are identified - [] Scope is clearly bounded - [] Dependencies and assumptions identified ## Feature Readiness - [] All functional requirements have clear acceptance criteria - [] User scenarios cover primary flows - [] Feature meets measurable outcomes defined in Success Criteria - [] No implementation details leak into specification ## Notes - Items marked incomplete require spec updates before using the bb-clarify or bb-plan skills b. Run Validation Check: Review the spec against each checklist item: c. Handle Validation Results: d. Update Checklist: After each validation iteration, update the checklist file with current pass/fail status

- For each item, determine if it passes or fails - Document specific issues found (quote relevant spec sections) - If all items pass: Mark checklist complete and proceed to step 8 - If items fail (excluding [NEEDS CLARIFICATION]): 1. List the failing items and specific issues 2. Update the spec to address each issue 3. Re-run validation until all items pass (max 3 iterations) 4. If still failing after 3 iterations, document remaining issues in checklist notes and warn user - If [NEEDS CLARIFICATION] markers remain: 1. Extract all [NEEDS CLARIFICATION:...] markers from the spec 2. LIMIT CHECK: If more than 3 markers exist, keep only the 3 most critical (by scope/security/UX impact) and make informed guesses for the rest 3. For each clarification needed (max 3), present options to user in this format: ## Question [N]: [Topic] **Context**: [Quote relevant spec section] **What we need to know**: [Specific question from NEEDS CLARIFICATION marker] **Suggested Answers**: | Option | Answer | Implications | |--------|--------|--------------| | A | [First suggested answer] | [What this means for the feature] | | B | [Second suggested answer] | [What this means for the feature] | | C | [Third suggested answer] | [What this means for the feature] | | Custom | Provide your own answer | [Explain how to provide custom input] | **Your choice**: _[Wait for user response]_ 4. CRITICAL - Table Formatting: Ensure markdown tables are properly formatted: - Use consistent spacing with pipes aligned - Each cell should have spaces around content: | Content | not |Content| - Header separator must have at least 3 dashes: |--------| - Test that the table renders correctly in markdown preview 5. Number questions sequentially (Q1, Q2, Q3 - max 3 total) 6. Present all questions together before waiting for responses 7. Wait for user to respond with their choices for all questions (e.g., "Q1: A, Q2: Custom - [details], Q3: B") 8. Update the spec by replacing each [NEEDS CLARIFICATION] marker with the user's selected or provided answer 9. Re-run validation after all clarifications are resolved

  1. Report completion with branch name, spec file path, BuildBetter artifact paths, checklist results, and readiness for the next phase (use the bb-clarify or bb-plan skills).

General Guidelines

Quick Guidelines

  • Focus on WHAT users need and WHY.
  • Avoid HOW to implement (no tech stack, APIs, code structure).
  • Written for business stakeholders, not developers.
  • DO NOT create any checklists that are embedded in the spec. That will be a separate command.

Section Requirements

  • Mandatory sections: Must be completed for every feature
  • Optional sections: Include only when relevant to the feature
  • When a section doesn't apply, remove it entirely (don't leave as "N/A")

For AI Generation

When creating this spec from a user prompt:

  1. Make informed guesses: Use context, industry standards, and common patterns to fill gaps
  2. Document assumptions: Record reasonable defaults in the Assumptions section
  3. Limit clarifications: Maximum 3 [NEEDS CLARIFICATION] markers - use only for critical decisions that:

- Significantly impact feature scope or user experience - Have multiple reasonable interpretations with different implications - Lack any reasonable default

  1. Prioritize clarifications: scope > security/privacy > user experience > technical details
  2. Think like a tester: Every vague requirement should fail the "testable and unambiguous" checklist item
  3. Common areas needing clarification (only if no reasonable default exists):

- Feature scope and boundaries (include/exclude specific use cases) - User types and permissions (if multiple conflicting interpretations possible) - Security/compliance requirements (when legally/financially significant)

Examples of reasonable defaults (don't ask about these):

  • Data retention: Industry-standard practices for the domain
  • Performance targets: Standard web/mobile app expectations unless specified
  • Error handling: User-friendly messages with appropriate fallbacks
  • Authentication method: Standard session-based or OAuth2 for web apps
  • Integration patterns: Use project-appropriate patterns (REST/GraphQL for web services, function calls for libraries, CLI args for tools, etc.)

Success Criteria Guidelines

Success criteria must be:

  1. Measurable: Include specific metrics (time, percentage, count, rate)
  2. Technology-agnostic: No mention of frameworks, languages, databases, or tools
  3. User-focused: Describe outcomes from user/business perspective, not system internals
  4. Verifiable: Can be tested/validated without knowing implementation details

Good examples:

  • "Users can complete checkout in under 3 minutes"
  • "System supports 10,000 concurrent users"
  • "95% of searches return results in under 1 second"
  • "Task completion rate improves by 40%"

Bad examples (implementation-focused):

  • "API response time is under 200ms" (too technical, use "Users see results instantly")
  • "Database can handle 1000 TPS" (implementation detail, use user-facing metric)
  • "React components render efficiently" (framework-specific)
  • "Redis cache hit rate above 80%" (technology-specific)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.75%
按下载量换算27

Claude

31.92%
按下载量换算24

Cursor

16.71%
按下载量换算12

Gemini CLI

9.52%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills