valaxy-theme
Valaxy theme authoring
Turn the user's visual direction into a source-distributed theme and a working demo. Read the theme contract before changing rendering or package entrypoints. Read the AK UI recipe only when the user chooses AK UI or an Arknights-inspired theme.
Skill and brief have different roles
This Skill supplies reusable framework knowledge and the development/verification workflow. The user's brief supplies this task's theme name, audience, visual direction, required pages and constraints. A brief generated by the docs is ordinary task input: preserve its choices, without treating its preset as a mandatory theme architecture. Do not ask the user for a second, full engineering prompt when this Skill is available.
For a new theme, establish the package/demo baseline and implement the reading experience. For an existing theme, inspect the requested change and preserve unrelated behavior, package identity and content. Do not re-run initialization or regenerate the whole theme for an iteration. Scale validation to what changed: style edits need affected-page checks; rendering, dependencies or exports need the corresponding build/package checks.
Establish the baseline
- Inspect the current workspace, applicable AGENTS.md, package scripts, installed Valaxy version and exported types. Adapt an existing theme when that is the request.
- For a new independent theme, use https://github.com/valaxyjs/valaxy-theme-starter in a new directory. Its
theme/package anddemo/consumer are the starting point. Iftheme:initexists, runpnpm theme:init <name>inside the new workspace, adding--owner <owner>only when the repository owner is known; otherwise update package references andthemeconfiguration together. Runpnpm installafter renaming. - Keep published examples portable. Do not leave absolute paths, developer-checkout symlinks or
link:dependencies in their manifests or lockfiles. - Confirm an unfamiliar API against the installed package or https://valaxy.site/themes/write. Valaxy versions differ; a plausible API name is not evidence that it exists.