zenithbuild
v0.1.1
Published
Agent-ready skills and rules for building Zenith framework projects.
Maintainers
Readme
zenithbuild
Agent-ready skills and rules for building Zenith framework projects.
What is zenithbuild?
zenithbuild is a standalone, publishable package that bundles the canonical Zenith agent contract:
- Event binding rules (
on:<event>={handler}) - Reactivity primitives (
state,signal(),ref<T>()) - Canonical DOM and environment access (
zenWindow,zenDocument,zenOn,zenResize,collectRefs) - Server-first route protection (
guard/load) - Tailwind token usage and
dark:variants - Forbidden framework-drift patterns (React, Vue, Svelte, Astro, generic CSS)
- File-size limits (500 lines per source file)
It is meant to be consumed by coding agents such as GLM, KIMI, Codex, Cursor, Claude Code, and any other agent that needs deterministic Zenith authoring rules.
Why agents need it
Zenith is a compiler-first UI framework. Familiar-looking syntax does not imply React, Vue, or Svelte semantics. Without the contract, agents tend to drift into generic framework patterns. zenithbuild gives agents a single, versioned source of truth for the non-negotiable rules.
Local install
Install into a Zenith project as a dev dependency:
npm install -D zenithbuildAfter installation, agents can read the rules from node_modules/zenithbuild/rules/ or copy them into the repo under .agents/skills/zenith/.
skills.sh install
Install the Zenith agent skill directly from the framework repository:
npx skills add zenithbuild/framework --skill zenithbuildDirect path install:
npx skills add https://github.com/zenithbuild/framework/tree/master/skills/zenithbuildThe skills.sh folder at skills/zenithbuild/ is mirrored by this npm package. The package readiness test keeps SKILL.md, rules/, and examples/ in sync.
Future global install
A global install lets agents find the canonical Zenith rules from one place:
npm install -g zenithbuildWhen installed globally, an agent can resolve the package path and read the contract without a project-local copy. (This is a future workflow; the package metadata is already configured for it.)
Copy or reference the rules in a repo
Two recommended workflows:
- Reference without copying: Point the agent to
node_modules/zenithbuild/AGENTS.mdandnode_modules/zenithbuild/rules/after installing locally. - Copy into
.agents/skills/zenith/: Copy the rule files into the repo's own agent skill directory so the rules travel with the project even whennode_modulesis not committed.
Example copy command:
mkdir -p .agents/skills/zenith
cp node_modules/zenithbuild/rules/*.md .agents/skills/zenith/
cp node_modules/zenithbuild/AGENTS.md .agents/skills/zenith/SKILL.mdWhat agents should read first
Read in this order:
AGENTS.md— the full, non-negotiable agent contract.rules/zenith-agent-contract.md— concise contract summary.rules/zenith-dom-rules.md— DOM access, refs, and environment rules.rules/zenith-routing-rules.md— server-first guard/load route protection.rules/zenith-tailwind-rules.md— Tailwind token and styling rules.examples/*.zen— minimal, correct Zenith examples.
Forbidden patterns
Agents must not generate:
onclick="...",onClick=,@click=, or{#if}/{#each}templating- Direct call handlers like
on:click={doThing()} querySelector,querySelectorAll, orgetElementByIdinside.zenscripts- Direct
addEventListenercalls inside.zenscripts - React, Vue, Svelte, or Astro syntax
- Raw hex colors unless the Tailwind config defines them
- Generic client-only route guards
- Static prerendering (
prerender = true) on routes that useguardorload - Source files over 500 lines without prior approval
License
MIT — same as the Zenith framework repository.
