balsa-ui
Skill61 starsChanged 4 months agoMITView on GitHub
Build, fix, review, install, and validate Balsa UI open-code components for Vue applications. Use for focused Balsa repository maintenance, Vue UI built from Balsa components, compositions or blocks, semantic tokens, registry metadata, accessibility behavior, and installed-source update safety. Scale the workflow from direct small fixes to the companion orchestrate-agents skill for independent multi-part work when it is available.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- public/llms-full.txtllms.txt
- public/llms.txtllms.txt
- balsa-template-designSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Search by intent with the CLI.
- Very specific: line 36
Use .balsa/catalog-index.json only when CLI search is unavailable.
- Distinctive: line 38
Search without loading catalog files into context:
- Very specific: line 46
If a balsa-ui MCP server is connected, prefer its tools over shelling out for the same questions — search_components, component_contract, …
- Very specific: line 53
Prefer a Balsa block, composition, or primitive.
- Distinctive: line 62
When authoring registry metadata, preserve the specification's classification and require a documented reason before adding a Balsa …
- Distinctive: line 89
Before updating installed source, inspect one item or the complete installation:
- Distinctive: line 105
Use components for low-level controls, compositions for recurring combined behavior, and blocks for meaningful page sections.
- Very specific: line 106
Use semantic balsa color utilities for palette-aware UI.
- Very specific: line 108
Keep Vue public APIs typed and use <script setup lang="ts">.
- Distinctive: line 115
Add focused behavior or accessibility coverage for the changed behavior.
- Very specific: line 116
Update specs/components, docs/components, registry.json, examples, playgrounds, showcases, CHANGELOG.md, and progress.md only where the …
- Very specific: line 120
Run the nearest focused test while iterating.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Work with Balsa UI
Scale the work first
- For a small fix to existing code, work directly. Read the target, its selected specification when the public contract matters, and the nearest focused test. Make the smallest coherent edit, run the focused test while iterating, then run the repository's required changed-area gate once before handoff. Do not initialize Balsa, search the whole catalog, research a new design relationship, or update public artifacts when the fix does not affect them.
- For new UI or an unfamiliar component choice, use the discovery workflow below. Research established practice only before choosing a new scale, ratio, nesting rule, or default proportion; record the source with that decision.
- For a new template, block, showcase, demo, or visually led page, load and follow the
companion
$balsa-template-designskill before discovery and implementation. It owns art direction and the anti-template critique; this skill owns Balsa selection, contracts, accessibility, source placement, and validation. - For a broad task with independent, separately verifiable pieces, use
$orchestrate-agentswhen that companion skill is installed. Let its protocol choose the other Codex account or Claude, isolate parallel writers, and verify their work before integration. Do not delegate a small edit; preparing and reviewing the brief would make it slower.
Discover before building new UI
- In a consumer Vue project without
.balsa/, runnpx balsa-ui@latest initbefore writing common controls or surfaces. - Search by intent with the CLI. Do not load either catalog into context merely to discover an item.
- Read only the selected
.balsa/specs/components/<name>.json. ItspublicApiis derived from the component's TypeScript source, so prop types, required flags, defaults, enumerated unions andv-modeltypes are exact — do not guess a value that is not invalues. Itsexamplesare complete, type-checked single-file components; copy one rather than inventing usage. In the Balsa repository, usespecs/components/<name>.json. - Install matching items before implementing the interface. Prefer, in order, a block, composition, then primitive. Do not recreate a Balsa-covered control with raw HTML and CSS.
- The specification is sufficient for normal composition. Inspect installed source only when changing its behavior.
- Use
.balsa/catalog-index.jsononly when CLI search is unavailable. Read.balsa/catalog.jsononly for dependency, token, documentation, or source metadata.
Search without loading catalog files into context:
npx balsa-ui@latest search "settings form"
npx balsa-ui@latest info input --markdown
npx balsa-ui@latest doctor --jsonIf a balsa-ui MCP server is connected, prefer its tools over shelling out for the same
questions — search_components, component_contract, design_system, project_status
and plan_update return the same answers without a subprocess. Installing is not among
them: run the CLI for that, so a refusal is visible and --force stays a deliberate act.
Use an upstream component only as a fallback
Prefer a Balsa block, composition, or primitive. If Balsa has no suitable item, use the
Balsa CLI to inspect and install a namespaced upstream item such as
npx balsa-ui@latest view @shadcn/stepper followed by
npx balsa-ui@latest add @shadcn/stepper. Do not run a second registry CLI.
Upstream items receive Balsa's universal color, focus-ring, and base-radius bridge. Additional
design-system reach varies by adapter; inspect balsa design-system show or the integration
documentation when that difference matters. Prefer the Balsa implementation when both exist.
When authoring registry metadata, preserve the specification's classification and require a documented reason before adding a Balsa alternative to an upstream item. Consult upstream documentation only for an upstream item's own API; Balsa does not mirror it.
Install
Initialize Balsa once in an existing Vue project, then add only the needed components before writing their replacements:
npx balsa-ui@latest init
npx balsa-ui@latest add <name>To start from one of Balsa's complete named systems, list and apply it after init:
npx balsa-ui@latest design-system apply --list
npx balsa-ui@latest design-system apply press
npx balsa-ui@latest design-system showThe command installs editable palette, theme, and named-gradient source and reports the exact registration and activation handoff. Use design-system create only for a custom Design Studio payload.
Use init --palette only when the application wants Balsa's explicit Dark and Light presets. Components work with the adaptive foundation without the optional palette. init creates a complete components.json only when one is missing; existing configuration stays project-owned. Registry dependencies resolve recursively, required npm packages install through the project's detected npm, pnpm, Yarn, or Bun manager, and local agent context is synchronized under .balsa/.
Repository contributors can use npm run registry:install -- <name> --cwd <vue-project>.
Before updating installed source, inspect one item or the complete installation:
npx balsa-ui@latest diff <name>
npx balsa-ui@latest diffdiff is read-only. It compares the originally installed source, the application's editable
copy, and what the registry would install now. It reports each item as unchanged, upstream,
local, diverged, missing, or unknown and prints file-level patches from local source to the
registry source for every difference. Treat installed files as application source. Preserve
local edits; never use --force unless the user explicitly chooses replacement after
reviewing these patches. Consult docs/installed-component-updates.md for provenance rules.
Compose
- Use components for low-level controls, compositions for recurring combined behavior, and blocks for meaningful page sections.
- Use semantic
balsacolor utilities for palette-aware UI. Standard Tailwind colors remain available for product-specific decoration, but do not use them where content must adapt with the Balsa palette. - Preserve semantic HTML, labels, accessible names, focus visibility, keyboard behavior, and non-color state communication.
- Keep Vue public APIs typed and use
<script setup lang="ts">.
Add or update a public item
This section applies only inside the Balsa UI repository.
- Edit canonical source under
src/; never editregistry/vueorpublic/rdirectly. - Add focused behavior or accessibility coverage for the changed behavior.
- Update
specs/components,docs/components,registry.json, examples, playgrounds, showcases,CHANGELOG.md, andprogress.mdonly where the change makes their current claims inaccurate. A private implementation fix that preserves the public contract and documented behavior does not require mechanical edits to all of them. - Run the nearest focused test while iterating. Run
npm run check:changedonce as the local completion gate; use broader commands only to diagnose a failure or when explicitly required by the repository rules.
Validate
Run npm run check:changed once for ordinary completed agent work. Run npm run check only in CI, for release preparation, packaging/installer/starter integration work, or when the user explicitly requests the complete distribution gate. For a focused registry change, also inspect git diff and scan for legacy or private branding, private endpoints, secrets, proprietary assets, and company-specific rules.
Common mistakes: duplicating canonical implementations, editing generated artifacts, bypassing an existing item with styled raw HTML, wrapping Input in FormField and duplicating labels, inventing variants without metadata, or overwriting customized installed source.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

