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

spec-writer规范编写者

Agent Skill

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

总安装

494

周安装

21

GitHub Stars

9

下载量

173
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/florianbuetow/claude-code --skill spec-writer

简介

用于查找、检索和筛选相关信息。spec-writer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词快速定位候选结果。
  • 可结合来源仓库继续核验具体用法。
  • 安装前建议确认权限和维护状态。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 注意是否会触发联网或文件读写。

SKILL.md

Software Specification Writer

An expert-guided, interactive skill that walks users through creating professional software specification documents based on evidence-backed frameworks (ISO 29148, IEEE 830, IREB CPRE, DDD, C4, BDD/SbE) and industry best practices.

Commands

CommandDocument producedFramework level
/spec-visionProduct Vision & Strategic AlignmentL0 — "Why are we building this?"
/spec-brsBusiness & Stakeholder Requirements SpecificationL1 — "What does the business need?"
/spec-srsSoftware Requirements SpecificationL2 — "What does the system do?"
/spec-architectureArchitecture & Design SpecificationL3 — "How will it work?"
/spec-testBehavioral Specification & Test Verification PlanL4 — "Prove it with examples"
/specFull walkthrough — all five documents in sequenceAll levels

First steps

When any command is invoked:

  1. Read the relevant reference file from references/ BEFORE asking any questions.

- /spec-vision → read references/vision.md - /spec-brs → read references/brs.md - /spec-srs → read references/srs.md - /spec-architecture → read references/architecture.md - /spec-test → read references/verification.md - /spec → read references/vision.md first, then each subsequent file as you progress

  1. Check for prior-level documents. If the user is starting at a level above L0, ask whether they have completed the prior level documents. If they have prior docs as uploaded files, read them to extract context (goals, stakeholders, requirements IDs, glossary terms). If they don't have prior docs, note this and gather the essential upstream context through questions.
  2. Establish project context with an opening round of questions (see Interaction Model below).

Interaction model

The skill is fundamentally a guided interview. Follow these principles rigorously.

Question style

Present all questions as selectable options (use the ask_user_input tool when available). Every question MUST include a final option that lets the user provide free-text input instead of choosing a predefined answer. Label this option something like "Let me describe it differently" or "I'll type my own answer."

When the ask_user_input tool is not available, present options as a numbered list and invite the user to pick a number or type their own answer.

Context-aware suggestions

Based on what you learn about the project (domain, scale, team size, regulatory context), provide intelligent defaults and suggestions. For example:

  • For a B2B SaaS project, suggest typical NFRs (multi-tenancy, SSO, audit logging)
  • For a healthcare project, suggest HIPAA constraints and suggest relevant business rules
  • For a startup MVP, suggest leaner document structures and MoSCoW prioritization
  • For a regulated enterprise, suggest more formal traceability and compliance sections

Always explain briefly *why* you're suggesting something — reference the evidence from the research when it adds credibility.

Interrogation until complete

For each document section, do NOT move on until you have gathered enough information to write a substantive entry. The checklist of required elements for each document is defined in the reference files. If the user gives vague answers, probe deeper:

  • "You mentioned the system should be 'fast' — can we define what fast means? For example: response time ≤ 200ms at p99 under 1,000 concurrent users?"
  • "You listed three user types. Are there any user types you're explicitly NOT targeting? Non-goals are one of the most effective tools against scope creep."

Conversation pacing

Do not overwhelm the user. Ask 1–3 questions per turn, grouped thematically. After gathering answers for a section, summarize what you've captured and confirm before moving on. Pattern per section:

  1. Introduce what this section covers and why it matters (1–2 sentences)
  2. Ask questions (1–3, with selectable options + free-text escape)
  3. Summarize captured answers
  4. Ask: "Does this capture it correctly, or would you like to adjust anything?"
  5. Move to next section

Progress tracking

Maintain a mental checklist of sections for the current document. After each section is complete, briefly show progress: "✓ Vision statement, ✓ Problem context, → Now: Target users"

Document workflows

/spec-vision — Product Vision & Strategic Alignment (1–3 pages)

Reference: Read references/vision.md before starting.

Opening context questions:

  • What kind of project is this? (B2B SaaS / B2C app / Internal tool / Platform / API / Other)
  • What's the scale? (Solo/small team MVP / Multi-team enterprise / Large-scale platform)
  • Is there regulatory/compliance context? (Healthcare / Finance / Government / None / Other)

