From cosmos-pro
Bank of runnable annotated cosmos.gl + Mosaic recipes for archetypal design questions. Each recipe encodes a tested configuration with tuning notes, failure modes, and explicit "when to use" / "when NOT to use" sections. Trigger on: "cosmos.gl recipe", "force graph example", "pinned positions", "cluster centers", "histogram + graph", "drag to reshape", "rectangle selection", "fit view", "loading state", "fallback to 2D", "GPU heatmap overlay", "hover detail panel", or any request for a working cosmos.gl configuration for a known design pattern.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cosmos-pro:cosmos-recipesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill is the bank of working configurations. Each recipe in
This skill is the bank of working configurations. Each recipe in
recipes/<name>.md encodes one archetypal design question, gives the
minimal working code, lists the tuning knobs and failure modes, and ends
with explicit "When to use this" and "When NOT to use this" sections.
If you are about to write a cosmos.gl scene from scratch, stop. Check whether a recipe already covers the case. Reinventing duplicates work, fragments style, and creates new bugs.
Every recipe follows this shape, enforced by /cosmos-critic:
# <recipe name>
One-paragraph description of the use case and why cosmos.gl is right for it.
## Minimal working code
[init + data + config, ~30-80 lines]
## Tuning notes
- Which config keys to adjust for which visual outcome.
- Failure modes at the extremes (too high, too low).
- Common variations.
## When to use this
[explicit list of design questions this recipe answers]
## When NOT to use this
[explicit list of cases where another recipe fits better, or where the
problem is not a knowledge-graph answer at all]
Recipes without "When to use" / "When NOT to use" are rejected by the critic. The two sections are what makes the recipe library useful — they let Claude pick correctly without re-evaluating every option.
| Recipe | Question it answers |
|---|---|
basic-force-graph.md | "How do I render this graph at all?" |
pinned-layer-positions.md | "I have SBERT/KGE positions; how do I show them?" |
clustering-force.md | "Show clusters but keep the simulation alive." |
mixed-position-weight-edges.md | "Three pickers compose freely — how?" |
dynamic-filtering.md | "Filter changed; update color/size without rebuilding." |
histogram-timeline-brush.md | "vgplot brushes filter the graph." |
gpu-heatmap-overlay.md | "Density heatmap behind the graph." |
hover-detail-panel.md | "Hover a node, fetch domain object, show detail." |
drag-to-reshape.md | "Let the user nudge clusters; capture as a layer." |
selection-rectangle.md | "Box-select a subgraph; expand neighborhood." |
focus-and-fit.md | "SceneDirective focused some nodes; ease the camera." |
empty-state-and-loading.md | "DuckDB is booting; query is in flight; result is empty." |
degraded-fallback-2d.md | "WebGL unavailable or device weak; switch to Sigma 2D." |
references/question-to-layers.md.| Question | Position layer | Weight layer | Edge layer |
|---|---|---|---|
| Relevance | Default force | Personalized PageRank | Structural edges |
| Similarity clusters | SBERT | Leiden cluster | SBERT edges |
| Change over time | Spacetime fusion | PageRank | NLI agreement |
| Outliers | Default force | Betweenness | Contradiction (highlighted) |
| Causality | KGE | Degree | Causal edges |
This is the cheatsheet the architect agent uses. The full taxonomy lives
in references/layer-taxonomy.md (and is mirrored in the cosmos-design
chat skill). Add to it whenever a new layer ships in the runtime project.
When a real task surfaces a pattern not in the library:
recipes/<name>.md following the shape above.The "When NOT to use" section is non-negotiable. Recipes without it pull Claude into using them in cases they weren't designed for. The negative boundary is what makes the positive boundary useful.
The cosmograph.app/dev/ gallery is the upstream source of recipe
candidates. Scraped examples land in examples/raw/ (gitignored). Curate
into annotated recipes by:
install.sh).recipes/.Raw scraped examples are NOT recipes until they have the four required sections.
V-recipes-1. Every file in recipes/ ends with both "When to use this"
and "When NOT to use this" headed sections.
V-recipes-2. Every cosmos.gl scene Claude writes corresponds to one or
more recipes (or adds a new one before completing the task).
V-recipes-3. The question-to-layer cheatsheet here matches the layer
taxonomy in the cosmos-design chat skill.
refs/cosmos-gl/packages/graph/examples/refs/mosaic/packages/vgplot/examples/https://cosmograph.app/dev/
(scrape separately into examples/raw/)npx claudepluginhub travis-gilbert/claude-marketplace --plugin cosmos-proProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.