babylonjs/babylon.js/code-review
Claude Code and agent skill by babylonjs/babylon.js
- community
Checking that the SKILL.md file is still in the repository.
Thorough code review of branch changes. Supports automatic/interactive fixing, instruction-based, agnostic, or combined review lenses. Use when: review my code, review this branch, do a code review, review branch changes, check my changes. Input: [--base <branch>] [--mode automatic|interactive] [--lens instructions|agnostic|both]
Install
npx vskill@latest install babylonjs/babylon.js/code-reviewSKILL.md
The same SKILL.md was published earlier as babylonjs/babylon.js/code-review.
Code Review
You are performing a thorough code review of all changes on the current branch relative to the base branch.
A review has two jobs, in this order:
- Does the code actually solve the problem it is supposed to solve? Passing automated checks (compiles, lints, existing tests pass) does not answer this question — those only confirm the code is internally consistent. You must separately verify that the implementation matches its stated intent.
- Does the code solve the problem the right way for the selected review lens? The instructions lens applies this repository's conventions (coding style, prohibited APIs, performance rules, documentation standards, test patterns, backward-compatibility rules). The agnostic lens applies general engineering review judgment without using repo instruction files as the rubric. In all lenses, the repo's quality tools (
lint:check,format:check,test:unit) must pass.
Find every issue. Do not accept code just because it is already written, and do not accept your own first impressions — walk concrete inputs through the code and compare outputs against the stated intent.
Input
Parse $ARGUMENTS:
| Argument | Description | |
|---|---|---|
--base <branch> | Base branch to review against. If omitted, use master unless the user clearly specified another base in plain language. | |
--mode automatic | Find all issues, fix Critical/Warning issues automatically, then present the summary table. This is the default. | |
--mode interactive | Find all issues, present them to the user first, wait for the user to confirm which to fix, then fix the approved issues and present the summary table. | |
--lens instructions | Review using Babylon.js repo instructions and matching instruction files. | |
--lens agnostic | Review without using repo instruction files as the rubric. Use general engineering review judgment, correctness, maintainability, security, and test coverage expectations. | |
--lens both | Run both the agnostic and instructions lenses independently, then combine and deduplicate findings. This is the default. |
If the user says "interactive", "review first", "show me the issues first", or similar, use --mode interactive. Otherwise, default to --mode automatic.
If the user says "instructions", "repo instructions only", or similar, use --lens instructions. If they say "agnostic", "without instructions", "general review", or similar, use --lens agnostic. Otherwise, default to --lens both.
Use the term lens in user-facing text rather than "passes". A lens is the review rubric; both means two independent review passes.
Review Lenses
Instructions Lens
Review using all applicable Babylon.js guidance:
.github/copilot-instructions.md.- Matching files under
.github/instructions/*.instructions.md. - Product architecture docs and feature specs when relevant to the changed files.
- Existing local patterns and quality commands.
This lens should catch correctness issues plus repo-specific issues such as public API compatibility, side-effect imports, prohibited APIs, performance rules, doc comment requirements, and test conventions.
Agnostic Lens
Review as an external senior engineer who has the diff, surrounding code, commit intent, and normal engineering judgment, but is not applying Babylon.js instruction files as a checklist.
For this lens:
- Do not read additional
.github/instructions/*.instructions.mdfiles just to apply repo rules. - If repo instructions are already loaded in context, deliberately bracket them out as review criteria.
- Still apply universal review concerns: correctness, edge cases, API clarity, security, maintainability, dead code, tests, and user-visible behavior.
- Still respect system/developer instructions, user constraints, and workspace safety rules. "Agnostic" is a review lens, not permission to ignore higher-priority instructions.
Both Lenses
Run the agnostic lens and instructions lens independently, then merge findings:
- Keep each finding's source lens in the issue table as
Agnostic,Instructions,Both, orQuality Tools. - If both lenses find the same root issue, deduplicate it and mark the lens as
Both. - If the lenses disagree, resolve the disagreement explicitly in the review notes and prefer the finding that is better evidenced by the code.
Severity Categories
Every issue you flag must be assigned one of these severities.
| Severity | Meaning | |
|---|---|---|
| Critical | Bugs, runtime crashes, data loss, broken public API contracts, missing side-effect imports that will cause undefined at runtime. Must be fixed. | |
| Warning | Backward compatibility concerns, missing doc comments on public APIs, performance anti-patterns (render-loop allocations, unnecessary notifyObservers), missing tests for new APIs, use of deprecated or prohibited APIs. Should be fixed. | |
| Nit | Style, naming, minor readability improvements, non-essential suggestions. Fix if convenient. |
Workflow
Step 1: Resolve the review plan
Before reading the diff, resolve and remember:
<base-branch>from--baseor the defaultmaster.<mode>asautomaticorinteractive.<selected-lenses>from--lens, defaulting to[agnostic, instructions](--lens both).
If an argument is invalid, stop and ask the user to choose a valid value. Do not silently reinterpret misspelled options. Use ask_user for interactive choices when the tool is available.
Step 2: Gather the diff
Run the following git commands to collect all changes (committed, uncommitted, and untracked) relative to the base branch:
Combine the results into a deduplicated list of changed files. If there are no changes, inform the user and stop.
Step 3: Read the changed files and the diff
- Read the full content of each changed file (not just the diff) to understand the surrounding context.
- For deleted files, use
git show <base-branch>:<path>to read the base version and review the deletion via the diff only. - For renamed files, review both the old and new paths — read the new file from disk and the old file via
git show <base-branch>:<old-path>. - Also get the actual diff hunks (
git diff <base-branch>...HEADandgit diff) to know exactly what changed.
Files to exclude from review (note them in the summary but do not apply the checklist to them):
- Lockfiles:
package-lock.json,yarn.lock,pnpm-lock.yaml. - Generated files and build output: anything under
dist/,build/,coverage/,*.d.ts.map,*.js.map, auto-generated declaration files, minified bundles. - Vendored dependencies: anything under
vendor/,third_party/,node_modules/. - Test snapshots and binary assets:
__snapshots__/,*.snap, reference images (*.png,*.jpg), fonts, models. - Pure whitespace / formatting-only changes (flag as a Nit but don't trace them line by line).
If an excluded file contains meaningful hand-written changes (e.g. a hand-edited snapshot, or an intentional change to a lockfile beyond a version bump), note it and review it normally.
Step 4: Semantic pass — does the code solve the problem?
Do this pass before the mechanical checklist. This is where most real bugs are caught; skipping it is the most common way a review misses a bug.
Run this semantic pass for each selected lens. The tracing method is the same for both lenses; the difference is only the rubric used when deciding whether a finding is a repo-specific issue or a general engineering issue.
For the branch as a whole, and then for each non-trivial new or changed function, work through the following steps. Record the output in your response (not just in internal reasoning): for each function, produce a short bullet block containing the stated intent, the enumerated inputs, any input-to-output mismatches, and any missing test coverage. This record is what you'll draw from when compiling the issue table in Step 7.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/code-review/SKILL.md
Popularity
- Repository stars
- 26,118
- Repository forks
- 3,697
- 7-day trend score
- 51
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/babylonjs/babylon.js/code-review)