Skip to main content
ClaudeWave
Skill3.4k repo starsupdated 7d ago

babylon-help

babylon-help is a Claude Code skill for resolving Babylon.js technical questions by consulting the project's installed npm packages (version-locked via package.json and package-lock.json), local node_modules source code, and official Babylon/Vite documentation. Use it when you need exact import paths, API signatures, loader behavior, rendering setup, Vite/HMR integration details, WebGL runtime constraints, or browser capture troubleshooting tied to your specific project version.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/htdt/godogen /tmp/babylon-help && cp -r /tmp/babylon-help/babylon/skills/babylon-help ~/.claude/skills/babylon-help
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Babylon Help

Use this skill for Babylon.js API questions, exact import paths, loader behavior, rendering setup, Vite/HMR integration, WebGL/browser runtime questions, and browser capture problems.

Single-version policy:

- Resolve the target version from the project's `package.json` and `package-lock.json`.
- Use the installed npm package for the current project version as the primary local reference.
- Do not blend examples from older Babylon versions unless the caller explicitly asks for migration help.

Primary local sources after `npm install`:

```text
node_modules/@babylonjs/core/
node_modules/@babylonjs/loaders/
node_modules/vite/
```

Lookup order:

1. Project `package.json` and lockfile for exact versions.
2. Installed `node_modules/@babylonjs/core` and `node_modules/@babylonjs/loaders` source/types.
3. Installed `node_modules/vite` docs/types for Vite-specific behavior.
4. Official Babylon documentation at `https://doc.babylonjs.com/`.
5. Official npm package pages for package metadata.
6. Official Vite docs for HMR/server behavior.

If `node_modules/` is missing in a scaffolded project, run `npm install` before lookup. If the project is not scaffolded yet, use official docs and say which package version you are targeting.

Useful searches:

```bash
rg "class ArcRotateCamera" node_modules/@babylonjs/core
rg "ImportMeshAsync" node_modules/@babylonjs/core node_modules/@babylonjs/loaders
rg "handleHotUpdate" node_modules/vite
```

When answering:

- Start with the concrete recommendation.
- Name the files or official pages checked.
- Separate documented facts from inference.
- Give import paths that match the installed package.
- Mention browser/GPU constraints when they affect the answer.

Mandatory action after every successful lookup:

- Append one short entry to `./.babylon-help.log`.
- Record only:
  - `requested`: what the caller asked for
  - `comment`: short resolution note
  - `result_files`: concrete local files or official URLs used

Keep the log compact. Do not paste full docs or large code blocks into it.