用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill android-tools-reviewer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | android-tools-reviewer |
| description | >- Use when this capability is needed. |
Review PRs against guidelines distilled from past reviews by senior maintainers.
Be polite but skeptical. Prioritize bugs, performance regressions, safety issues, and pattern violations over style nitpicks. 3 important comments > 15 nitpicks.
Flag severity clearly in every comment:
If triggered from an agentic workflow (slash command on a PR), use the PR from the event context. Otherwise, extract owner, repo, pr_number from a URL or reference provided by the user.
Formats: https://github.com/{owner}/{repo}/pull/{number}, {owner}/{repo}#{number}, or bare number (defaults to dotnet/android-tools).
gh pr diff {number} --repo {owner}/{repo}
gh pr view {number} --repo {owner}/{repo} --json files
For each changed file, read the full source file (not just the diff) to understand surrounding invariants, call patterns, and data flow. If the change modifies a public/internal API or utility, search for callers. Check whether sibling types need the same fix.
Prefer existing repo patterns. Before suggesting new infrastructure, grep for established patterns (ArrayPool, ObjectPool, MemoryStreamPool, ProcessUtils) and follow those.
Form an independent assessment of what the change does and what problems it has before reading the PR description.
gh pr view {number} --repo {owner}/{repo} --json title,body
Now read the PR description and linked issues. Treat them as claims to verify, not facts to accept. Where your independent reading disagrees with the PR description, investigate further. If the PR claims a performance improvement, require evidence. If it claims a bug fix, verify the bug exists and the fix addresses root cause — not symptoms.
gh pr checks {number} --repo {owner}/{repo}
Review the CI results. Never post ✅ LGTM if any required CI check is failing or if the code doesn't build. If CI is failing:
Based on the changed files from step 2, load the appropriate rule files from references/:
Always load:
references/repo-conventions.md — repo-specific patterns and conventionsreferences/ai-pitfalls.md — common AI code generation mistakesreferences/security-rules.md — security review checklistConditionally load:
references/csharp-rules.md — if any .cs files changedreferences/msbuild-rules.md — if any .targets, .props, or .projitems files changed, or if changed .cs files are under src/Microsoft.Android.Build.BaseTasks/references/testing-rules.md — if any files under tests/ changed or files with Test in the path changedFor each changed file, check against the review rules. Record issues as:
{ "path": "src/Example.cs", "line": 42, "side": "RIGHT", "body": "..." }
Constraints:
line = line number in the NEW file (right side). Double-check against the diff.Post your findings directly:
If no issues found and CI is green, submit with one or two 💡 suggestions on key implementation lines and a positive summary. Always post at least one inline comment — the review submission framework requires it.
Copilot-authored PRs: If the PR author is Copilot (the GitHub Copilot coding agent) and the verdict is ⚠️ Needs Changes or ❌ Reject, prefix the review summary with @copilot so the comment automatically triggers Copilot to address the feedback. Do NOT add the prefix for ✅ LGTM verdicts.
🤖 {severity} **{Category}** — {What's wrong and what to do instead.}
_{Rule: Brief name (Postmortem `#N`)}_
Where {severity} is ❌, ⚠️, or 💡. Always wrap #N in backticks so GitHub doesn't auto-link to issues.
Categories: Target framework · Async pattern · Resource management · Error handling · Security · Code organization · Naming · Performance · Pattern · YAGNI · API design · Code duplication · Testing · Documentation
Source: dotnet/android-tools — distributed by TomeVault.
基于 SOC 职业分类