mirage-module SKILL.md skillA

mirage-module from paraldameta/mirage-engine is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add paraldameta/mirage-engine/mirage-module@git:20261104.ba0858e

Pins git:20261104.ba0858e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
paraldameta/mirage-engine
Path
agent/mirage-module/SKILL.md
Versions recorded
2
Latest version
git:20261104.ba0858e, committed Nov 4, 2026
First version recorded
Oct 25, 2026
Size
7,564 bytes
Repository stars
16
License
MIT

Write or fix one Mirage world module (modules/<name>.js) that follows the world protocol - positions only from the site plan, seeded randomness, anchors offered and consumed, NOTES.md requests, walk-grid collision and collider proxies, materials through patch() hooks or the texture layer, triangle and draw-call budgets, and a self-test. Use when asked to "build the pier / walls / terrain / trees module", "add X to the world", when a sub-agent is given one module of a Mirage world, or when a…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# One module

You own `modules/<name>.js`, `scenarios/<name>.json` and the `## <name>` section of `NOTES.md`. Nothing else.
Before writing: read `BRIEF.md` (your module brief), `plan.js`, `NOTES.md` (all of it), and
`$MIRAGE/docs/world-protocol.md`. Start from `references/module-template.js` (next to this file).

## Shape

```js
export default {
  name: 'pier',
  build(ctx) { /* geometry into ctx.root; return anything (others see it as ctx.modules.pier) */ },
  anchors: (ctx, built) => ({ lamps: [{ pos: [x, y, z], rotY }] }),      // optional: what you offer
  finalize(ctx) { /* optional: runs after every build; ctx.anchors has everyone's anchors */ },
  ambientVolumes: (ctx) => [{ min, max, factor: 0.35 }],                  // optional: interiors
};
```

`ctx`: `THREE, plan, R` (your seeded random stream), `rng(sub)`, `geom`, `mat`, `root`, `anchors`, `modules`,
`shared` (what main.js passes, e.g. `tex`; `materials(ctx)` caches `mats` there), `onUpdate(fn(t))`, `collider(mesh)`, `world` (`world.G` uniforms,
`world.camera`), `log`.

## Rules (each one has broken a world before)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add paraldameta/mirage-engine/mirage-module@sha256:8427e66718a3d320

The line at the top of this page pins the label git:20261104.ba0858e, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_j7y3mpigarwu7sca.svg)](https://markdownregistry.com/a/art_j7y3mpigarwu7sca)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Oct 25, 2026 and Nov 4, 2026, about one every 9 days.

versioncommittedcommitsizeaudit
git:20261104.ba0858e latest2026-11-04 ba0858e 7,564 BA view · diff
git:20261025.cd364202026-10-25 cd36420 7,432 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7564 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

paraldameta/mirage-engine · 16 stars · license MIT · pushed 2026-11-09 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_j7y3mpigarwu7sca
GET https://markdownregistry.com/api/v1/resolve?ref=paraldameta/mirage-engine/mirage-module
GET https://markdownregistry.com/api/v1/blob/8427e66718a3d320e03bc0c43d3374d97c9d90d6c457f558a785e7602b1c1d80

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from paraldameta/mirage-engine

mirage-brief-to-plan SKILL.md skill
paraldameta/mirage-engine · agent/mirage-brief-to-plan/SKILL.md · Turn a one-paragraph idea into a Mirage world's direction before any building ("先定方向再建设") - a brief (idea, mood…
git:20261025.cd36420 · audit A · 16 stars
mirage-game SKILL.md skill
paraldameta/mirage-engine · agent/mirage-game/SKILL.md · Make a Mirage world playable as a small game with @mirage/game - interactables (pick up, use, open, light), inventory…
git:20261108.e7f6fbe · audit A · 16 stars
mirage-parallel-build SKILL.md skill
paraldameta/mirage-engine · agent/mirage-parallel-build/SKILL.md · Lead several agents building one Mirage world at the same time, one module each - the coordination contract (site plan…
git:20261025.cd36420 · audit A · 16 stars
mirage-playtest SKILL.md skill
paraldameta/mirage-engine · agent/mirage-playtest/SKILL.md · The agent self-test loop for a Mirage world - build, run it in the real Chrome, drive it with a scripted JSON scenario…
git:20261025.cd36420 · audit A · 16 stars
mirage-router SKILL.md skill
paraldameta/mirage-engine · agent/mirage-router/SKILL.md · Entry point for building 3D web worlds with the Mirage engine (code-only three.js worlds for AI agents). Use when the…
git:20261025.cd36420 · audit A · 16 stars
mirage-ship SKILL.md skill
paraldameta/mirage-engine · agent/mirage-ship/SKILL.md · Package and prepare a Mirage world for release - one standalone HTML file that opens from disk, size budgets, a static…
git:20261025.cd36420 · audit A · 16 stars

Every file in paraldameta/mirage-engine

Browse by kind, by grade A, or by owner.