delivery-package
Skill1 starsChanged 7 months agoMITView on GitHub
Knowledge pack for assembling production-grade delivery packages (README / deploy guide / demo script). Auto-loaded by docs-agent.
In this repository12 other files it gives its agents.
- acceptance-criteriaSkill
- ai-native-designSkill
- api-contract-firstSkill
- backend-developmentSkill
- checkpoint-commitSkill
- ddt-baseline-syncSkill
- ddt-brief-builderSkill
- decision-gateSkill
- efficiency-metricsSkill
- frontend-developmentSkill
- relaySkill
- validation-loopSkill
The file
Files
Delivery Package
Triggers
- docs-agent 启动 / /package 命令
Package Must Contain
README.md(5 分钟上手)docs/deploy.md(幂等部署)docs/demo-script.md(3–5 分钟演示)- 质量守门产物(
tests/test-report.md+docs/review-report.md)
README 8 要素(缺一不可)
- 一句话定位(What):让读者 5 秒内判断是否值得继续读
- 受众与场景(Who / When):明确谁在什么场景下使用
- 5 分钟上手(copy-paste 命令序列):必须实际可跑通,含
make bootstrap或等价一键命令 - 目录结构导览:列出关键目录及其用途
- 常见问题(Top 5 FAQ):覆盖最高频的上手障碍
- 相关文档索引:链接到 arch.md / api-contract.yaml / deploy.md
- 维护者与反馈渠道:姓名 + 联系方式(用
<YOUR_EMAIL>占位) - 许可证:明确声明
Deploy 原则
- 幂等:重复跑 5 次,结果与第 1 次完全一致
- 环境变量注入:不硬编码任何密钥、内网地址、账号信息(一律
<YOUR_XXX>) - 回滚脚本:必须有对应的 rollback 命令或说明
- 环境校验:跑前自检(Node 版本、必要工具、磁盘空间)
- 脚本头部:
set -euo pipefail 事实驱动(D36 / v0.9.20):必读
.ddt/deployment-facts.json(由bin/audit-deployment-config.mjs生成),禁止凭常识填以下 5 个值:- MySQL root 密码:用
facts.derived.mysql_root_password(不得写root、123456、password等"常见值"——除非 facts 实际是这个值) - MySQL 端口 / 数据库名:用
facts.derived.mysql_database+facts.server.datasource.port - 后端端口 / context-path:用
facts.server.server.port+facts.server.server.context_path - 前端 dev 端口:用
facts.web.dev_port(vite 默认 5173 / next 默认 3000 / cra 默认 3000) - smoke 测试 health endpoint:用
facts.smoke_endpoint——- actuator 装好且暴露 →
GET /actuator/health - actuator 缺失 → 用 facts 推断的 fallback(contract 第一个 GET 或
/auth/login) - 禁止在 actuator 不可用时写
curl /api/actuator/health(会 404No static resource)
- actuator 装好且暴露 →
facts.json 缺失(audit 失败)→ deploy.md 顶部必须加显式 ⚠️ 警告 + 用
<YOUR_XXX>占位 + 提示用户跑node $DDT_PLUGIN_ROOT/bin/audit-deployment-config.mjs补全。- MySQL root 密码:用
Demo Script 原则
- 时间轴精确到 10 秒(示例:
00:00–00:30 展示登录流程) - 每步标注三项:动作 / 期望屏幕状态 / 口播稿
- 总时长 3–5 分钟,聚焦 1–2 个核心特性,不要塞进 10 个特性
- 有意外演示备选分支(网络挂了 / 接口超时时的应对预案)
Do
- 用
<YOUR_XXX>占位所有真实密钥、邮件、内网地址 - 部署脚本加
set -euo pipefail - README 第一段必须让人知道"值不值得继续读"
- 所有示例命令在 clean 环境下实际验证可跑通
Don't
- README 不是 changelog,不要罗列每次更新历史
- 部署不要依赖"先手工改一下 XXX 再运行"
- Demo 不要总时长超过 5 分钟或覆盖超过 3 个特性
- 不在 README 里放真实用户数据或截图中含敏感信息
- D36 反模式:不要凭常识写
MYSQL_ROOT_PASSWORD=root/curl /api/actuator/health/ 其它"假定默认"——这些导致演示翻车的硬编码假设必须从.ddt/deployment-facts.json派生
Quality Gate(出包前必须通过)
tests/test-report.md存在且覆盖率 ≥ 70%docs/review-report.md存在且阻塞级问题 = 0- README 从零 clone 后可完整运行
- deploy.md 幂等验证通过(至少空跑一次)
- demo-script.md 时长在 3–5 分钟内
Templates & References
templates/deploy.template.mdtemplates/demo-script.template.mdtemplates/prd.template.md(参考"受众"章节写法)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

