简介
基于分类优先工作流审查 Apollo GitHub Issue,区分行为问题与咨询类问题,生成可直接发布的维护者级回复,包含复现验证、能力边界澄清与可行方案。
原始描述
Review Apollo ecosystem issues with a classify-first workflow (reproduce for behavior issues, evidence-check for consultative asks) and draft maintainer-grad...
通过你的 Agent 添加
安装目录:apollo-issue-review/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心能力
apollo-issue-review 是一套针对 Apollo 配置中心生态的 GitHub Issue 审查工作流,采用「分类优先」策略:先判定 Issue 类型为「行为/回归问题」还是「咨询/支持问题」,再执行差异化验证路径——前者要求本地最小复现,后者依赖代码库证据扫描。该 Skill 强调直接回应用户诉求、明确支持边界、提供可立即执行的下一步路径,而非陷入冗长辩论。
显著优点
- 结构化工作流:从输入收集、类型判定、验证执行到回复起草,六步流程清晰可执行,降低审查遗漏风险。
- 语言自适应:根据 Issue 标题/正文/评论自动识别主语言(中英),输出匹配语言的本地化章节标签(如「复现结论」「当前能力与边界」)。
- 防重复机制:若已有评论正确回应,仅追加增量修正,避免信息噪音。
- 贡献者友好:检测到「认领」意图时,先鼓励后评估,给出具体可行性边界与实现建议。
- 发布安全闸:默认仅生成草稿,需显式确认(「发布」/「post」)后才调用 GitHub API,防止误操作。
潜在局限
- 外部依赖敏感:重度依赖
ghCLI 或 GitHub REST API 稳定性,网络波动时需降级到curl回退。 - 复现成本:行为类问题要求维护者本地构建最小复现,对大型 Apollo 多模块项目可能耗时。
- 权限隐式要求:实际生效需具备 Issue 评论写入权限,Skill 本身不校验 Token 作用域。
- OpenAPI 路径易混淆:虽强制区分 Portal Web API 与
/openapi/v1/*端点,但用户原始 Issue 可能表述不清,需人工二次确认。
适合人群
- Apollo 官方维护者及核心贡献者
- 负责 Issue triage 的社区管理员
- 需批量处理社区反馈、标准化回复格式的一线开发者
常规风险
| 风险项 | 说明 |
|---|---|
| 信息泄露 | 起草回复时可能引用内部路径或配置片段,需人工脱敏后再发布 |
| 误判类型 | 将行为问题误归为咨询问题会导致未复现即结论,反之则增加无效复现成本 |
| API 限流 | 高频调用 GitHub API 可能触发速率限制,建议搭配 Token 池或缓存策略 |
| 结论过时 | 基于特定代码快照的「当前不支持」结论,可能随版本迭代失效,需定期复核 |
技能正文
name: apollo-issue-review description: Review Apollo ecosystem issues with a classify-first workflow (reproduce for behavior issues, evidence-check for consultative asks) and draft maintainer-grade replies that directly answer user asks, clarify support boundaries, and provide actionable next paths.
Apollo Issue Review
Follow this workflow to review an Apollo issue and produce a concise maintainer response.
Core Principles
- Classify first: behavior/regression issue vs consultative/support question.
- For behavior/regression issues: reproduce first, theorize second.
- For consultative/support questions (for example "is there an official script/doc"): do evidence check first and answer directly; do not force "reproduced/not reproduced" wording.
- Solve the user ask, do not debate whether the user is right or wrong.
- If behavior is already reproduced and conclusion is stable, do not ask for extra info.
- Do not default to "version regression" analysis unless the user explicitly asks for version comparison or it changes the recommendation.
- Match the issue language: English issue -> English reply, Chinese issue -> Chinese reply (unless the user explicitly asks for bilingual output).
- Use canonical Apollo module names from repository reality (AGENTS/module layout/root
pom.xml), and correct misnamed terms succinctly when needed. - If an existing comment already answers the same ask (including bot replies), avoid duplicate long replies; prefer a short addendum that only contributes corrections or missing deltas.
- Never wrap GitHub @mention handles in backticks/code spans; use plain @handle so notifications are actually triggered.
- If a community user volunteers to implement ("认领"/"first contribution"), acknowledge and encourage first, then evaluate the proposal with explicit feasibility boundaries and concrete refinement suggestions.
- For OpenAPI-related asks, explicitly separate Portal web APIs (e.g.,
/users) and OpenAPI endpoints (e.g.,/openapi/v1/*); only claim "OpenAPI supports X" when token-based OpenAPI path is verified. - Before concluding "capability not available", cross-check code + docs/scripts + module/dependency hints from
pom.xmlto avoid false negatives caused by path assumptions.
Input Contract
Collect or derive these fields before review:
repo:<owner>/<repo>issue_number: numeric IDissue_context: title/body/commentspublish_mode:draft-only(default) orpost-after-confirmoutput_mode:human(default) orpipeline
Optional but recommended:
known_labels: existing labels on the issuedesired_outcome: whether user wants only triage or triage + implementation handoff
If issue_number or issue_context is missing, ask one short clarification before continuing.
Workflow
- Collect issue facts and user ask
- Read issue body and comments before concluding.
- Extract: primary ask, symptom, expected behavior, actual behavior, and whether user asks one path or an either-or path.
- Keep user asks explicit (for example "better parsing API OR raw text API": answer both).
- Detect whether the thread includes a contribution-claim ask (for example "can I take this issue?") and treat it as a guidance+boundary response, not only a capability yes/no response.
- Detect main language from issue title/body/recent comments and set reply language before drafting.
- Decide issue type up front:
- behavior/regression (needs reproducibility check)
- consultative/support (needs evidence check)
- Normalize names to canonical module/service terms used by Apollo repo (e.g.,
apollo-portal, not invented service names). - If GitHub API access is unstable, use:
curl -L -s https://api.github.com/repos/<owner>/<repo>/issues/<id>
curl -L -s https://api.github.com/repos/<owner>/<repo>/issues/<id>/comments
- Run the right validation path (mandatory)
- For behavior/regression issues:
- Build a minimal, local, runnable reproduction for the reported behavior.
- Prefer repo-native unit tests or a tiny temporary script over speculation.
- Record exact observed output and types, not just interpretation.
- For consultative/support questions:
- Verify by repository evidence scan (docs/scripts/code paths), not by speculative reproduction framing.
- For API availability asks, verify in three places before concluding:
- actual controller paths, 2) docs/openapi scripts, 3) module/dependency pointers in
pom.xml.
- actual controller paths, 2) docs/openapi scripts, 3) module/dependency pointers in
- Record exact files/paths searched and what exists vs does not exist.
- Example checks:
rg -n "<api_or_path_related_to_issue>" -S
go test ./... -run <target_test_name>
# or a minimal go run script under /tmp for one-off validation
# consultative evidence scan example:
rg --files | rg -i "<keyword1|keyword2>"
rg -n "<keyword>" docs scripts apollo-* -S
- Branch by validation result
- Behavior/regression path:
- If reproducible:
- State clearly that behavior is confirmed.
- Identify whether this is supported behavior, usage mismatch, or current feature gap.
- Then answer user asks directly (existing API/workaround/unsupported).
- If not reproducible:
- Ask for minimal missing evidence only:
- input sample
- exact read/access code
- expected vs actual output
- Keep this short and concrete.
- Ask for minimal missing evidence only:
- If reproducible:
- Consultative/support path:
- If capability/script/doc exists: provide exact path/link and usage entry point.
- If it does not exist: state "currently not available" directly and give one practical alternative.
- If an existing comment already covered the same conclusion: post only a concise delta/correction instead of repeating the full answer.
- Draft maintainer reply (focus on action)
- Start with a one-paragraph summary in the thread language:
- behavior/regression issue: reproduction summary (
复现结论/Reproduction Result) - consultative/support issue: direct conclusion summary (
结论/Conclusion)
- behavior/regression issue: reproduction summary (
- Then include:
当前能力与边界: what is supported today and what is not.可行方案: exact API/command/workaround user can run now.后续路径: either invite PR with concrete files/tests, or state maintainers may plan it later without overpromising timeline.
- If the thread includes a contribution-claim proposal, structure the main body as:
- appreciation and encouragement, 2) feasibility judgment, 3) concrete implementation refinements (what to reuse vs what not to reuse directly).
- If user ask is either-or, answer both explicitly.
- If already confirmed feature gap, do not request more logs/steps by default.
- Keep wording factual and concise.
- Use canonical module names in final wording; if the issue uses a non-canonical name, correct it briefly without derailing the answer.
- If there is already a correct prior comment, prefer "reference + minimal supplement" format.
- If you mention users/bots, keep mentions as plain text (e.g., @dosubot), not code-formatted mention strings.
- Use localized section labels and wording by issue language (for example:
Reproduction Result / Current Support Boundary / Practical Path / Next Stepin English threads).
- Ask for publish confirmation (mandatory gate)
- Default behavior: generate draft only; do not post automatically.
- Present the exact comment body first, then ask for confirmation in the same thread.
- Use a direct question in the same language as the thread, e.g.:
- Chinese:
是否直接发布到 issue #<id>?回复“发布”或“先不发”。 - English:
Post this to issue #<id> now? Reply "post" or "hold".
- Chinese:
- Treat no response or ambiguous response as
not approved.
- Post the response only after explicit confirmation
- Allowed confirmation examples:
发布/帮我发/直接回复上去. - If user intent is unclear, ask one short clarification question before any post command.
- Preferred:
gh api repos/<owner>/<repo>/issues/<id>/comments -f body='<reply>'
- Fallback when
ghtransport is unstable:
TOKEN=$(gh auth token)
curl --http1.1 -sS -X POST \
-H "Authorization: token $TOKEN" \
-H "Accept: application/vnd.github+json" \
-d '{"body":"<reply>"}' \
https://api.github.com/repos/<owner>/<repo>/issues/<id>/comments
- After posting, return the comment URL as evidence.
Output Contract
Default (output_mode=human) output should be human-friendly:
Issue Summary
- issue type + confidence
- validation result (reproduced / not reproduced / evidence result)
Triage Suggestion
- labels to add
- missing information (if any)
- whether it is ready for implementation handoff
Draft Maintainer Reply
- First sentence must match issue type:
- behavior/regression: reproducibility status (
已复现/暂未复现orReproduced/Not yet reproduced) - consultative/support: direct availability conclusion
- behavior/regression: reproducibility status (
- Include at least one concrete API/code path/file reference.
- If unsupported today: include support boundary + practical workaround + next path.
- If reproducible and conclusion is stable: do not request extra data.
- If not reproducible: request only minimal reproducible inputs.
- If prior comment already solved the ask: provide concise delta only.
- Do not present unverified root cause as fact.
- Keep language matched to issue language unless user asks otherwise.
Publish Gate
- If no explicit publish confirmation exists, end with:
- Chinese:
是否直接发布到 issue #<id>?回复“发布”或“先不发”。 - English:
Post this to issue #<id> now? Reply "post" or "hold".
- Chinese:
If output_mode=pipeline, append one machine-readable block after the human output:
handoff:
issue_classification:
type: "功能咨询|问题排查|技术讨论|Bug 反馈|Feature request"
validation_path: "behavior-regression|consultative-support"
confidence: "high|medium|low"
triage_decision:
labels_to_add: []
missing_info_fields: []
ready_for_issue_to_pr: false
ready_reason: ""
implementation_handoff:
goal: ""
acceptance_criteria: []
suggested_modules: []
risk_hints: []
Load References When Needed
- Use
references/diagnostic-playbook.mdfor scenario-specific diagnostics and command snippets. - Use
references/reply-templates.mdfor reusable Chinese maintainer reply skeletons.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。