spartan
Skill by spartan-ng
Guides AI assistants through adding, composing, fixing and styling spartan/ui components in Angular projects. Built for Angular developers who use the Brain and Helm layers.
Install spartan
Built from the published package, never by AI.
git clone --depth 1 https://github.com/spartan-ng/spartan /tmp/spartan && mkdir -p ~/.claude/skills && cp -r /tmp/spartan/skills/spartan ~/.claude/skills/spartanRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/spartan-ng/spartan /tmp/spartan && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/spartan/skills/spartan ~/.gemini/antigravity-cli/skills/spartanAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill tells an AI assistant how to work with spartan/ui, an Angular UI library. It covers adding, composing, fixing, debugging and styling UI. The library has two layers: Brain (@spartan-ng/brain), accessible unstyled primitives installed from npm, and Helm (@spartan-ng/helm), a styled layer built on Tailwind and class-variance-authority.
The CLI copies Helm code into the user's project, so the user owns and can change it. The skill tells the assistant to read project context with the info generator, check installed components, prefer existing components and semantic colors, and use the spartan MCP tools for component docs. It is for Angular developers working in Nx or Angular CLI workspaces that have a components.json file.
Written from the project's SKILL.md and checked against it.
What it can do
- Project contextRuns the cli:info generator to read workspace type, config, versions and installed components.
- Add componentsUses the ui generator to install the Brain dependency and copy Helm code into the project.
- Composition rulesGuides forms, cards, dialogs, tabs and alerts built from the right Helm and Brain pieces.
- Styling rulesPoints to semantic color tokens, built-in variant and size inputs, and the hlm() util.
- Icon setupRequires ng-icon names to be registered with provideIcons.
- ThemingExplains hlm-tailwind-preset.css, CSS variables and the ui-theme generator.
- HealthcheckRuns the healthcheck generator to scan for deprecated APIs and imports, with optional autoFix.
- Component discoveryUses spartan_components_list and spartan_components_get from the MCP server to read docs.
What you need
- An Angular project
- Nx or Angular CLI workspace
- Tailwind CSS for Helm styling
- npx or pnpm to run the CLI generators
Try asking
- Add a dialog component to my spartan/ui Angular project
- Set up spartan/ui in this Angular workspace
- Build a settings form using spartan/ui field components
Good to know
- Not user-invocable; the assistant loads it when a task involves spartan/ui.
- The shipped CLI uses no remote or custom registry and a fixed component catalog.
- Helm code is copied into the project, so the user owns and customizes it.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/spartan/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(npx nx g @spartan-ng/cli:*)Bash(pnpm nx g @spartan-ng/cli:*)Bash(ng g @spartan-ng/cli:*)
-
SKILL.md10 KB -
cli.md3 KB -
customization.md3 KB -
mcp.md2 KB -
registry.md2 KB
Show all 10 files
-
rules/brain-vs-helm.md3 KB -
rules/composition.md3 KB -
rules/forms.md4 KB -
rules/icons.md1 KB -
rules/styling.md5 KB
Alternatives to spartan
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
spartan: common questions
Does spartan/ui need a components.json file?
The components.json file is created when the first component is added with the ui generator. If it is missing, the project is not set up yet and init should run first.
What is the difference between Brain and Helm?
Brain is the unstyled behavior and accessibility layer installed from npm. Helm is the styled layer whose code is copied into the project.
Can the assistant check spartan/ui code after an upgrade?
Yes. The healthcheck generator scans for deprecated APIs and imports, and the --autoFix flag can fix them.
How do I install spartan?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is spartan free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is spartan safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to spartan?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
