# Melonjs Math (agent skill)

> Melonjs Math is an agent skill (a SKILL.md file) from melonjs/melonJS. It is used for vector and matrix maths in melonJS — Vector2d, Vector3d, their observable variants, Matrix2d, Matrix3d, and the math utility functions. It works with Claude Code and has 6,419 GitHub stars across a repository of 4 listed skills.

Use this skill for vector and matrix maths in melonJS — Vector2d, Vector3d, their observable variants, Matrix2d, Matrix3d, and the math utility functions. Covers which methods mutate and which allocate, the vector pool and when clone() is the wrong tool, interpolation with lerp, slerp, damp and moveTowards, and the argument defaults that silently drop a component.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/melonjs/melonJS |
| Skill path | packages/melonjs/skills/melonjs-math/SKILL.md |
| Skill name | melonjs-math |
| GitHub stars | 6,419 |
| Installs on skills.sh | not listed |
| License | MIT |
| Skills in repo | 4 |
| Plugin marketplace | melonjs |
| Official | yes |
| Works with | Claude Code |
| Category | Design & frontend |
| Last commit | Oct 26, 2026 |

## When it triggers

- Use this skill for vector and matrix maths in melonJS — Vector2d, Vector3d, their observable variants, Matrix2d, Matrix3d, and the math utility functions.
- Triggers on: Vector2d, Vector3d, ObservableVector2d, ObservableVector3d, Matrix2d, Matrix3d, vector, vector maths, dot, cross, normalize, length, distance, angle, lerp, slerp, damp, moveTowards, project, clamp, degToRad, radToDeg, clone, ve

## Add this skill

### Claude Code

```sh
/plugin marketplace add melonjs/melonJS
/plugin install melonjs@melonjs
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/melonjs/melonJS.git
cp -r melonJS/packages/melonjs/skills/melonjs-math .agents/skills/melonjs-math   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/melonjs/melonJS.git
cp -r melonJS/packages/melonjs/skills/melonjs-math .cursor/skills/melonjs-math   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/melonjs-math
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
