polystella-consumer

Installation
SKILL.md

polystella-consumer

You are working in an Astro project that consumes the polystella package. This skill covers integration, configuration, common pitfalls, and the debug flow.

If you are working on the polystella package source itself (adding adapters, editing translators, modifying the cache layer), STOP and load polystella-contributor instead.

What PolyStella does

Build-time content localization for Astro:

  • Translates content collections (.md, .mdx, .toml, .json, .yaml) into additional locales using AI (Workers AI or Anthropic).
  • Caches translations in Cloudflare R2, content-addressed by source bytes + glossary + model. Unchanged content costs zero on rebuild.
  • Injects routes under /[lang]/... for each non-default locale.
  • Provides runtime APIs on Astro.locals (t, lhref, getLocalizedEntry, getLocalizedCollection) and React hooks (useTranslations, useLocalizedHref).
  • Maintains UI strings via per-locale JSON dicts with drift detection, sync, and AI-fill subcommands.
Installs
1
First Seen
4 days ago
polystella-consumer — cloudflare/polystella