Coding galaxy gen cosmology

From coilyco-flight-deck/galaxy-gen · View interactive version

Coding galaxy gen cosmology is an AI agent skill from the GitHub repository coilyco-flight-deck/galaxy-gen. Cosmology and relativity for the procedural galaxy sim. Universe-scale physics - Hubble flow, FLRW, redshift, dark sector, gravitational physics, CMB. Sister to the galaxy-scale skill. Triggers - cosmology, FLRW, Hubble's law, redshift, dark energy, dark matter, CMB, cosmic web, gravitational lensin

How to use this skill

Skill file

Cosmology for galaxy-gen

Repo: galaxy-gen. Stack: Rust to WASM in the browser. Sister skill: CODE0 covers galaxy-scale physics.

This skill covers physics that only matters when the sim's scene is bigger than one galaxy, or when the visual needs to be redshift-aware. A single isolated-galaxy sim can largely ignore this. A cosmic-web or "zoom out" sim cannot.

Scope decision: how big is the scene

This question gates everything in this skill. Pick a scope before designing the data model.

Hubble's law and the expansion

The relationship between distance and velocity that makes the universe expand.

FLRW geometry

The standard cosmological metric. Only needed at cosmological scope.

Dark matter

Already covered as a halo profile in the galaxy-scale skill. The cosmology angle:

Dark energy

The thing accelerating the expansion. Visually it does not show up directly but it controls the timeline.

Gravitational physics for visuals

Cosmic microwave background

Redshift-dependent visuals

If the sim renders galaxies at varying z, get these right or the visual lies.

Special relativity

Mostly does not matter unless the sim has fast-moving objects.

Common cosmology pitfalls

Numerical hooks for Rust/WASM

Concept reference

Verbatim Wikipedia lead paragraphs (CC BY-SA 4.0) for every concept above live in CODE0. Reach there when a term needs a precise definition.

Sources

Synthesized from public-license skill content. Originals carry derivations and worked examples if needed:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.