一键导入
review
Code review of current PR/commit changes against project coding standards. Use when the user asks for a code review or mentions reviewing changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Code review of current PR/commit changes against project coding standards. Use when the user asks for a code review or mentions reviewing changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Reproduce a research paper / white paper / arXiv result as a Tangle pipeline. Use when the user asks to "reproduce", "replicate", or "implement" a paper, benchmark, or arXiv link as an experiment.
Drive the open-source Tangle CLI (`tangle-cli`) via Bash for local pipeline/component workflows and API-backed run submission, status, logs, and artifacts. Use whenever an agent needs to validate, hydrate, submit, inspect, or debug Tangle pipelines and runs from the command line.
Answer Tangle product, docs, and how-to questions from a local RAG over the TangleML documentation. Use for conceptual / "what is" / "how do I" lookups, not live run or execution data.
TanStack Router patterns for routing, navigation, search params, and layouts. Use when creating routes, navigating, or working with URL state.
Comprehensive Reveal.js reference for building HTML slide decks. Use whenever the user wants to create, revise, or extend a presentation, slide deck, or talk — especially from Markdown — including transitions, Auto-Animate, Mermaid diagrams, animatable SVG, video, backgrounds, fragments, code highlighting, speaker notes, math, themes, configuration, and PDF export.
Gather, vet, and cite sources for a research question. Use when answering factual questions, comparing options, or producing an evidence-backed write-up.
| name | review |
| description | Code review of current PR/commit changes against project coding standards. Use when the user asks for a code review or mentions reviewing changes. |
| disable-model-invocation | true |
| allowed-tools | Bash(git *), Bash(gt *), Bash(gh *), Read, Grep, Glob, Agent |
| argument-hint | ["PR number"] |
Review code changes against project coding standards. This team uses Graphite for stacked PRs — each commit is a PR in a stack.
Check if the user provided a PR number as an argument.
If a PR number was provided (e.g., /review 1234):
gh pr view <number> --json number,title,url,headRefOid --jq '{number, title, url, head_sha: .headRefOid}'
gh pr diff <number>
If no argument was provided, try the current branch:
gh pr view --json number,title,url,headRefOid --jq '{number, title, url, head_sha: .headRefOid}'
gh pr diff
If no PR exists for the current branch, fall back to local commit review:
git show HEAD as the diff source (existing behavior)Store the PR number and head commit SHA for comment posting later.
gh pr diff <number> for the diffgit show HEAD --stat then git show HEAD for the diff. Do NOT use git diff main...HEAD as this shows all commits in the stack.Review changed code for violations, prioritizing:
as) - suggest type guards insteadBlockStack, InlineStack, Text, Icon)Present findings in this format:
## Issues Found
### 1. **[Issue Title]** - [File:Line]
[Code snippet showing the problem]
**Why**: [Brief explanation]
**Fix**: [Suggested solution]
---
## What's Good
- [Positive observations about the code]
- Note if file was added to `react-compiler.config.js` (React Compiler enabled)
---
## Summary Table
| Issue | Severity | Location |
| ----- | --------------- | --------- |
| ... | High/Medium/Low | file:line |
Skip this step entirely if in fallback mode (no PR).
After presenting the review, use AskUserQuestion with multi-select to let the user pick which findings to post as inline PR comments.
Each option should show:
Example options:
[High] src/utils/api.ts:42 — "Unsafe type cast" → suggest type guard instead of as[Medium] src/components/List.tsx:15 — "Missing UI primitive" → use BlockStack instead of divThe user picks which comments to post. Only proceed with the selected ones.
If the user selects none or there are no findings, skip to the end.
Skip this step entirely if in fallback mode (no PR).
Determine the repo owner/name:
gh repo view --json nameWithOwner --jq '.nameWithOwner'
For each selected finding, post an inline review comment. Every comment must be prefixed with the AI disclaimer:
> 🤖 This is an AI-generated code review comment.
<rest of the comment body>
Post using:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments \
-f body="<comment>" \
-f path="<file>" \
-F line=<line> \
-f commit_id="<head_sha>"
After posting, show a summary:
| # | File | Issue | Posted |
|---|---|---|---|
| 1 | src/utils/api.ts:42 | Unsafe type cast | Yes |
| 2 | src/components/List.tsx:15 | Missing UI primitive | Yes |