test(skills): add Darwin optimization prompts

This commit is contained in:
csh
2026-08-13 12:04:57 +08:00
parent 823b8c5560
commit 3f0beae26b
2 changed files with 34 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
[
{
"id": "single-intent-with-unstaged-noise",
"prompt": "我已经暂存了一组修复 commit message 校验器的改动,工作树里还有一份无关的未暂存文档改动。请检查当前 staged diff,给我一个符合仓库规范的提交信息,但先不要提交。",
"expected": "只根据完整 cached diff 判断单一意图,明确区分未暂存噪音;解析有效 policy,用 argv 调用 bundled validator 校验候选;按 Detected/Spec/Proposed/Validation/Notes 输出,并且不修改 index、不提交。"
},
{
"id": "mixed-intents-and-shared-file-hunks",
"prompt": "当前暂存区既有一个行为修复,也有无关的文档整理,其中同一个文件里也混进了两个不同目的的 hunk。这些改动适合一个提交吗?请给出提交信息建议。",
"expected": "识别多个逻辑意图并按文件与 hunk 边界提出有序拆分;每组独立说明 Intent/Spec、生成并实际校验候选;在用户确认不拆分前不提供掩盖多意图的合并 Proposed,也不自行改动暂存区。"
},
{
"id": "no-staged-diff",
"prompt": "帮我根据当前改动写一个规范的 commit message。现在只有未暂存改动,没有 staged diff。",
"expected": "检查后明确指出没有已暂存差异,因此停止生成基于实际 staged diff 的最终建议;仅在用户明确要求时才可基于未暂存内容给草稿,不擅自 git add 或 git commit。"
}
]
+17
View File
@@ -0,0 +1,17 @@
[
{
"id": "failing-pr-check-needs-plan-gate",
"prompt": "Gitea 上 PR #42 的 CI 红了,帮我查清原因并修好。请从当前仓库开始排查。",
"expected": "先记录本地状态、确认 remote 属于 Gitea,再基于 run/job/log 证据定位首个可操作错误;给出 Target/Failed CI/Evidence/Plan,并在明确的批准检查点暂停,批准前不改代码、不改 workflow、不泄露凭据。"
},
{
"id": "legacy-gitea-api-web-fallback",
"prompt": "这是 Gitea 1.21 的仓库,/api/v1/version 能访问,但 Actions 的 runs/jobs API 返回 404。网页上一个 run 有三个 job,第二个失败。请继续定位失败日志并给修复计划。",
"expected": "不把 version 成功误判为 Actions API 可用;切换到手动 web 回退,先从 run 页面读取 job 状态并选择失败的 job index 1,而不是盲取 index 0;提取最小日志证据,形成计划并在修改前暂停。"
},
{
"id": "cancelled-infrastructure-not-code-bug",
"prompt": "Gitea Actions 页面仍是红色:run 的 status 是 completedconclusion 是 cancelled,日志最后显示 runner lost heartbeat。请修复这个 CI。",
"expected": "以 conclusion 而非 status 判断结果,将其分类为取消或基础设施问题;建议重跑并排查 runner/队列,不编造代码原因、不修改源码;最终明确区分本地验证与尚待远端复检的状态。"
}
]