spec-init skillA
spec-init is agent-read markdown (skill) from legeling/prompthub: 按风险编写和维护项目规范,保留有效功能约定与关键决策。用于明确要求整理 spec、补齐项目文档、更新需求设计或迁移旧文档流程;普通代码修改不自动启动完整文档流程。.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified before it reaches your agent: the main file against the SHA-256 recorded here, the others against the git hashes of its source commit. The deterministic audit below grades the latest version, and the same checks always give the same file the same grade.
What the file says
# spec-init 帮助项目保留足以指导开发的有效约定,让文档投入与当前任务的风险相称。 用户要求实施时,推进到实现和验证;用户只要求分析或方案时,交付分析或方案。 ## 先确定本轮需要多少文档 | 请求 | 最小准备 | 文档投入 | |---|---|---| | 小修复、局部调整、普通重构 | 问题、范围、验证办法已明确 | 不新建需求、计划或 change;已有说明失真时原位更新 | | 普通功能 | 目标、非目标、验收条件清楚 | 更新已有功能文档;独立新主题才新建一份 | | 跨会话或多人实施 | 上述内容和剩余工作可交接 | 按需保留一份活动计划,同一目标继续更新原计划 | | 权限、数据迁移、公共契约、不可逆操作等高风险变化 | 关键决策、失败路径、兼容和恢复办法清楚 | 在相关文档补必要设计与验证;重大取舍才独立记录 | | 明确要求完整需求或设计 | 覆盖用户指定范围 | 按需要展开角色、异常流、契约和质量目标,不自动铺满目录 | 小改动也可能高风险,按影响判断,不按代码行数判断。 若没有需要改变的约定,零文档改动是正常结果。 ## 执行流程 1. **定向读取。** 先看项目指令、README、相关代码与测试;有文档入口就据此定位本任务的有效约定。没有入口时按功能搜索,确认文件状态,不补全项目文档目录。参考资料按下方触发条件读取,不默认全部加载。 2. **明确必要信息。** 回答“要改成什么、影响什么、如何验证”。从现有代码、测试和已确认决策解决常规选择;只澄清会实质影响范围、安全、数据或兼容性的未知项。未确定方案不能写成已确认事实。 3. **进入实施。** 上述信息充分且无关键阻塞就开工。缺编号、历史索引、无关文档或一般格式不阻塞实现。源码、测试、配置、迁移与受影响文档形成一个完整批次,再统一执行必要检查。 4. **校准结果。** 核实行为与约定,记录实际验证和剩余风险;仅同步本次主题的权威文档、相关引用和实施状态。未跑测试、未上线或未完成迁移不能写成通过或已交付。 停止扩写的条件:当前任务能够安全实施、能够验收,必要约定已经明确。 不要为“更完整”补无关背景、示例、测试矩阵或未来功能;不要在每个局部修改后扫描所有文档。 ## 需求文档是唯一真源 每个主题指定一份权威文档,保存最新确认的需求、边界和验收;沿用原路径,由已有文档入口指向它。唯一真源不等于全项目只能有一个文件。 用户确认需求变化后,立即原位替换权威文档中的旧要求与验收,不只追加补充说明,不等实现完成才更新,也不另建“新版需求”。尚未确认的提议不能替换已确认需求。 需求与交付状态分开:新需求立即生效,未完成的实现标注“待实施”;必要时注明当前实现差距,不能把旧实现描述成仍然有效的要求,也不能把新需求写成已交付。 …
Read the whole file at its exact version.
How to install
mdr add legeling/prompthub/spec-init@git:20260924.815ad2fmdr add legeling/prompthub/spec-init@sha256:7d9f8649ce1c6d34Pin to a label to follow the author's releases, or to a sha256 for exact bytes. Either way the resolved hash is written to mdr.lock, and mdr install fetches those bytes again and checks them, so it installs them exactly or fails.
[](https://markdownregistry.com/a/art_rptlvl3vshb34ojz)
0 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260924.815ad2f latest | 2026-09-24 | 815ad2f | 6,689 B | A | view · diff |
| git:20260710.ebd67d0 | 2026-07-10 | ebd67d0 | 20,976 B | A | view · diff |
| git:20260710.7970b1e | 2026-07-10 | 7970b1e | 18,830 B | A | view · diff |
| git:20260626.ca6460b | 2026-06-26 | ca6460b | 18,350 B | A | view · diff |
| git:20260530.9ccac93 | 2026-05-30 | 9ccac93 | 15,877 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6689 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
legeling/prompthub · 1,675 stars · license AGPL-3.0 · pushed 2026-09-28 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_rptlvl3vshb34ojz GET https://markdownregistry.com/api/v1/resolve?ref=legeling/prompthub/spec-init GET https://markdownregistry.com/api/v1/blob/7d9f8649ce1c6d349219e04606adac3205256f35794c903a3e83a942e94fff4a
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from legeling/prompthub
Every file in legeling/prompthub