SK

sky-engine-dev

Handles stargazing engine lifecycle, math, rendering, and testing configurations.

Install

mkdir -p .claude/skills/sky-engine-dev && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17297" && unzip -o skill.zip -d .claude/skills/sky-engine-dev && rm skill.zip

Installs to .claude/skills/sky-engine-dev

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when changing the stargazing engine, math, rendering, lifecycle, tests, or Vite wiring.
91 chars✓ has a “when” trigger
Advanced

Key capabilities

  • Manage structural or behavioral changes in the canvas background
  • Orchestrate lifecycle and canvas operations in `src/sky/createSky.js`
  • Handle screen-space math in `src/sky/projection.js`
  • Manage drawing operations in `src/sky/renderer.js`
  • Generate stars in `src/sky/stars.js`

How it works

The skill guides changes to the sky engine by enforcing module boundaries for specific functionalities like lifecycle orchestration, screen-space math, and star generation. It requires updating Vitest coverage and running build processes.

Inputs & outputs

You give it
Code changes related to the sky engine, math, rendering, lifecycle, tests, or Vite wiring
You get back
Updated sky engine functionality, with Vitest coverage and successful build

When to use sky-engine-dev

  • Changing rendering math
  • Updating sky lifecycle
  • Configuring Vite for sky rendering

About this skill

Sky Engine Dev

Use this skill for structural or behavioral changes in the canvas background.

Core Rules

  • Prefer modern ES modules and arrow functions.
  • Keep src/main.js as bootstrap only.
  • Keep pure math and projection logic testable and deterministic.
  • Put lifecycle and canvas orchestration in src/sky/createSky.js.
  • Put screen-space math in src/sky/projection.js.
  • Put drawing only in src/sky/renderer.js.
  • Keep star generation in src/sky/stars.js.
  • Keep reusable math helpers in src/sky/math.js.

Workflow

  1. Check the relevant module boundaries first.
  2. Change the smallest module that owns the behavior.
  3. Update or add Vitest coverage for deterministic logic.
  4. Run npm test and npm run build.

Validation Focus

  • Camera basis orthogonality.
  • Projection center points and horizon culling.
  • Star generation invariants and sizing ranges.
  • Import/build correctness under Vite.

Constraints

  • Keep the effect lightweight on desktop and mobile.
  • Cap device pixel ratio where needed.
  • Avoid extra allocations in hot loops.
  • Keep the canvas transparent; atmosphere belongs in CSS or a dedicated overlay, not an opaque clear.

See references/module-map.md when a task spans multiple files.

When not to use it

  • When changes are not related to the stargazing engine, math, rendering, lifecycle, tests, or Vite wiring
  • When the task involves CSS or a dedicated overlay for atmosphere effects

Limitations

  • Must keep the effect lightweight on desktop and mobile
  • Must cap device pixel ratio where needed
  • Must avoid extra allocations in hot loops

How it compares

This skill provides a structured approach to modifying the sky engine by adhering to strict module boundaries and testing requirements, which helps maintain determinism and performance compared to ad-hoc code changes.

Compared to similar skills

sky-engine-dev side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
sky-engine-dev (this skill)03moNo flagsAdvanced
3d-web-experience356moReviewIntermediate
web-games116moNo flagsIntermediate
pwa-development93moCautionIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry