Skip to content

feat(cosmos): constellation star maps + 11-card encyclopedia wave (v2)#37

Draft
frankxai wants to merge 2 commits into
mainfrom
claude/starlight-intelligence-platform-zo7r2o
Draft

feat(cosmos): constellation star maps + 11-card encyclopedia wave (v2)#37
frankxai wants to merge 2 commits into
mainfrom
claude/starlight-intelligence-platform-zo7r2o

Conversation

@frankxai

Copy link
Copy Markdown
Owner

What this ships

The next wave of Starlight Cosmos, extending the 2026-06-11 design spec — the encyclopedia grows, the first visual-exploration surface lands, and the platform vision is captured as a phased plan.

New surface: /cosmos/constellations

  • Deterministic SVG star maps for Orion, Ursa Major (Big Dipper), Crux (Southern Cross), Cassiopeia — projected from real J2000 RA/Dec coordinates, single scale so figures keep true sky proportions, zero client JS, seeded background starfield (no hydration mismatch).
  • Every chart reads in three labeled layers: Science / Myth / Navigation — the physics and the mythology both present, never mixed.
  • Wired into the /cosmos hub (fourth view tile: "Star Maps") and the sitemap.

Encyclopedia: 19 → 30 cards

  • Two new card kinds: constellation, spacecraft (registry now spans 12 kinds).
  • New cards: Orion · Ursa Major · Crux · Cassiopeia · Betelgeuse · Sirius · Proxima Centauri · Voyager 1 · ISS · Fusion on Earth · What Stars Teach (the philosophy layer, kept honest by physics).
  • Every new card carries dual-track prompts: a systems lens, a research trail, and a story seed — one substrate serving scientific exploration and fiction worldbuilding.
  • Facts follow the Metrics Truth Rule: established figures only, estimates labeled (e.g. Betelgeuse's genuinely uncertain distance), fast-moving numbers dated "as of 2026".

Plan doc

  • docs/superpowers/specs/2026-07-13-cosmos-platform-expansion.md — phased, falsifiable roadmap for the larger vision: Cosmos MCP in starlight-cosmos-engine, embedded site agent, Expo/desktop apps, network visualization, and monetization options with a recommendation (templates now, subscription when the agent exists).

Verification

  • npm run lint — 0 errors (pre-existing warnings only, untouched files)
  • npm run build — green; /cosmos/constellations prerendered, all 30 card pages SSG'd
  • All 11 new content files match the established card format (no frontmatter, ## sections, closing "Why it matters to a builder")

Built on SIP.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HQB4GCtCMEZYwKZ1dzz9T9


Generated by Claude Code

- /cosmos/constellations: deterministic SVG sky maps (real J2000 RA/Dec,
  zero client JS) for Orion, Ursa Major, Crux, Cassiopeia — each chart
  read in three labeled layers: science / myth / navigation
- Encyclopedia 19 → 30 cards: 4 constellations, 3 named stars
  (Betelgeuse, Sirius, Proxima Centauri), 2 spacecraft (Voyager 1, ISS),
  2 concepts (Fusion on Earth, What Stars Teach)
- New card kinds: constellation, spacecraft (registry now 12 kinds)
- Dual-track prompts on every new card: systems lens + research trail
  + story seed — one substrate serving research and worldbuilding
- Hub nav: fourth view tile (Star Maps); sitemap + featured refresh
- Spec: docs/superpowers/specs/2026-07-13-cosmos-platform-expansion.md
  (phased plan: MCP surface, site agent, Expo app, monetization options)

Built on SIP.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HQB4GCtCMEZYwKZ1dzz9T9
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
site Ready Ready Preview, Comment Jul 13, 2026 12:40am

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1a72e4fc-6e4a-492f-9db7-4a9d5ad37c95

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/starlight-intelligence-platform-zo7r2o

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request expands the Starlight Cosmos platform by adding new content cards for constellations, spacecraft, stars, and concepts, along with a platform expansion spec. It introduces a new "Star Maps" visual exploration surface featuring deterministic SVG sky maps rendered via a new ConstellationMap server component. Feedback on the changes suggests adding a defensive guard check in ConstellationMap to prevent potential division-by-zero errors if a constellation is loaded with an empty stars array.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

constellation: Constellation;
seed?: number;
}) {
const { stars, lines } = constellation;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To prevent potential division-by-zero errors and rendering issues (resulting in NaN values for coordinates and scale) if a constellation is loaded with an empty stars array, we should add a defensive guard check at the beginning of the component.

Suggested change
const { stars, lines } = constellation;
const { stars, lines } = constellation;
if (!stars || stars.length === 0) {
return null;
}

Review finding (PR #37): centroid math divides by stars.length —
an empty array would render a NaN-coordinate SVG. Return null instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HQB4GCtCMEZYwKZ1dzz9T9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants