Loading...
Loading...
Compare original and translation side by side
scripts//tmp<important if>CLAUDE.mdAGENTS.mdscripts//tmpCLAUDE.mdAGENTS.md<important if>/script-builder**OPTIONAL SUB-SKILL:** desplega:script-builderplanningqaverifying/script-builder**OPTIONAL SUB-SKILL:** desplega:script-builderplanningqaverifying| Mode | Behavior |
|---|---|
| Autopilot | Detect mode, draft, syntax-check, document, and (if escalation tier) run + iterate without intermediate confirmations. Pause only at hard blockers or destructive side-effects. |
| Critical (Default) | Confirm at each tier boundary (after draft, before doc edit, before run). Use AskUserQuestion for fix application during iterate loop. |
| Verbose | Confirm before each step. Show every diff. Walk through detection reasoning out loud. |
| 模式 | 行为 |
|---|---|
| Autopilot | 检测模式、起草脚本、语法检查、生成文档,若属于升级层级则无需中间确认直接运行并迭代。仅在遇到硬阻塞或破坏性副作用时暂停。 |
| Critical(默认) | 在每个层级边界确认(起草后、编辑文档前、运行前)。在迭代循环中使用AskUserQuestion工具确认修复方案。 |
| Verbose | 每一步操作前都确认。展示所有差异。详细说明检测推理过程。 |
curlfetchbun runpythonpytestqa-usegrepcurlfetchbun runpythonpytestqa-usegrepCLAUDE.md<!-- script-builder:dir=<path> -->scripts/scripts/ (Recommended) | custom path | skip dir persistence for this runNo existing scripts directory at <path> — proceeding to intent gatheringCLAUDE.mdAGENTS.md<important if="...">authhealthwebhookReuse <name> as-is | Extend <name> | Generate new anyway<important if>CLAUDE.md<!-- script-builder:dir=<path> -->scripts/scripts/ (推荐) | 自定义路径 | 本次运行跳过目录持久化No existing scripts directory at <path> — proceeding to intent gatheringCLAUDE.mdAGENTS.md<important if="...">authhealthwebhook直接复用<name> | 扩展<name> | 仍生成新脚本<important if>{ what, success_signal, failure_signal, inputs, env, side_effects }| Question | Options |
|---|---|
| "What are we validating, and what's the success signal?" | [Free text — collect what + success signal in one answer] |
| "Any required env vars, inputs, or side-effects to flag (e.g., writes to prod, costs money)?" | [Free text — optional; skip if forward intent already specified them] |
That's the flow | Close but fix X | Start over{ what, success_signal, failure_signal, inputs, env, side_effects }| 问题 | 选项 |
|---|---|
| “我们要验证什么,成功信号是什么?” | [自由文本——在一个回答中收集验证内容+成功信号] |
| “是否需要标记任何必需的环境变量、输入或副作用(例如:写入生产环境、产生费用)?” | [自由文本——可选;若前瞻意图已指定则跳过] |
这就是流程 | 接近但需要修正X | 重新开始package.jsontsconfig.jsonbun.lockbunfig.tomltsxpackage.jsontscpyproject.tomluv.lockrequirements.txtuv.lockpyproject.toml[tool.uv]{{UV_METADATA}}{{UV_METADATA}}src/Cargo.tomlgo.modpackage.jsontsconfig.jsonbun.lockbunfig.tomlpackage.jsontsxtscpyproject.tomluv.lockrequirements.txtuv.lockpyproject.toml[tool.uv]{{UV_METADATA}}{{UV_METADATA}}src/Cargo.tomlgo.modcc-plugin/base/skills/script-builder/templates/{typescript.ts.tmpl|python.py.tmpl|bash.sh.tmpl}{{SCRIPT_NAME}}{{WHAT}}{{WHEN}}{{ENV}}{{EXAMPLE}}{{UV_METADATA}}{{TEST_BODY}}templates/README.mdexit 1custom name| Prefix | When | Example |
|---|---|---|
| End-to-end flows across multiple components | |
| Idempotent single-probe verifications | |
| Minimal-viability post-deploy checks | |
| Performance / size / token measurements | |
| Data seeding or artifact generation (rare for validation) | |
validate-<area>.<ext>chmod +xcc-plugin/base/skills/script-builder/templates/{typescript.ts.tmpl|python.py.tmpl|bash.sh.tmpl}{{SCRIPT_NAME}}{{WHAT}}{{WHEN}}{{ENV}}{{EXAMPLE}}{{UV_METADATA}}{{TEST_BODY}}templates/README.mdexit 1自定义名称| 前缀 | 使用场景 | 示例 |
|---|---|---|
| 跨多个组件的端到端流程 | |
| 幂等性单探测验证 | |
| 部署后的最小可行性检查 | |
| 性能/大小/令牌度量 | |
| 数据填充或制品生成(验证场景中较少使用) | |
validate-<area>.<ext>chmod +x| Language | Checker (in priority order) |
|---|---|
| TypeScript | |
| Python | |
| Bash | |
syntax check OKEditApply fix | Investigate | Stop| 语言 | 检查工具(优先级顺序) |
|---|---|
| TypeScript | 若存在Bun则使用 |
| Python | 始终使用 |
| Bash | 若可用则使用 |
syntax check OKEdit应用修复 | 排查问题 | 停止CLAUDE.mdAGENTS.md<important if="[TRIGGER: e.g., you are testing the auth flow]">CLAUDE.mdAGENTS.md<important if="[TRIGGER: e.g., you are testing the auth flow]">scripts/<name><cmd>/tmp/<name>-*.log/script-builderCLAUDE.mdAGENTS.mdNo CLAUDE.md or AGENTS.md found — script generated but not documentedTest|Testing|Validation|Scripts## Scripts for testing & validationLicense|Acknowledg|Maintain|Contributorsscripts/<name>/script-builder<important if=...>...</important><!-- script-builder:dir=<path> -->CLAUDE.mdgit diff CLAUDE.md AGENTS.mdscripts/<name><cmd>/tmp/<name>-*.log/script-builderCLAUDE.mdAGENTS.mdNo CLAUDE.md or AGENTS.md found — script generated but not documentedTest|Testing|Validation|Scripts## Scripts for testing & validationLicense|Acknowledg|Maintain|Contributorsscripts/<name>/script-builder<important if=...>...</important>CLAUDE.md<!-- script-builder:dir=<path> -->git diff CLAUDE.md AGENTS.md| Autonomy | Behavior |
|---|---|
| Autopilot | Auto-escalate to Step 9 unless the intent flagged side-effects (writes to prod, sends real money, mutates a shared resource). On flagged side-effects, fall through to Critical behavior. |
| Critical (Default) | Use AskUserQuestion: `Run it now to confirm it works |
| Verbose | Same as Critical, plus offer the proposed run command for review before executing. |
| 自主模式 | 行为 |
|---|---|
| Autopilot | 自动升级至步骤9,除非意图标记了副作用(写入生产环境、产生实际费用、修改共享资源)。若标记了副作用,则遵循Critical模式的行为。 |
| Critical(默认) | 使用AskUserQuestion工具:`现在运行以确认可用 |
| Verbose | 与Critical模式相同,额外提供建议的运行命令供用户审核后再执行。 |
--verbose--jsontail -n 40/tmpECONNREFUSEDTracebacknon-zero exitcommand not foundEditApply fix | Investigate differently | StopWARNING: this script <does X> against <target>--verbose--json/tmptail -n 40ECONNREFUSEDTracebacknon-zero exitcommand not foundEdit应用修复 | 换种方式排查 | 停止WARNING: this script <does X> against <target>planningqaverifying{ script_path, status: "pass"|"fail"|"unrun", log_path?, doc_files_edited: [...] }/script-builderRun it with /qa | Run /verify-plan | Commit the script and doc changes | Donedesplega:qadesplega:verifyingfeat(scripts): add scripts/<name> for <area> validationgit addgit commitAborted. Script: <path>. Doc edits: <files or "none">. Re-run /script-builder or git checkout to discard.git restoreplanningqaverifying{ script_path, status: "pass"|"fail"|"unrun", log_path?, doc_files_edited: [...] }/script-builder通过/qa运行 | 运行/verify-plan | 提交脚本及文档变更 | 完成desplega:qadesplega:verifyingfeat(scripts): add scripts/<name> for <area> validationgit addgit commitAborted. Script: <path>. Doc edits: <files or "none">. Re-run /script-builder or git checkout to discard.git restoredesplega:learning/learning capturedesplega:learning/learning capture