
Description
spartan/ui is an Angular UI library, and this agent skill helps add, compose, fix, debug and style its components. The library has two layers. Brain is the accessible, unstyled primitive layer, installed from npm, which provides the behaviour and accessibility. Helm is the styled layer, built with Tailwind and class-variance-authority, and its code is copied into your project by the CLI so you own it and can customise it. The skill tells the agent to compose Helm directives and components onto host elements, which wire up the matching Brain primitives, and to prefer existing components over hand-written markup. It also detects the workspace runner. In an Nx workspace, which has an nx.json file, it uses npx nx g with the @spartan-ng/cli generators, and in an Angular CLI workspace, which has an angular.json and no nx.json, it uses ng g. Use the skill when you work on UI in an Angular project that uses spartan/ui, or when you need a styled Angular component built on accessible primitives.…
Highlights
- Add, compose and style spartan/ui components
- Brain headless primitives and Helm styled layer
- Detects Nx or Angular CLI workspaces
- Prefers existing components over custom markup
Ratings & Reviews
No ratings yet
Be the first to rate spartan.
People also visit
spartan FAQ
What is spartan/ui?
An Angular UI library with a headless Brain layer for behaviour and accessibility, and a styled Helm layer.
Does Helm code end up in my project?
Yes. The CLI copies the Helm code into your project, so you own it and can customise it.
Which generator commands does it use?
npx nx g @spartan-ng/cli:<generator> in an Nx workspace, or ng g @spartan-ng/cli:<generator> in an Angular CLI workspace.
How do I install it?
Run npx skills add https://github.com/spartan-ng/spartan --skill spartan.
What do the security audits show?
Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best spartan alternatives?
Popular alternatives to spartan include angular-developer, angular-developer and angular-architect. See all spartan alternatives




















