microsoft/hve-core/code-review
Claude Code and agent skill by microsoft/hve-core
- vendor
Checking that the SKILL.md file is still in the repository.
Prioritize functional code review for a PR, branch comparison, commit, local changes, or selected code using one immutable snapshot, parallel general-purpose tasks, vector-tagged findings, strictly opt-in non-functional vectors, and an optional Code Review canvas.
Install
npx vskill@latest install microsoft/hve-core/code-reviewSKILL.md
The same SKILL.md was published earlier as microsoft/hve-core/code-review.
Code Review
Goal
Ensure changed code meets the contribution bar of the codebase through a rigorous functional review first, backed by one immutable snapshot, verified vector-tagged findings, and a human-editable review.md.
Prioritize functional quality in chat, persisted review records, and the Code Review canvas:
- Conformance with codebase requirements, conventions, coding standards, and acceptance criteria.
- Unintended behaviors, broken invariants, and side effects that cause bugs or regressions.
- Cleaned-up and refactored control paths rather than tangled compensating branches.
- Existing codebase APIs, platform built-ins, or SDK methods that should have been used instead of custom logic.
- Existing abstractions, interfaces, or shared helpers that should have been reused or extended.
- Unneeded or leftover defensive checks and excessive edge-case branches from earlier iterations that clutter internal paths without protecting a real trust boundary.
Strict functional vs. non-functional boundary
Run only functional review by default. Separate functional review from non-functional review at every stage so context stays focused on code quality and behavioral correctness:
- Default runs (
functionalorstandardprofile) execute only thefunctionalvector (functionalperspective, plusstandardswhen repository instructions or language skills apply, andreadinesswhen PR packaging or changed documentation is in scope). - Non-functional vectors (
security,rai,sssc,performance,privacy,accessibility) and external requirement/plan comparisons (aligning work with PRDs, BRDs, ADRs, or Security Plan Drift) are strictly opt-in. - Enforce zero non-functional preload across both the orchestrating main agent and every subagent task. Never read references/security.md, references/specialist.md, references/accessibility.md, or references/integrations.md, search the workspace for PRDs, BRDs, ADRs, or security plans, or activate
security-planning,privacy-by-design,supply-chain-security,rai-standards,performance-slo-planner,accessibility, orrpi-reviewunless the user explicitly requests that non-functional review (in chat, via slash arguments, or via the Code Review canvas buttons). - Non-functional reviews can be requested for specific areas (for example,
securityon an authentication area andssscplusraion a dependency or prompt area) or across the whole review. Do not run or preload non-functional skills on areas where they were not requested.
Vectors, perspectives, and on-demand references
Read references/review-contract.md for snapshot, state, result, vector, and CLI rules. Read only the reference files needed for the active phase and explicitly selected perspectives:
| Phase or perspective | Vector pill | Default status | Reference (read only when active) | Focus | |
|---|---|---|---|---|---|
context | n/a (phase) | Optional helper | references/context.md | Group files into areas, propose reasons and changeMap, or explain symbols and call paths | |
functional | functional | Runs by default | references/functional.md | Contribution bar, bugs and side effects, refactored paths, missed APIs/SDKs, missed abstractions, unneeded branches | |
standards | functional | Functional suite | references/standards.md | Applicable repository instructions and language/domain skills with cited provenance | |
readiness | functional | Functional suite | references/readiness.md | PR metadata, checklist and test evidence, and changed documentation accuracy | |
investigation | n/a (phase) | On evidence gap | references/investigation.md | Bounded walkback to resolve a specific call-path or contract question | |
security | security | Explicit opt-in | references/security.md | Reachable trust-boundary weaknesses, auth, secrets, injection, and requested Security Plan Drift | |
rai | rai | Explicit opt-in | references/specialist.md | Model calls, prompts, human oversight, disclosure, and misuse paths (rai-standards) | |
sssc | sssc | Explicit opt-in | references/specialist.md | Dependencies, lockfiles, SHA pinning, workflow permissions, checksums, and provenance (supply-chain-security) | |
performance | performance | Explicit opt-in | references/specialist.md | Complexity growth, blocking I/O, memory retention, and stated SLO budgets (performance-slo-planner) | |
privacy | privacy | Explicit opt-in | references/specialist.md | Personal data collection, logging, storage, minimization, retention, and deletion (privacy-by-design) | |
accessibility | accessibility | Explicit opt-in | references/accessibility.md | Interaction, keyboard, focus, semantics, and WCAG/ARIA barriers (accessibility) | |
| Alignment / Drift | Owning vector | Explicit opt-in | references/integrations.md | Explicit BRD/PRD/ADR business alignment or Security Plan Drift correlation | |
| Delivery | n/a (phase) | On publish/close | references/delivery.md | Human review sign-off, freshness rechecks, and interactive PR staging or posting |
Every finding and discussion comment carries a vector pill (functional, security, rai, sssc, performance, privacy, or accessibility when requested) alongside severity.
Phases and workflow
Activate disclaimer-language unless already preloaded and show the canonical Code-Review notice according to its cadence. Resolve this skill's installation directory before running node scripts/review.mjs.
- Resolve target and capture snapshot:
- Identify the explicit target before capturing: PR/MR identity and base/head revisions, named branch comparison, staged/unstaged/combined local mode, commit, or selected code. Reuse an existing review only when repository and target match. Ask when ambiguous; never guess a base branch, fetch, check out branches, or mix dirty local edits into a PR snapshot.
- For PRs, read immutable target identity, description, required checks, template checkboxes, linked issues, and paginated inline and timeline comments through available provider tools. Tag imported discussion comments with an optional
vector(functional,security,rai,sssc,performance,privacy) when clear. Record partial or unavailable reads explicitly. - Run
node scripts/review.mjs capture --repo <abs-repo-path>with the capture payload. Open the Code Review canvas (hve-core-code-review) when available.
- Map areas, reasons, and schedule functional work:
- Group every captured file into coherent areas (including lockfiles, config, renames, deletions, and omitted files) and record intent, before/after behavior, and entry points.
- Record 3 to 7
reasons(R1toR9) as your own reading of why the change exists, plus achangeMapwhen the change spans more than two parts or alters how parts connect. - Select depth (
standardby default,basicorcomprehensivewhen requested or justified by concrete evidence) and mode (sweepby default,guidedwhen requested). - Schedule
functional(plusstandardswhen repository instructions or language skills match changed files, andreadinesswhen PR deliverables or docs are in scope) vianode scripts/review.mjs schedule. Schedule non-functional perspectives only if explicitly requested by the user, passingareaIdswhen scoped to specific areas. Record activereviewersvianode scripts/review.mjs context. - Give acceptance-criteria coverage one owner (
functionalfor behavior,readinessfor deliverable-only criteria).
- Execute vector and phase reviews:
- For small or tightly coupled changes that fit a single direct read, perform the active perspectives inline in the main agent and write validated result files (
node scripts/review.mjs result). - For multi-area, multi-perspective, or context-heavy changes, orchestrate parallel
general-purposesubagent tasks as defined below (or coordinate dedicated Project sessions when operating under a Project coordinator).
- Verify findings, run walkbacks, and synthesize:
- Merge each completed work item (
node scripts/review.mjs merge), then verify every proposed finding in the main agent against captured anchors, caller/callee contracts, and counter-evidence. - Dispatch bounded
investigationtasks (references/investigation.md) when a specific call path or contract gap needs isolated tracing. - If the user explicitly requested BRD/PRD/ADR alignment or Security Plan Drift, apply references/integrations.md.
- Deduplicate identical or overlapping defects and record
accepted,disputed,deferred, orrejecteddispositions with reasons vianode scripts/review.mjs decide. The main agent owns all dispositions and the final outcome.
- Render report and handle feedback/delivery:
- Render
review.mdwithnode scripts/review.mjs render, preserving human edits, the canonical disclaimer, and unchecked human-review/posting checkboxes. - Check canvas feedback (
take_feedback) at dispatch/completion boundaries and before closeout. For interactive staging or PR submission, read references/delivery.md.
Orchestrating parallel general-purpose subagents (tasks)
Do not look for or dispatch custom named code-review-* subagents. Orchestrate parallel tasks using the standard general-purpose agent (agent_type: "general-purpose").
Scaling tasks across vectors, phases, and areas
The orchestrating main agent decides how many parallel general-purpose tasks to run based on diff structure and active vectors:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 2 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/coding-standards/code-review/SKILL.md
Popularity
- Repository stars
- 1,492
- Repository forks
- 318
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/hve-core/code-review)