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

spec-writer规范编写者

Agent Skill

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

总安装

7,854

周安装

324

GitHub Stars

1

下载量

2,566
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install spec-writer

简介

Spec Writer 为编码项目生成结构化实施规范文档。

  • 适用于功能设计、需求转化或错误修复场景下的开发指引编写。
  • 可根据用户需求、错误描述自动生成详细技术规格。spec-writer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 输出内容需人工复核以确保逻辑完整与技术可行性。
  • 建议在关键模块开发前调用,以提升团队协作效率。

SKILL.md

name
spec-writer
description
Generate structured implementation spec documents for coding projects or features. Use when a user provides a requirement, feature idea, bug description, or GitHub issue and needs a spec before implementation. Produces a spec document covering objectives, user stories, technical plan, boundaries, verification criteria, and task breakdown — ready to hand off to a coding agent or human developer. Triggers on "write a spec", "draft a spec", "create an implementation plan", "spec this out", or any request to formalize requirements into a structured document. NOT for actually implementing code (use dev-workflow for that).

Spec Writer — Structured Implementation Spec Generator

Generate high-quality, AI-agent-friendly spec documents from vague requirements.

When to Use

  • User has a requirement, feature idea, bug report, or GitHub issue
  • User wants a structured document before coding starts
  • User says "write a spec", "plan this out", "spec this feature", etc.
  • dev-workflow Phase 2 needs a detailed spec (can be called as a sub-step)

Output

A single Markdown spec document saved to the project directory (default: SPEC.md or spec/<name>.md).

Workflow

Step 1: Gather Context

Collect information from available sources. Do not ask the user for things you can find yourself.

From the user's input:

  • What to build and why
  • Any explicit constraints or preferences

From the project (if accessible):

  • Tech stack (package.json, Cargo.toml, pyproject.toml, go.mod, etc.)
  • Project structure (directory layout)
  • Existing architecture docs (llmdoc/, README, ARCHITECTURE.md, etc.)
  • Code style patterns (sample existing code)
  • Test setup (test framework, where tests live, how to run them)
  • Git workflow (branch conventions, CI config)

From external sources (if referenced):

  • GitHub issue details (title, body, comments, labels)
  • Linked docs, designs, or API references

Step 2: Draft the Spec

Use the spec template at references/spec-template.md. Read it before generating.

Fill every section based on gathered context. Key principles:

  • Be specific, not vague. "React 18 with TypeScript and Vite" not "React project."
  • Focus on what and why first. User stories and success criteria anchor everything.
  • Include real commands. Full commands with flags, not just tool names.
  • Show, don't describe. One code example beats three paragraphs of explanation.
  • State what NOT to do. Explicit exclusions prevent agent drift.
  • Use three-tier boundaries. ✅ Always / ⚠️ Ask first / 🚫 Never.

Step 3: Review with User

Present the draft to the user. Common discussion points:

  • Are the user stories complete? Any missing scenarios?
  • Is the technical approach acceptable? Alternative architectures?
  • Are boundaries correct? Anything too strict or too loose?
  • Are verification criteria testable and sufficient?
  • Is the task breakdown granularity right?

Revise until the user confirms. Mark status as "✅ Confirmed" when approved.

Step 4: Save and Deliver

Save the confirmed spec to the project. Suggested locations:

  • Single feature: SPEC.md in project root
  • Multiple specs: spec/<feature-name>.md
  • With dev-workflow: the spec replaces the requirement doc in Phase 2

Tell the user the spec is ready and suggest next steps:

  • Hand to a coding agent (dev-workflow, Claude Code, Codex, etc.)
  • Use as a reference for manual implementation
  • Share with team for review

Adapting to Project Scale

Small task (bug fix, small feature):

  • Skip or compress sections that don't apply
  • Focus on: Objective, Changes, Boundaries, Verification
  • Total spec: ~50-100 lines

Medium task (feature, refactor):

  • Use full template
  • Total spec: ~100-250 lines

Large task (new module, major feature):

  • Use full template with extended task breakdown
  • Consider splitting into multiple specs (one per component/module)
  • Include architecture diagram description or data model
  • Total spec: ~200-400 lines

Principles

These come from industry best practices (GitHub's study of 2,500+ agent files, Anthropic's context engineering research, and practical spec-driven development patterns):

  1. Spec is the source of truth — It persists across sessions, anchoring the agent when context gets long or sessions restart.
  1. Structure for parseability — Clear Markdown headings, consistent format. AI models handle well-structured text better than free-form prose.
  1. Six core areas — Commands, Testing, Project Structure, Code Style, Git Workflow, Boundaries. Use as a completeness checklist.
  1. Three-tier boundaries — ✅ Always do (proceed without asking) / ⚠️ Ask first (need human approval) / 🚫 Never do (hard stop). More effective than flat rule lists.
  1. Modularity — Each section should be independently useful. A coding agent working on the backend doesn't need the frontend spec section in its context.
  1. Living document — Update the spec when decisions change. An outdated spec is worse than no spec.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

91.41%
按下载量换算2,346

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills