Use when asked to review code, review a branch, or do a code review. Spawns Breaker (correctness) and API Analyst (compatibility/conventions) sub-agents while the orchestrator reviews architecture, tests, performance, and security.
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "review" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/FluidFramework/main/.claude/skills/review/SKILL.md 2. 保存为 ~/.claude/skills/review/SKILL.md 3. 装好后重载技能,告诉我可以用了
/review # review current branch vs main
/review my-feature-branch # review a specific branch vs main
Spawns dedicated Breaker (correctness) and API Analyst (compatibility/conventions) sub-agents in parallel while the orchestrator performs the Inspector pass (architecture, tests, performance, security). Depth is user-selected.
Optimize for high-confidence, concise findings. Silence is better than speculation.
Target: $ARGUMENTS
Parse $ARGUMENTS:
my-feature-branch) -> diff that branch vs mainBefore doing anything, ask the user:
I can run a code review on your branch. Pick a depth (fastest to slowest):
- Skip — skip the review
- Quick — single-pass by orchestrator, all areas, no sub-agents
- Standard — full swarm: Breaker + API Analyst sub-agents + Inspector
- Deep — Standard + reads full changed files (not just diffs) for deeper analysis
Wait for the user's response. If they say skip, stop here.
<required> Immediately after the user picks a mode, create one task per applicable step using TaskCreate — before doing any other work. Mark each task in_progress when you start it and completed when you finish.Tasks to create by mode:
git fetch origin main && git log origin/main..HEAD --oneline && git diff --stat origin/main...HEAD
If a branch name was provided as argument, replace HEAD with origin/<branch-name> and add it to the fetch:
git fetch origin main <branch-name> && git log origin/main..origin/<branch-name> --oneline && git diff --stat origin/main...origin/<branch-name>
If on main and no branch name was provided, ask the user which branch to review.
Store the commit log, file list from --stat, and total $LINES_CHANGED.
Empty diff gate: Zero changed files -> report "No changes to review" and stop.
Size gate: >10,000 lines changed -> ask user to narrow scope before proceeding.
Exclude non-reviewable files from the file list: type declarations (.d.ts), lockfiles (pnpm-lock.yaml, package-lock.json), images, fonts, binaries, .map files, and generated API report files (*.api.md).
Read per-file diffs in batches (~50 files or ~500 changed lines per batch, whichever is smaller):
git diff origin/main...HEAD -- <file1> <file2> ...
For named branches, use origin/main...origin/<branch>.
After reading diffs, identify files where fuller context is needed — typically where the change touches a function that references shared state, calls other functions in the same file, or has fragmented hunks. Read those files in one batch using the Read tool.
Read every changed file in full (the version on the review branch). Use git show HEAD:<file> or git show origin/<branch>:<file> as appropriate.
If a change threads a new prop, callback, flag, or data field through a shared component or helper, read every changed call site and adjacent wrapper that accepts or forwards it.
…
Use this skill for any Kusto query or telemetry investigation specifically related to Fluid Framework or its partners. Triggers include: writing or running a Kusto query against the Office Fluid database, investigating Fluid Framework telemetry or error rates, querying Office_Fluid_FluidRuntime_* tables, looking up a Fluid session by Session_Id or docId, investigating a Fluid-related error in Loop or Whiteboard telemetry, monitoring an FF bump or partner ring deployment, checking Fluid render reliability or Scriptor errors, or when the user mentions Fluid-specific tables (Office_Fluid_FluidRuntime_*, OwhLoads, HostTracker, Scriptor) or Fluid-specific error types (dataCorruptionError, dataProcessingError, DeltaConnectionFailureToConnect, ICE, ACE). Do NOT trigger for general Kusto questions that are not related to Fluid Framework.
IMMEDIATELY USE THIS SKILL when creating or develop anything and before writing code or implementation plans - refines rough ideas into fully-formed designs through structured Socratic questioning, alternative exploration, and incremental validation
Use when implementing user interfaces or user experiences - guides through exploration of design variations, frontend setup, iteration, and proper integration
Use this skill when faced with a difficult debugging task where you need to replicate some bug or behavior in order to see what is going wrong.
Use when you need to create a new custom skill for a profile - guides through gathering requirements, creating directory structure, writing SKILL.md, and optionally adding bundled scripts
Generate the OCE shift status dashboard. Triggers on: 'generate shift dashboard', 'show dashboard', 'shift status', 'status dashboard', 'what's going on', or any request for a NON-SPECIFIC overview of current OCE status (incidents, pipelines, errors).