Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/ow1onp/hermes-agent-skills/spec-driven-devnpx skills add Ow1onp/hermes-agent-skills --skill spec-driven-devgit clone --depth 1 https://github.com/Ow1onp/hermes-agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ow1onp/hermes-agent-skills/spec-driven-dev)<a href="https://agentmods.dev/skills/ow1onp/hermes-agent-skills/spec-driven-dev"><img src="https://agentmods.dev/badge/skills/ow1onp/hermes-agent-skills/spec-driven-dev.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00041 | $0.01188 |
| Opus 5 | $0.00020 | $0.00594 |
| Sonnet 5 | $0.00008 | $0.00238 |
| Haiku 4.5 | $0.00004 | $0.00119 |
Grade A, and why
spec-driven-dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
规格驱动开发 (Spec-Driven Development)
1. 概述
规格驱动开发强制 "先写规格,再写代码"。一份好的 Spec 如同建筑蓝图——它让所有参与者(开发者、AI、审查者)在动手之前就达成共识。
与 Hermes Agent 的 /skills 命令体系深度集成:本技能可与 requirement-analyzer 串联使用(前者澄清需求,后者撰写规格),形成完整的需求→规格流水线。
2. 核心流程
2.1 Spec 文档七要素
每份 Spec 必须包含以下七个部分:
1. 概述 (Overview)
└─ 一句话描述 + 背景动机 + 用户故事
2. 目标与非目标 (Goals & Non-Goals)
├─ Goals: 这次要达成的具体目标(3-5 条)
└─ Non-Goals: 明确不做的事情(防止范围蔓延)
3. 技术设计 (Technical Design)
├─ 架构图(可用 ASCII 图或 Mermaid)
├─ 数据模型 / API 契约
├─ 关键算法或流程
└─ 技术选型理由
4. 接口定义 (API/Interface Contract)
├─ 输入/输出 Schema(JSON Schema / Proto / TypeScript 类型)
└─ 错误码和异常语义
5. 测试策略 (Testing Strategy)
├─ 单元测试覆盖目标
├─ 集成测试场景
└─ E2E 测试关键路径
6. 上线计划 (Rollout Plan)
├─ 分阶段发布策略
├─ 回滚方案
└─ 监控指标
7. 开放问题 (Open Questions)
└─ 当前不确定、需要后续决策的事项
2.2 与 Hermes 工具链协作
# 加载相关技能形成流水线
/skill requirement-analyzer # 先澄清需求
/skill spec-driven-dev # 再撰写规格
# 利用 Hermes 的文件工具
# 将 Spec 写入项目目录
# write_file("docs/specs/feature-x.md", spec_content)
# 利用 Hermes 的 web_search 进行技术调研
# web_search("best practices for ...")
2.3 自进化机制
- 规格准确性追踪:记录开发过程中因规格错误导致的返工次数
- 模板优化:根据项目类型(API/CLI/前端/ML)自动调整 Spec 模板的侧重点
- 遗漏检测:分析哪些章节在实际开发中被证明最重要/最常被遗漏
- 自动补全建议:基于历史项目数据,在新 Spec 中提示常见遗漏项
2.4 身份感知
- 读取
SOUL.md中定义的技术偏好(如 "偏好函数式编程" 或 "偏好简洁的代码") - 在 Spec 的 "技术设计" 章节体现这些偏好
- 在 "代码风格" 部分自然地融入 Agent 的人设风格
3. 门禁标准
- 七个章节完整,无跳过的占位符(如 "TODO")
- 每个 Goal 都有对应的可验证验收标准
- API 契约包含完整的输入验证规则和错误语义
- 至少识别了 2 个需要后续决策的开放问题
- 如果涉及数据库变更,包含迁移计划
- Spec 已通过
code-quality-guardian的文档审查 - 用户已审阅并批准 Spec
4. 常见逃避借口与反驳
| 借口 | 反驳 |
|---|---|
| "这功能很简单,不需要 Spec" | 简单功能的边界往往最模糊。一份 10 行的 Spec 就能避免 100 行的返工。 |
| "敏捷开发不需要文档" | 敏捷不等于无文档。敏捷追求 "刚好够的文档"——Spec 就是那个 "刚好够"。 |
| "我可以边写代码边想设计" | 边写边想 = 没有设计。代码会成为设计的受害者,而不是实现者。 |
| "Spec 写完就过时了" | 好的 Spec 是活文档——在发现新信息时更新,而不是写成后抛弃。 |
| "AI 写 Spec 不够好" | 这正是本技能的价值——提供结构化框架让 AI 写出工程师级别的 Spec。 |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 102 lines · 41 tokens per session scan A a8ca5acb8d50
spec-driven-dev is a skill published in the GitHub repository Ow1onp/hermes-agent-skills (3 stars, last pushed 2mo ago), licensed MIT. It adds 41 tokens to every session and 1,188 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
openspec-plus-apply
MANDATORY skill that activates whenever the OpenSpec apply phase begins. Triggers: /opsx-apply runs, the openspec-apply-change vanilla skill is referenced or active, openspec instructions apply is invoked, or the user asks to implement, apply, execute, or build out an OpenSpec change ('implement the change', 'apply…
openspec-plus-design
MANDATORY skill that activates whenever the OpenSpec design phase begins. Triggers: /opsx-new or /opsx-continue runs; openspec-new-change, openspec-continue-change, or openspec-explore is active; openspec instructions design is invoked; or the user wants to create, update, review, refine, or discuss an OpenSpec design…
openspec-plus-spec
MANDATORY skill that activates whenever the OpenSpec specification phase begins. Triggers: /opsx-new or /opsx-continue runs; openspec-new-change, openspec-continue-change, or openspec-explore is active; openspec instructions spec or openspec instructions specs is invoked; or the user wants to create, update, review…
openspec-plus-tdd
MANDATORY skill that activates whenever code is written to implement an OpenSpec change task. Triggers: openspec-plus-apply is active, /opsx-apply is running, the user is implementing tasks from an OpenSpec change, an implementer subagent dispatched by openspec-plus-apply is starting work, or the user invokes phrases…
openspec-plus-proposal
MANDATORY skill that activates whenever the OpenSpec proposal phase begins. Triggers: /opsx-new or /opsx-continue runs; openspec-new-change, openspec-continue-change, or openspec-explore is active; openspec instructions proposal is invoked; or the user wants to create, update, review, refine, or discuss an OpenSpec…
openspec-plus-tasks
MANDATORY skill that activates whenever the OpenSpec tasks phase begins. Triggers: /opsx-new or /opsx-continue runs; openspec-new-change, openspec-continue-change, or openspec-explore is active; openspec instructions tasks is invoked; or the user wants to create, update, review, refine, or discuss an OpenSpec tasks.md…