Contributing
Guides for the most common evolution tasks. For lower-level component, icon, theme-token, and adapter-contract contributions, see packages/aurora/docs/CONTRIBUTING.md in the repo — that doc is the canonical reference for source-level work.
Regenerating the skill
The Aurora consumer skill at packages/aurora/skill/ is a derivative of view/. When you change a doc, regenerate the skill so AI sessions pick up the new guidance.
The flow
Edit a
view/*.mddoc — add a component, change a do/don't, refine a section.Open a Claude Code session inside
packages/aurora/(the regen skill is scoped here):bashcd packages/aurora && claudePrompt: "Run regenerate-aurora-skill."
Claude loads the regen methodology, hashes every
view/*.md, finds what changed, re-synthesizes only the touched references, updates the manifest, prints a summary.Review the diff in your editor — it should be minimal (one or two reference files + a manifest entry).
Commit.
Steady-state changes are usually a single reference file plus a manifest entry. The regen is incremental — it does not touch unchanged references.
Adding a new component or pattern doc
- Create
view/components/<name>.md(orview/patterns/<name>.md). - Add the standard frontmatter with both
title:and a one-sentencedescription:— the regenerator usesdescription:to populate the components/patterns index in the consumer skill'sSKILL.md. - Run the regen as above. The new file is classified as added, a fresh reference is synthesized, and the index gets a new row.
When to bump methodology_version
The regen skill lives at packages/aurora/.claude/skills/regenerate-aurora-skill/ and its rules are split across four reference files:
transform-rules.md— what to keep, strip, normalizevoice-and-structure.md— tone, section orderingmanifest-format.md— manifest schemaincremental-flow.md— the procedure
If you change transform-rules.md or voice-and-structure.md in a way that should retroactively rewrite existing references, bump methodology_version in incremental-flow.md. The next regen detects the mismatch and forces a full rebuild against the new rules.
When to start from scratch
Almost never. The bootstrap path kicks in only if packages/aurora/skill/.generation-manifest.json is missing — useful when you nuke skill/ to rebuild everything, which you basically never do. Most evolution happens through incremental regen plus targeted methodology bumps.
Releasing a version
Aurora is published to GitHub Packages as @scaler-tech/aurora. Releases are tag-driven — pushing an aurora-v* tag triggers the aurora-publish.yml workflow, which builds and publishes.
The flow
Bump the version in
packages/aurora/package.json— follow semver (patch for fixes, minor for new components/features, major for breaking changes):bashpnpm --dir packages/aurora version <patch|minor|major>Or edit the
versionfield directly.Commit the bump:
bashgit add packages/aurora/package.json git commit -m "build: aurora v<version>"Tag the commit and push both the branch and the tag:
bashgit tag aurora-v<version> git push origin <branch> aurora-v<version>The tag must match the
versioninpackage.jsonexactly. The publish workflow verifies this and aborts if they diverge.CI takes over. The
aurora-publish.ymlworkflow runs typecheck, builds aurora, verifies the tag-vs-package.jsonmatch, and publishes to GitHub Packages with the repository'sGITHUB_TOKEN.Verify the new version is live:
bashpnpm view @scaler-tech/aurora versions --registry=https://npm.pkg.github.com
Dry-run a publish
Before tagging, you can verify the publish step without pushing to the registry. From the GitHub Actions UI:
- Go to Actions → aurora Publish → Run workflow.
- Set
dry_run: true. - The workflow runs
pnpm publish --dry-runinstead of the real publish — surfaces any registry, manifest, or build issues before you tag.
Skill regen and releases
If your release includes view/ doc changes that affect the skill, regenerate the skill before tagging so the published version's skill/ matches the released docs. The manifest's skill_version field then mirrors the new package version, giving future regens an accurate traceability anchor.
Source-level contributions
Lower-level changes — adding components, icons, theme tokens, adapter contracts — live at the source-code level and are documented in the repo:
packages/aurora/docs/CONTRIBUTING.md— the canonical reference. Barrel exports, contribution checklist, adapter contracts viaprovide/inject, Storybook stubs.packages/aurora/docs/STYLING.md— style rules (semantic tokens, no raw hex, typography classes).packages/aurora/docs/REKA-UI.md— when and how to composereka-uiprimitives.