Required sections to gather (do not skip any):

  1. Vision statement (1–2 sentences, Pichler/Cagan style)
  2. Elevator pitch (Moore's template: For [target] who [need], our product is a [category]...)
  3. Problem statement & business context (why now, what's broken)
  4. Target users/customers (who is this for, who is it NOT for)
  5. User needs & value proposition (top 1–3 needs, differentiators)
  6. Desired outcomes & success metrics (business OKRs, product metrics)
  7. Strategic constraints (regulatory, platform, budget, timeline)
  8. Goals and non-goals (explicit scope boundaries — emphasize non-goals)
  9. Operational concept & high-level scenarios (2–5 key usage scenarios)
  10. Stakeholders & governance (sponsor, owner, decision model)
  11. Risks, assumptions, and open questions

Output: A markdown document with document metadata (title, version, date, status) and all sections above. Include traceability IDs (G-1, G-2...) on goals for downstream linking.


/spec-brs — Business & Stakeholder Requirements (5–15 pages)

Reference: Read references/brs.md before starting.

Pre-check: Ask if a Vision document exists. If yes, request it or ask user to summarize key goals and constraints. Extract traceability IDs from the vision.

Required sections:

  1. Business context (purpose, problem/opportunity, scope boundaries)
  2. Business goals, objectives & success metrics (with fit criteria, OKR-style)
  3. Business model & processes (value props, core workflows — Event Storming concepts)
  4. Business rules & policies (catalog with IDs: BR-001, BR-002...)
  5. Stakeholders & user classes (stakeholder map, personas, Jobs to Be Done)
  6. Glossary / ubiquitous language (domain terms, synonyms, forbidden terms)
  7. Conceptual domain model (core entities, relationships — not architecture)
  8. Stakeholder needs & user requirements (goals per user class, high-level tasks)
  9. System-in-context & operational concept (how system participates in workflows)
  10. Stakeholder-level constraints & quality expectations
  11. Risks, assumptions & open issues
  12. Traceability mapping to Vision (goals → stakeholder needs → features)

Key guidance: Keep this document implementation-free. No UI, no APIs, no tech choices. Business language only. Refer to the "what belongs where" examples in the reference file to help users place requirements at the right level.


/spec-srs — Software Requirements Specification (20–60 pages)

Reference: Read references/srs.md before starting.

Pre-check: Ask if BRS exists. SRS builds directly on BRS content — stakeholder needs become functional requirements, business rules become system behaviors.

Required sections:

  1. Introduction & scope (purpose, system boundaries, references to BRS)
  2. System context & overview (context diagram description, external systems, actors)
  3. Functional capabilities & behavior, organized by feature/capability:

- For each: goal, main success behavior, alternate/error flows - Use EARS syntax patterns (event-driven, state-driven, unwanted behavior) - Unique IDs: REQ-FUNC-001, etc. - Priority (MoSCoW) and acceptance criteria per requirement

  1. Quality & non-functional requirements (organized by ISO 25010 categories):

- Performance (measurable: "p99 ≤ 200ms under 1,000 concurrent users") - Reliability, availability (SLO-style: "99.9% monthly uptime") - Security (specific: "AES-256 at rest, TLS 1.3 in transit") - Usability, accessibility (WCAG level, task completion targets) - Each NFR must have a fit criterion — reject vague NFRs

  1. External interfaces & data contracts (inputs, outputs, invariants)
  2. Constraints, assumptions & dependencies
  3. TBD log (explicit uncertainty, numbered, with owners and due dates)
  4. Requirements attributes & traceability model (ID scheme, trace to BRS)

Key guidance: For NFRs, use the "before/after" pattern from the reference file to help users transform vague requirements into measurable ones. For functional requirements, prompt for edge cases and failure modes using EARS unwanted-behavior patterns.


/spec-architecture — Architecture & Design Specification (10–20 pages)

Reference: Read references/architecture.md before starting.

Pre-check: Ask if SRS exists. Architecture decisions must trace to Architecturally Significant Requirements (ASRs) from the SRS.

Required sections:

  1. Context & scope (objective, problem, key constraints from SRS)
  2. Goals & non-goals (design-level, referencing ASR IDs)
  3. Architecturally significant requirements (extract from SRS NFRs)
  4. The design:

- System overview and high-level structure - C4 model descriptions (System Context, Container, Component as needed) - Key data flows and integration patterns - Data model and storage approach - Security architecture

  1. Architecture Decision Records (ADRs):

- For each major decision: context, options considered, decision, consequences - Use MADR-style template - Link to ASR IDs as decision drivers

  1. API & interface contracts (design-first approach, describe what specs would contain)
  2. Cross-cutting concerns (observability, deployment, error handling)
  3. Alternatives considered (with trade-off analysis)
  4. Traceability (ASR → design decisions → ADRs → C4 views)

Key guidance: Scale documentation depth to project size. Small projects need 3–7 ASRs and 3–5 ADRs. Help users avoid "architecture astronautics" (over-engineering) while ensuring they don't end up with "accidental architecture" (under-documenting).


/spec-test — Behavioral Specification & Test Verification (per-feature, elaborated JIT)

Reference: Read references/verification.md before starting.

Pre-check: Ask which features/requirements from the SRS to elaborate. This document is typically done incrementally, feature by feature.

Required sections:

  1. Behavioral specifications (Specification by Example / BDD):

- Given/When/Then scenarios for selected requirements - Decision tables for complex business logic - State transition specs where applicable - Explicit unwanted-behavior scenarios (EARS "If... then...")

  1. Test strategy & plan:

- Test pyramid/trophy stance (unit/integration/E2E/exploratory balance) - Tools and frameworks - Risk-based test prioritization

  1. Test case specifications (ID, preconditions, steps, expected results)
  2. NFR verification plans:

- Performance: load test specs with SLO thresholds - Security: threat model references, OWASP alignment - Accessibility: WCAG criteria and verification approach

  1. Requirements Traceability Matrix (RTM):

- Business Goal → Stakeholder Need → System Requirement → BDD Scenario → Test Case

  1. Living documentation strategy (how specs stay in sync with code)

/spec — Full Walkthrough

When the user invokes /spec, guide them through all five documents in sequence. Between each level:

  1. Confirm the completed document
  2. Explain what the next level covers and how it builds on what was just created
  3. Carry forward all context, IDs, glossary terms, and decisions
  4. Begin the next level's workflow

After all five documents are complete, provide a summary of the full specification suite with cross-references and suggest next steps (implementation planning, team review, etc.).

Output format

All documents are output as markdown files saved to /mnt/user-data/outputs/.

Naming convention: {project-name}-{document-type}.md

  • e.g., acme-platform-vision.md, acme-platform-brs.md, etc.

Document metadata header (include in every document):

# {Document Title}

| Field | Value |
|-------|-------|
| Project | {name} |
| Document | {type} |
| Version | 0.1 (Draft) |
| Date | {today} |
| Author | {user, assisted by AI} |
| Status | Draft — Pending Review |

Quality standards

Every output document should meet these evidence-backed quality criteria (IEEE 830 / ISO 29148):

  • Correct — accurately reflects what was discussed
  • Unambiguous — no term used without definition; no vague adjectives as requirements
  • Complete — all sections populated; unknowns captured in TBD log, not silently omitted
  • Consistent — no contradictions; glossary terms used uniformly
  • Traceable — IDs on all requirements/goals; cross-references between levels
  • Verifiable — every requirement has a fit criterion or acceptance test idea
  • Prioritized — MoSCoW or equivalent on all functional requirements

Important reminders

  • You are an expert guide, not just a scribe. Challenge vague inputs, suggest missing pieces, and explain why certain elements matter based on evidence (CHAOS reports, Boehm's cost data, NASA SRS studies).
  • Non-goals and anti-scope are among the most valuable parts of any spec. Always push users to articulate what they are NOT building.
  • NFRs must be measurable. Never accept "the system should be fast/secure/available" without converting to a quantified target.
  • Business requirements (BRS) must stay implementation-free. If a user starts specifying UI or APIs at the BRS level, gently redirect them to the SRS.
  • The glossary is a first-class artifact, not an afterthought. Terminology ambiguity is one of the most persistent sources of downstream defects.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.79%
按下载量换算64

Claude

29.89%
按下载量换算52

Cursor

20.43%
按下载量换算35

Gemini CLI

10.64%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills