用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/evanfang0054/agent-harness --skill fix-issues-and-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
You MUST use this before any creative work — features, components, behavior changes. Explores intent, requirements, and design before implementation.
Use when implementation is done and tests pass, and the user must choose how to integrate or retain completed branch work.
Use when receiving code review feedback. Verify before implementing; technical correctness over blind agreement.
正在显示 SKILL.md
基于 SOC 职业分类
| name | fix-issues-and-pr |
| description | Fix existing GitHub issues via SDD and ship as one PR. Trigger on "修 |
| argument-hint | "#12,#15" or "all" |
Pull existing GitHub issues, fix each via SDD workflow, and ship all fixes as one PR that closes every target issue — no session analysis, no new issues.
/fix-issues-and-pr #12,#15 或 /fix-issues-and-pr allagent-harness:generate-issues 创建的),现在要批量修复When NOT to use:
agent-harness:generate-issues"${CLAUDE_PLUGIN_ROOT}/scripts/auto-loop.sh"(不带 --fix-only)多 issue 一个 PR:所有修复打到同一分支
feat/fix-issues-<first_issue>-<date>,PR body 用closes #N(每行一个,GitHub 自动关闭)。不要拆成多个 PR。
| 用户表达 | CLI 参数 |
|---|---|
| "修 #12 #15" | --fix-only "#12,#15" |
| "修所有 open issues" | --fix-only "all" |
| "修最多 5 个" | --max-issues 5(与 all 配合,默认 10) |
all:拉取 evanfang0054/agent-harness 所有 open issues,按更新时间排序,受 --max-issues 限制。"${CLAUDE_PLUGIN_ROOT}/scripts/auto-loop.sh" --fix-only "#12,#15"
"${CLAUDE_PLUGIN_ROOT}/scripts/auto-loop.sh" --fix-only "all" --max-issues 10
同 agent-harness:generate-issues:claude / gh(已 gh auth login) / jq / uv 可用,工作区干净。
重要:填充 PR 模板 / 改文件时,不要用 GNU sed 的
c\/a\/i\多行替换语法。macOS 默认是 BSD sed,遇到sed -i '' "/pattern/c\ replacement"会报:sed: 1: "/pattern/c\...": extra characters after \ at the end of c command推荐做法(跨平台):
- 简单字符串替换:
sed 's/pattern/replacement/g'(GNU 和 BSD 都支持)- 多行替换 / 模板填充:优先用 Edit 工具 或 Python(
python3 -c "..."),不要用sed c\- 写入新文件:直接用 Write 工具
该约束适用于整个 SDD 修复链路 —— orchestrator 派发的 Claude 也要遵守。
feat/fix-issues-<first_issue>-<date>,PR body 含 closes #12\ncloses #15\n....claude/auto-loop/state.json 的 .progress.fixes_completed 记录每个 issue 的 commit hashagent-harness:generate-issues完整能力见 "${CLAUDE_PLUGIN_ROOT}/scripts/auto-loop.sh" 与 skills/auto-loop/orchestrator-prompt.md 的 fix_only 模式分支。