Loading...
Loading...
Compare original and translation side by side
Prove a repository is deploy-ready, or fix only the reproduced quality/build blockers that prevent that proof.
证明代码仓库已具备部署就绪条件,或仅修复那些阻碍该证明的、已重现的质量/构建阻塞问题。
deploy-fixbug-fixexecutepackage.jsonCargo.tomlpyproject.tomlrequirements.txtsetup.pyPipfilepoetry.lockdeploy-fixbug-fixexecutepackage.jsonCargo.tomlpyproject.tomlrequirements.txtsetup.pyPipfilepoetry.lockpre-deploypre-deploy| Script | Purpose |
|---|---|
| Detect project stacks ( |
| Full verification ( |
| Run stack-specific quality checks |
| Run stack-specific build phase |
| Node package manager detection ( |
lint-check.sh| 脚本 | 用途 |
|---|---|
| 检测项目技术栈( |
| 完整验证(lint/类型检查 + 构建) |
| 执行技术栈专属的质量检查 |
| 执行技术栈专属的构建阶段 |
| Node包管理器检测( |
lint-check.shsequential-thinking| Complexity | Thinking depth | Signals |
|---|---|---|
| Simple | 3 thoughts | One stack, one failing command, clear root cause, low-risk fix |
| Medium | 5 thoughts | Multiple related failures in one stack, moderate config/dependency impact |
| Complex | 7+ thoughts | Multiple stacks/workspaces, ambiguous fix strategy, shared config, dependency chain, or CI/deploy boundary |
| Complexity | Signals | Path |
|---|---|---|
| Simple | Single failing check, one stack, clear file/config owner, one safe fix path | Fix-now |
| Medium | Several failures in one stack or one workspace, independent enough for targeted fixes | Fix-now with TodoWrite tracking |
| Complex | Multi-stack failures, shared configs, monorepo/build graph issues, uncertain repair options, or likely cross-cutting side effects | Tracked remediation; use |
deploy-check.shrules/parallel-remediation.mdrules/tracked-remediation.md.hypercore/pre-deploy/flow.jsondetectbaselinetriagefixverifyreportdeploy-fixbug-fixexecutesequential-thinking| 复杂度 | 思考深度 | 信号 |
|---|---|---|
| 简单 | 3个思考步骤 | 单一技术栈、单一失败命令、明确根因、低风险修复 |
| 中等 | 5个思考步骤 | 同一技术栈内多个相关失败、对配置/依赖有中等影响 |
| 复杂 | 7个及以上思考步骤 | 多个技术栈/工作区、模糊的修复策略、共享配置、依赖链,或CI/部署边界问题 |
| 复杂度 | 信号 | 处理路径 |
|---|---|---|
| 简单 | 单一失败检查、单一技术栈、明确的文件/配置归属、单一安全修复路径 | 即时修复(Fix-now) |
| 中等 | 同一技术栈或工作区内多个失败、可独立进行针对性修复 | 结合TodoWrite跟踪的即时修复 |
| 复杂 | 多技术栈失败、共享配置、单体仓库/构建图问题、不确定的修复方案,或可能产生跨领域副作用 | 跟踪式修复;在使用子Agent前加载 |
deploy-check.shrules/parallel-remediation.mdrules/tracked-remediation.md.hypercore/pre-deploy/flow.jsondetectbaselinetriagefixverifyreportdeploy-fixbug-fixexecuteskills/pre-deploy/scripts/deploy-check.shskills/pre-deploy/scripts/deploy-check.shundefinedundefined
Use step-by-step commands for targeted rechecks after a fix, but the final readiness claim still requires a full `deploy-check.sh` run.
修复后使用分步命令进行针对性复查,但最终就绪性声明仍需运行完整的`deploy-check.sh`。cargo fmt --checkcargo clippycargo checkcargo build --releaseruffflake8mypycompileallpoetry buildpython -m buildcompileallundefinedcargo fmt --checkcargo clippycargo checkcargo build --releaseruffflake8mypycompileallpoetry buildpython -m buildcompileallundefinedskills/pre-deploy/scripts/deploy-check.sh
Only say "ready to deploy" when the final full `deploy-check.sh` run passed.
</completion_report>
<validation>
Execution checklist:
- [ ] Target root or workspace validated
- [ ] Supported stack detected, or unsupported stack reported and stopped
- [ ] Full `skills/pre-deploy/scripts/deploy-check.sh` run first for supported stacks
- [ ] Failures tracked by stack/command/priority
- [ ] Root-cause evidence collected before edits
- [ ] Sequential thinking completed at the right depth
- [ ] Parallel lanes, if used, were independent and bounded
- [ ] Targeted validation run after each fix
- [ ] Full deploy check passed before readiness claim
- [ ] Skipped checks reported separately from passed checks
Forbidden:
- [ ] Claiming deploy readiness without a passing full deploy check
- [ ] Editing without a reproduced failure unless the user explicitly requested implementation work outside this skill
- [ ] Treating skipped checks as passed
- [ ] Continuing after unsupported-stack detection
- [ ] Requiring product-specific subagent syntax as if every runtime supports it
- [ ] Letting subagents edit overlapping files or own the final readiness decision
</validation>skills/pre-deploy/scripts/deploy-check.sh
仅当最终完整的`deploy-check.sh`运行通过时,才可声明"已准备好部署"。
</completion_report>
<validation>
执行检查清单:
- [ ] 已验证目标根目录或工作区
- [ ] 已检测到支持的技术栈,或已报告不支持的技术栈并停止流程
- [ ] 针对支持的技术栈,已首先运行完整的`skills/pre-deploy/scripts/deploy-check.sh`
- [ ] 已按技术栈/命令/优先级跟踪失败情况
- [ ] 编辑前已收集根因证据
- [ ] 已完成对应深度的顺序思维
- [ ] 若使用并行通道,通道间相互独立且有限制
- [ ] 每次修复后已执行针对性验证
- [ ] 就绪性声明前已通过完整部署检查
- [ ] 已将跳过的检查与通过的检查分开报告
禁止操作:
- [ ] 未通过完整部署检查就声称已准备好部署
- [ ] 无已重现的失败就进行编辑,除非用户明确要求该技能之外的实现工作
- [ ] 将跳过的检查视为通过
- [ ] 检测到不支持的技术栈后仍继续流程
- [ ] 要求使用特定产品的子Agent语法,假设所有运行时都支持该语法
- [ ] 允许子Agent编辑重叠文件,或让子Agent拥有最终就绪性决策权
</validation>