issues
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseIssues
Issues
Command-driven GitHub issue skill. Parse the first token as a command when it matches the table below; otherwise map clear intent.
Default: if the user gives only an issue identifier (, , URL) and optional details (context, constraints, “fix the flaky test”) — no admin command — execute Complete the work. Do not ask which admin command to run. Do not stop at //.
#4242statuscritiquerefineAdmin commands shape the issue when explicitly requested; they are not the default path.
命令驱动的GitHub Issue处理Skill。当第一个词匹配下表中的命令时,将其解析为命令;否则根据明确意图映射对应操作。
默认规则:如果用户仅提供Issue标识符(、、URL)和可选详情(上下文、约束、“修复不稳定的测试”)——未指定管理命令——则执行完成工作流程。不要询问要运行哪个管理命令。不要停留在//步骤。
#4242statuscritiquerefine管理命令仅在显式请求时用于调整Issue,不是默认路径。
Operating contract
操作规范
Shared by every DecisionNerd/dev-skills skill. Canonical copy: .
handbook/concepts/14-operating-contract.md- Define done first. Before using tools, write the finish line in one or two lines: the acceptance criteria (existing issue AC, BDD scenarios, tests, or contract when they exist; otherwise propose them and say where they should live) and the evidence that will prove them. Re-check it before reporting done. Never report done on work you did not verify.
- Requested scope sets the finish line. A question ("is it ready?", "why is it broken?", "what next?") ends with the answer and a line naming the exact next invoke. An outcome request ("fix", "finish", "land", "#42") continues through the chain (diagnose → fix → test → check-readiness → merge-it) until the outcome or a real blocker. Do not end a turn with "Do you want me to…?" for in-scope, in-repo work.
Next: - Stop only for real blockers. Stop and ask only when you cannot continue without the user, or before: deleting data or unmerged work, force-push or history rewrite, changing anything outside this repository (GitHub objects, deployments, live data, production or paid resources, external services), or leaving the requested scope, unless the user's request already named that exact action. Keep the harness's permission prompts for risky commands. Otherwise keep going and put status notes in the same message as the next action.
- Ask well, once. For a genuine question use the harness's structured question tool when it has one (Claude Code: ; Codex:
AskUserQuestionwhen the current mode supports it) with concrete options; otherwise plain text with numbered options. Treat the answer as settled; do not re-open earlier verdicts, plans, or answers unless asked.request_user_input - Fan out when work is parallel. Use subagents for independent reads (repo survey, evidence gathering, per-option research, per-area audits) and for independent verification (a reviewer that did not write the change). Writes stay single-owner per path set and sequential. Brief every child with goal, done-when, constraints, must-not, and return shape; verify each child's result before consolidating. Use Claude Code's tool only for orchestration across many subagents that truly needs it; it is expensive.
Workflow - Pick the model tier per child; defer to routing config. If the harness or user config already routes subagents (Claude Code or a CLAUDE.md rule; Codex
CLAUDE_CODE_SUBAGENT_MODELor a role'sagents.default_subagent_model; Cursor a custom subagent'sagents.<name>.config_filefrontmatter), follow it and do not pass a model. Otherwise: mechanical search or inventory → fast/cheap (Claude Codemodel:); implementation and evidence gathering → mid (haiku); planning, review, adversarial verification → top (sonnetoropus). In Claude Code set it with thefabletoolAgentparam or agent frontmattermodel; in Codex pass a spawn model or setmodel:in the role's config file; in Cursor setmodel(defaultmodel:) ininherit. Where the harness cannot choose, children inherit the parent model or the harness picks one (Cursor's built-in Explore/Bash/Browser subagents pick per subtask); say which in the status note..cursor/agents/*.md - Keep a checklist on long runs. For more than about five steps or work that crosses skills, keep at the repo root and tick items as they finish. Do not commit it unless the repo already tracks one.
TASKS.md - Close every run with three headings. (the one genuine question or blocker, else "none");
Blocked on me(files, commits, GitHub objects, deploys, else "nothing");Changed(evidence, verdict, andFound).Next: <exact invoke>
所有DecisionNerd/dev-skills Skill均遵循此规范。标准副本:。
handbook/concepts/14-operating-contract.md- 先定义完成标准。使用工具前,用一两行说明完成线:验收标准(现有Issue的AC、BDD场景、测试或契约,若存在;否则提出建议并说明应存放的位置)以及证明完成的证据。报告完成前重新核对。未经验证的工作绝不报告完成。
- 请求的范围决定完成边界。问题类请求(“准备好了吗?”、“为什么坏了?”、“下一步是什么?”)以答案和行结束,该行明确下一次调用的具体内容。结果类请求(“修复”、“完成”、“上线”、
Next:)将沿流程链推进(诊断→修复→测试→就绪检查→合并),直到达成目标或遇到真正的阻塞。对于仓库范围内的工作,不要以“你想让我…吗?”结束本轮回复。#42 - 仅遇真正阻塞时停止。仅当无法在没有用户参与的情况下继续,或在执行以下操作前才停止并询问:删除数据或未合并的工作、强制推送或历史重写、修改此仓库之外的任何内容(GitHub对象、部署、实时数据、生产或付费资源、外部服务),或超出请求范围,除非用户的请求已明确指定该确切操作。保留宿主工具对风险命令的权限提示。否则继续推进,并在同一条消息中附上状态说明和下一步操作。
- 一次问清楚。对于真实问题,若宿主工具支持结构化提问工具(Claude Code:;Codex:当前模式支持时使用
AskUserQuestion),则使用该工具并提供具体选项;否则使用带编号选项的纯文本。将答案视为最终结论;除非被要求,否则不要重新讨论之前的结论、计划或答案。request_user_input - 并行工作时分派处理。对于独立的读取操作(仓库调研、证据收集、逐选项研究、各领域审计)和独立验证(由未编写变更的评审子Agent执行),使用子Agent。写入操作在每条路径上保持单一负责人并顺序执行。向每个子Agent明确说明目标、完成条件、约束、禁止事项和返回格式;合并结果前验证每个子Agent的输出。仅当确实需要编排大量子Agent时才使用Claude Code的工具;该工具成本较高。
Workflow - 为每个子Agent选择模型等级;优先遵循路由配置。如果宿主工具或用户配置已为子Agent设置路由(Claude Code的或CLAUDE.md规则;Codex的
CLAUDE_CODE_SUBAGENT_MODEL或角色的agents.default_subagent_model;Cursor自定义子Agent的agents.<name>.config_file前置元数据),则遵循该配置,不要传递模型参数。否则:机械搜索或盘点→快速/低成本(Claude Codemodel:);实现和证据收集→中等(haiku);规划、评审、对抗性验证→顶级(sonnet或opus)。在Claude Code中通过fable工具的Agent参数或Agent前置元数据的model设置;在Codex中传递生成模型或在角色配置文件中设置model:;在Cursor中在model中设置.cursor/agents/*.md(默认model:)。若宿主工具无法选择模型,子Agent将继承父Agent模型或由宿主工具选择(Cursor内置的Explore/Bash/Browser子Agent会根据子任务选择);在状态说明中注明使用的模型。inherit - 长流程运行时保留检查清单。对于超过约五个步骤或跨Skill的工作,在仓库根目录维护,完成项打勾。除非仓库已跟踪该文件,否则不要提交。
TASKS.md - 每次运行结束时包含三个标题。(我这边的阻塞:一个真实问题或阻塞项,否则为“无”);
Blocked on me(变更内容:文件、提交、GitHub对象、部署,否则为“无”);Changed(发现内容:证据、结论,以及Found)。Next: <具体调用内容>
Commands
命令
| Command | What it does |
|---|---|
| New issue from a rough idea (duplicate check, questions, draft, approve) |
| Improve an existing issue body/title/metadata with approval |
| Honest quality critique (clarity, scope, AC, BDD, risks, docs) |
| Shrink scope; move extras to Non-Goals / follow-ups |
| Expand scope deliberately with rationale and still-bounded AC |
| Combine overlapping issues into one canonical issue (close/redirect others) |
| Remove noise, stale text, broken checklists, formatting cruft |
| Sharpen wording and structure without changing agreed scope |
| Plain-language explanation for the user (not a GitHub edit) |
| Improve or add repo docs that the issue needs (then link from the issue) |
| Close with evidence-based rationale (and comment when useful) |
| Reopen with reason |
| Duplicate/related issue search only |
| Summarize state, labels, milestone, linked PRs, blockers |
| List commands |
Target: issue number (, ), URL, title search, or free-text idea (for ).
123#123create| 命令 | 功能 |
|---|---|
| 从粗略想法创建新Issue(重复检查、提问、草稿、审批) |
| 经审批后改进现有Issue的正文/标题/元数据 |
| 客观质量评审(清晰度、范围、AC、BDD场景、风险、文档) |
| 缩小范围;将额外内容移至非目标/后续跟进 |
| 有依据地扩大范围,同时保持AC边界清晰 |
| 将重叠的Issue合并为一个标准Issue(关闭/重定向其他Issue) |
| 移除噪音、过时文本、损坏的检查清单、格式冗余 |
| 在不改变已约定范围的前提下优化措辞和结构 |
| 为用户提供通俗易懂的解释(不修改GitHub内容) |
| 改进或补充Issue所需的仓库文档(然后在Issue中添加链接) |
| 基于证据说明理由后关闭(必要时添加评论) |
| 说明理由后重新打开 |
| 仅搜索重复/相关Issue |
| 汇总状态、标签、里程碑、关联PR、阻塞项 |
| 列出所有命令 |
目标:Issue编号(、)、URL、标题搜索,或自由文本想法(用于)。
123#123createRouting
路由规则
- No argument: ask via the structured question tool — options: complete an issue (needs ) /
#N/create/status.help - First word is a command: run that command; remainder is the target/context. After admin work, state and run it when the user signaled progress.
Next: issues #N - Clear admin intent without command word (“narrow #42”, “explain this issue”, “draft an issue for…”): map to that command and proceed.
- Issue identifier ± details, no admin command (,
#42, URL, or42): Complete the work — execute, don’t menu.#42 focus on the API path - Rough idea / bug / feature with no identifier and no command: .
create
Before mutating GitHub (create/update/close/reopen/merge redirects), state the proposed change; ask one structured question with options . Skip when the user’s request already named that exact action. Implementation and other completion handoffs follow the target skill’s approval rules.
<do it> / revise / stop- 无参数:通过结构化提问工具询问——选项:完成Issue(需要)/
#N/create/status。help - 第一个词是命令:运行该命令;剩余内容为目标/上下文。管理工作完成后,说明,并在用户表示要推进时执行。
Next: issues #N - 有明确管理意图但无命令词(“缩小#42的范围”、“解释这个Issue”、“为…起草一个Issue”):映射到对应命令并继续。
- 有Issue标识符 ± 详情,无管理命令(、
#42、URL,或42):完成工作——直接执行,不要显示菜单。#42 关注API路径 - 无标识符、无命令的粗略想法/ Bug /功能需求:走流程。
create
在修改GitHub内容(创建/更新/关闭/重新打开/合并重定向)之前,说明拟议的变更;提出一个结构化问题,选项为 / 修改 / 停止。如果用户的请求已明确指定该确切操作,则跳过此步骤。实现和其他完成流程的交接遵循目标Skill的审批规则。
<执行>Shared operations
共享操作
Use references/ops.md for , , , , , , , and .
critiquenarrowwidenmergecleanrefineexplaindocumentcritiquenarrowwidenmergecleanrefineexplaindocumentCreate / draft
创建/草稿
For or , follow references/create.md end-to-end (disposition → questions → draft → approval → / update).
createdraftgh issue create对于或,全程遵循references/create.md(处理→提问→草稿→审批→ / 更新)。
createdraftgh issue createComplete the work
完成工作
Issue admin ( / / / / …) tracks intent. Completing the work means planning, diagnosing, implementing, proving, and shipping.
createcritiquerefinenarrowIssue管理( / / / / …)用于跟踪意图。完成工作意味着规划、诊断、实现、验证和上线。
createcritiquerefinenarrowPlanning and workspace rules
规划与工作区规则
Planning is a read-only phase, not a requirement for a host-specific mode or tool. If native Plan Mode is unavailable, inspect and produce the plan in the current agent. Respect active host restrictions; do not invent a mode-switch tool or stop merely because one is absent. A completion request already authorizes in-scope planning and implementation when the host permits them; a planning-only request does not.
Before the first repository write, read and follow references/workspace.md. Use a dedicated task worktree by default, with one writer per worktree. Reuse a host-created task worktree only after verifying ownership. Apply this to docs and tests as well as code; read-only planning and GitHub-only admin do not need a worktree. Carry the absolute worktree path, branch, base, and ownership through every execution-skill handoff.
规划是只读阶段,不是特定宿主模式或工具的必需项。如果原生规划模式不可用,在当前Agent中检查并生成计划。遵守宿主的活跃限制;不要发明模式切换工具,也不要仅因为缺少该工具就停止。当宿主允许时,完成类请求已授权范围内的规划和实现;仅规划类请求则不授权。
首次写入仓库之前,请阅读并遵循references/workspace.md。默认使用专用任务工作树,每个工作树仅一个写入者。仅在验证所有权后才能复用宿主创建的任务工作树。此规则适用于文档、测试以及代码;只读规划和仅GitHub管理操作不需要工作树。在每次执行Skill交接时传递工作树绝对路径、分支、基准和所有权信息。
Default path (identifier ± details)
默认路径(标识符 ± 详情)
When routed here (no admin command):
State the issue's AC and BDD completion scenarios as the finish line before picking an execution skill. For multi-issue or multi-area work, fan out one subagent per non-overlapping path set (mid tier) and keep for chains longer than five steps.
TASKS.md- Resolve the issue (); skim linked PRs, milestone, labels.
gh issue view - Fold any user details into scope (constraints, focus area, “don’t touch X”).
- Resolve repository policy and inspect existing worktrees/PRs. Before implementation, establish the owned workspace using the rules above; plan-only work remains read-only.
- Pick the smallest next execution skill from the table and run it now (invoke that skill / continue the work). One-line why is enough — do not present a recommend-only menu.
- Chain forward as each step unblocks (e.g. → implement →
recon issue→check-readiness) until a real blocker (an outside-repo approval, missing info) or the user stops you.merge-it - If the issue body is too vague to execute safely, do the minimum shaping (questions or a tight
refineplan), then continue execution — don’t end on admin alone.recon issue
当路由到此处时(无管理命令):
在选择执行Skill之前,先说明Issue的AC和BDD完成场景作为完成线。对于多Issue或多领域的工作,为每组不重叠的路径分派一个子Agent(中等模型),对于超过五步的流程链维护。
TASKS.md- 解析Issue();浏览关联PR、里程碑、标签。
gh issue view - 将用户提供的所有详情纳入范围(约束、关注领域、“不要修改X”)。
- 确认仓库策略,检查现有工作树/PR。实现之前,根据上述规则建立专属工作区;仅规划工作保持只读。
- 从下表中选择最小的下一步执行Skill并立即运行(调用该Skill / 继续工作)。只需一行说明理由——不要仅提供推荐菜单。
- 每一步解除阻塞后继续链式推进(例如→ 实现 →
recon issue→check-readiness),直到遇到真正的阻塞(仓库外的审批、信息缺失)或用户停止。merge-it - 如果Issue正文过于模糊,无法安全执行,则进行最小程度的调整(提问或紧凑的
refine规划),然后继续执行——不要仅停留在管理步骤。recon issue
After explicit admin commands
显式执行管理命令之后
After , , , / (once the issue exists), state (or the skill from the table that best fits the current state); run it when the user already signaled progress (“ship it”, “finish this”, or details that imply do-the-work).
statuscritiqueexplaincreatedraftNext: issues #N| Situation | Execute |
|---|---|
| Needs implementation plan | |
| Live UI / product broken | |
| Backend / API / algo bug | |
| Repair plan from diagnosis | |
| Need tests / BDD evidence | |
| Need logs/metrics/traces | |
| Repo docs gap (not just issue body) | |
| Options before building | |
| Scope satisfied? Pre-PR / close | |
| Open PR / CI / merge / close issue | |
| Milestone membership / release slice | then return to critical-path issue execution |
| Unsure / lost | |
Do not default to when an identifier was given. Prefer execute ( / diagnose / fix / implement / ) over more issue editing.
issues refine|critique|narrow|statusrecon issuemerge-it在、、、/(Issue已创建)之后,说明(或最符合当前状态的Skill);如果用户已表示要推进(“上线”、“完成这个”,或暗示要执行工作的详情),则直接运行。
statuscritiqueexplaincreatedraftNext: issues #N| 场景 | 执行Skill |
|---|---|
| 需要实现计划 | |
| 线上UI / 产品故障 | |
| 后端 / API / 算法Bug | |
| 根据诊断制定修复计划 | |
| 需要测试 / BDD证据 | |
| 需要日志/指标/链路追踪 | |
| 仓库文档缺口(不仅是Issue正文) | |
| 构建前的选项调研 | |
| 范围是否满足?PR前 / 关闭前 | |
| 开放PR / CI / 合并 / 关闭Issue | |
| 里程碑归属 / 发布切片 | 然后返回关键路径Issue执行 |
| 不确定 / 迷失方向 | |
不要在提供了标识符的情况下默认走。优先执行( / 诊断 / 修复 / 实现 / )而非更多Issue编辑。
issues refine|critique|narrow|statusrecon issuemerge-itUpdate / close / reopen / search / status
更新 / 关闭 / 重新打开 / 搜索 / 状态
- Resolve the issue with / search; read
gh issue viewfor repo conventions.AGENTS.md - : propose a diff of sections; apply only after approval (
updateor comment).gh issue edit - /
close: state why; comment when it preserves decision history.reopen - /
search: classify Duplicate / Related / No Match; prefer update-over-create.dup - : short factual summary; state
status(run it when the user asked to finish/ship).Next: issues #N
- 使用/ 搜索解析Issue;阅读
gh issue view了解仓库约定。AGENTS.md - :提出各部分的变更差异;仅在审批后应用(
update或评论)。gh issue edit - /
close:说明原因;当有助于保留决策历史时添加评论。reopen - /
search:分类为重复 / 相关 / 不匹配;优先更新而非创建。dup - :简短的事实汇总;说明
status(如果用户要求完成/上线则运行)。Next: issues #N
Output
输出
Blocked on me
Blocked on me
none
无
Changed
Changed
nothing
无
Found
Found
Next: issues #N (or the execution skill that best fits the current state)
Next: issues #N(或最符合当前状态的执行Skill)
Related skills
相关Skill
See Complete the work. Deep plan: . Gate: . Land: / . Organize: .
recon issuecheck-readinessmerge-itpullsmilestones参见完成工作部分。深度规划:。门禁检查:。上线: / 。组织:。
recon issuecheck-readinessmerge-itpullsmilestonesGrounding
基础依据
This skill’s TTPs are grounded in current engineering baselines (DORA, GitHub Docs, Fowler/Beck, Google SRE & SWE book, OpenTelemetry, OWASP LLM / NIST AI RMF, Diátaxis — see handbook ).
sources.mdGitHub Issues as tracked intent — bug-council list () plus lightweight BDD completion scenarios on the quality trace (). Narrow scope = small batches (DORA). Label debt type; map scenarios to evidence.
handbook/concepts/12-bugs-and-debt.md13-quality-trace.mdHandbook card: .
handbook/practices/issues.md本Skill的TTPs基于当前工程基线(DORA、GitHub Docs、Fowler/Beck、Google SRE & SWE书籍、OpenTelemetry、OWASP LLM / NIST AI RMF、Diátaxis——参见手册)。
sources.mdGitHub Issues作为跟踪的意图——Bug评审列表()加上质量追踪上的轻量级BDD完成场景()。小范围 = 小批量(DORA)。标记债务类型;将场景与证据对应。
handbook/concepts/12-bugs-and-debt.md13-quality-trace.md手册卡片:。
handbook/practices/issues.md