deploy-baseline-kit 是一个可安装的 skill 产品,用于识别真实项目、说明它与部署基线的差距,并把项目尽可能收敛到统一的 deploy baseline 结构。
deploy-baseline-kit is an installable skill product for inspecting real repositories, explaining baseline gaps, and converging projects toward a standardized deployment baseline.
- 当前稳定版:
v1.1.0 - 发布时间:
2026-04-06 - Release:
https://github.com/nonozone/deploy-baseline/releases/tag/v1.1.0
这个仓库应被理解为一个 skill 产品仓库,而不是“模板仓库顺带附带一个 skill”。
主场景:
- 识别已有项目的部署结构
- 说明项目与 deploy baseline 的差距
- 在一次主要确认后,把项目尽可能收敛到统一基线
次场景:
- 为近空项目生成同一套基线骨架
当前产品原则:
- 优先让目标项目靠近基线,而不是优先兼容历史差异
deploy-baseline-kit是主入口src/是单一真源- 无法安全收敛的差异必须显式记录为
exceptions
skills/deploy-baseline-kit/当前 skill 入口、安装契约与打包产物内容。src/template/基线模板真源。src/rules/skill 执行规则与 references 真源。src/docs/产品文档真源起点。docs/当前对外文档入口。internal/设计规格与实现计划,仅面向维护者。template/兼容输出目录,由src/template/刷新,不再是主入口。skills/deploy-baseline-kit/assets/template/skill 安装包内的兼容模板输出,由src/template/刷新。skills/deploy-baseline-kit/references/skill 安装包内的兼容规则输出,由src/rules/references/刷新。dist/自包含打包产物目录。
建议先从 docs/README.md 进入。
最短阅读路径:
docs/deploy-baseline-kit.mddocs/baseline-standard.mddocs/deployment-sop.mdskills/deploy-baseline-kit/SKILL.md
如果你正从 v1.0.x 升级,建议再看:
docs/upgrade-v1.1.0.md
如果你是维护者,再继续看:
src/template/src/rules/internal/specs/internal/plans/
推荐把它当成目标项目中的安装型 skill 使用:
- 在目标项目根目录或子目录中运行 Codex
- 显式调用
deploy-baseline-kit - 先查看识别结果、部署单元矩阵、命令面矩阵与
exceptions - 在唯一确认点确认方案
- 让 skill 完成收敛并执行最低验证
手工编辑 src/template/ 只适用于维护这个产品本身,不应再作为普通用户的主使用路径。
env 路径已经统一为:
deploy/env/app.env.example唯一 canonical env 示例来源。deploy/env/app.dev.env本地开发默认 env 文件,make dev默认读取它。deploy/env/app.prod.env生产部署 env 文件。
迁移规则:
make setup会优先基于deploy/env/app.env.example创建deploy/env/app.dev.env- 如果检测到历史根目录
.env,且deploy/env/app.dev.env尚不存在,会自动复制一份并给出明确提示,作为一次性平滑迁移 make local-env-sync与make prod-env-sync只补齐缺失 key,不覆盖已有值
常用命令:
make build-skill基于单一真源构建 skill 产物,并刷新兼容输出。make package生成自包含 skill 包。make install-local安装到本地 Codex skills 目录。make sync-compat将src/template/刷新到兼容模板目录。make sync-rules将src/rules/references/刷新到 skill references 兼容目录。make verify执行仓库级一致性校验。
当前基线要求至少覆盖:
- shell 脚本
bash -n - 需要纳入 Compose 的
self-hosted单元执行docker compose config make help的命令面检查- 项目已有
build/test/typecheck时执行现有健康检查 - env 引用、
healthcheck与回滚边界检查
- 你要把已有项目收敛到统一部署接口
- 你要给团队建立标准化的部署基线
- 你希望用一次确认完成结构化生成或收敛
- 你希望安装一个可复用的 skill,而不是维护多套散落模板
本项目使用 Apache-2.0 协议。详见 LICENSE。
- Current stable release:
v1.1.0 - Published on:
2026-04-06 - Release:
https://github.com/nonozone/deploy-baseline/releases/tag/v1.1.0
This repository should be understood as a skill product repository, not as a template repository that happens to ship a skill.
Primary use case:
- inspect an existing repository's deployment shape
- explain the gap from the baseline
- converge the repository toward the standard structure after one main confirmation
Secondary use case:
- bootstrap a near-empty repository with the same baseline
Product principles:
- converge target projects toward the baseline instead of preserving local drift by default
deploy-baseline-kitis the front doorsrc/is the single source of truth- any deviation that cannot be normalized safely must be recorded as an explicit
exception
skills/deploy-baseline-kit/Live skill entry, install contract, and packaged skill content.src/template/Canonical baseline template source.src/rules/Canonical execution rules and references source.src/docs/Canonical product-doc source.docs/Product-facing repository docs.internal/Design specs and implementation plans for maintainers.template/Compatibility output refreshed fromsrc/template/, not the primary product surface.skills/deploy-baseline-kit/assets/template/Compatibility template output for installed skill packages, refreshed fromsrc/template/.skills/deploy-baseline-kit/references/Compatibility rules output for installed skill packages, refreshed fromsrc/rules/references/.dist/Self-contained package output directory.
Start from docs/README.md.
Shortest product path:
docs/deploy-baseline-kit.mddocs/baseline-standard.mddocs/deployment-sop.mdskills/deploy-baseline-kit/SKILL.md
If you are upgrading from v1.0.x, also read:
docs/upgrade-v1.1.0.md
Maintainer path:
src/template/src/rules/internal/specs/internal/plans/
Treat it as an installable skill inside the target project:
- Run Codex from the target repository root or any child directory
- Explicitly invoke
deploy-baseline-kit - Review the detected state, deployment-unit matrix, command-surface matrix, and
exceptions - Confirm once
- Let the skill converge the project and run the minimum verification surface
Directly editing src/template/ is for product maintenance, not for normal adoption.
The env layout is standardized as:
deploy/env/app.env.exampleThe single canonical env example source.deploy/env/app.dev.envThe default local-development env file used bymake dev.deploy/env/app.prod.envThe production deployment env file.
Migration rules:
make setupinitializesdeploy/env/app.dev.envfromdeploy/env/app.env.example- if a legacy root
.envexists anddeploy/env/app.dev.envdoes not, setup copies it once and prints a clear migration notice make local-env-syncandmake prod-env-synconly fill missing keys and never overwrite existing values
Common commands:
make build-skillBuild the skill from the canonical sources and refresh compatibility outputs.make packageProduce a self-contained skill package.make install-localInstall the skill into the local Codex skills directory.make sync-compatRefresh compatibility template outputs fromsrc/template/.make sync-rulesRefresh compatibility rule outputs fromsrc/rules/references/.make verifyRun repository-level consistency checks.
The baseline currently expects at least:
bash -nfor new or changed shell scriptsdocker compose configforself-hostedunits that are actually in Composemake helpcommand-surface verification- existing
build/test/typecheckhealth checks when the project already has them - checks for env references,
healthcheck, and rollback boundaries
- converging existing projects onto a standardized deployment interface
- establishing a standard deployment baseline across multiple repositories
- using one confirmation gate to drive structured generation or convergence
- shipping a reusable skill product instead of maintaining multiple drifting template paths
This project is licensed under Apache-2.0. See LICENSE for details.