Skip to content

Open-source skills for designing and reviewing software with AI agents

4.9 KB
Raw Blame

egm.dev

Landing site for the Elephant-Goldfish Model, served at https://egm.dev from GitHub Pages.

Light Dark
Hero, light scheme Hero, dark scheme
Full page and mobile

Full page, light scheme

Full page, dark scheme

Mobile, light scheme, 375px wide

Mobile, dark scheme, 375px wide

Stack

  • Astro static output, one page, no client framework.
  • gBreeze (@material/web labs/gb) in its native-element form: the page emits the package's own class names (btn, icon-btn, list-item, badge, divider) and imports the package stylesheets. No custom elements, no Lit runtime.
  • Google Sans Flex and Google Sans Code, self-hosted under src/assets/fonts/ (OFL).

Rules

  • Theme only through gBreeze tokens (src/styles/tokens.css) and the components' documented custom properties. Do not restyle component boxes.
  • Keep skill names and commands identical to the repository README.
  • Cookies and analytics (egm.dev only): The EGM plugin itself collects zero telemetry. On the canonical https://egm.dev site only (when PUBLIC_GA_MEASUREMENT_ID is set at build time and window.location.hostname === 'egm.dev'), the page loads Google Cookie Notification Bar (cookienotificationbar.min.js). Google Analytics 4 (gtag.js) loads only after the bar reports an affirmative accepted choice with loaded.detail.required === true. Pending, rejected, absent, and failed consent initialization never load GA. CNB's non-required fallback is not affirmative consent. The documented instance statuschange listener updates Consent Mode v2. Revocation sets GA's measurement disable flag before queuing denied consent and blocks later event/config calls. CNB uses a separate data layer so its defaults cannot enable analytics or advertising. Google Signals and advertising storage/personalization stay disabled. URLs and referrers are scrubbed before configuration. External forks, preview domains, local builds, and builds without a measurement ID make zero requests to Google hosts.

Consent integration contract

The integration follows the public CNB script inspected on 2026-10-30 (SHA-256 e99eda4f401f141e55dcf8ccc1baa988e5165c99e89372d126841b8e7d26cd26). Its constructor registers the global callback on loaded. After fetching configuration and storage, it emits detail: { required, status }. The autoloaded instance is available as glue.CookieNotificationBar.instance. Its listen('statuschange', callback) method receives detail: { status }. Its supported customDataLayerName option selects the data layer for its own consent commands. The browser fixtures model these source contracts.

Google's programmatic Analytics opt-out documentation states that the tag checks ga-disable-MEASUREMENT_ID before setting cookies or sending data. This check grounds revocation after the library has loaded, including automatic events that do not use the page's gtag wrapper. The flag is set before denied consent is queued.

Browser checks intercept every network response. They verify pending and rejected consent, grant, revocation before and after script execution, regrant, and disabled builds. Their GA fixture implements the documented disable flag; these are integration regression checks, not a live Google library audit.

Skill icons

src/components/SkillIcon.astro imports the canonical ../skills/egm_*/assets/icon.svg files with ?url. The website and plugin packages use these same assets; do not copy them into public/ or redraw them in components. Each decorative glyph is 28px inside a 40px circle using the existing surface tokens, with an adjacent skill name or command providing its accessible label. The workflow and skill catalog share this component. The workflow shows Brainstorm, Draft, and Review, followed by a short handoff to the coding agent and a separate Check for drift follow-up after implementation.

Develop

npm install
npm run dev      # http://localhost:4321
npm run check    # astro check
npm run build    # writes dist/
npm run capture  # rebuilds, then regenerates public/og.png and screenshots/*.png

npm run capture needs a local Chrome (set CHROME_PATH if it is not found). The social image comes from scripts/og.html; edit that file, not the PNG. Run npm run capture after any visible change so the committed images stay in sync.

Deploy

.github/workflows/deploy-site.yml builds and publishes dist/ on every push to main that touches site/, and on manual dispatch. public/CNAME pins the custom domain.