ui-primitives
Skill by massCodeIO
Guides building and refactoring massCode UI components with local Ui primitives and Shadcn patterns. It is for developers working on the massCode renderer who need component usage rules.
Install ui-primitives
Built from the published package, never by AI.
git clone --depth 1 https://github.com/massCodeIO/massCode /tmp/massCode && mkdir -p ~/.claude/skills && cp -r /tmp/massCode/.agents/skills/ui-primitives ~/.claude/skills/ui-primitivesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/massCodeIO/massCode /tmp/massCode && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/massCode/.agents/skills/ui-primitives ~/.gemini/antigravity-cli/skills/ui-primitivesAntigravity 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 agent skill sets component-level usage rules for massCode UI. It tells the assistant to build buttons, inputs, checkboxes and similar controls from existing Ui* components, and to create missing ones in src/renderer/components/ui/ before using them in a feature. It also covers buttons, cards, readonly and copyable content, cva and cn styling helpers, Shadcn import patterns, and notifications through useSonner().
The skill also defines when to use Tooltip and Popover, and how to manage focus when opening and closing dialogs. It states that visual foundations belong to a separate ui-foundations skill. It is written for developers and AI assistants working on the massCode codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Use local Ui componentsReuse auto-imported Ui* components instead of raw HTML for buttons, inputs and checkboxes.
- Create missing primitivesAdd a missing base control in src/renderer/components/ui/ before using it in a feature.
- Button rulesGuides primary, icon-only, loading and destructive button behavior.
- Readonly and copy contentShows long readonly output as readable, copyable content rather than a disabled input.
- Styling helpersUses cva for variants and cn() for joining conditional classes.
- Shadcn importsImports Shadcn components from @/components/ui/shadcn/* with namespace patterns.
- NotificationsSends notifications through useSonner() and avoids parallel toast systems.
- Tooltip and popover choicePicks Tooltip for short hints and Popover for richer inline or contextual content.
- Dialog focus handlingPrevents unwanted autofocus on open and close, and keeps focus trap and keyboard navigation.
What you need
- A massCode codebase with src/renderer/components/ui/
- Shadcn components in the project
Try asking
- Build a settings card using the existing Ui card and button primitives
- Add a copy button for a readonly generated URL using useSonner
- Refactor this dialog so focus does not jump to the close button
Good to know
- Covers component usage rules only, not overall visual foundations
- Written for the massCode project and its Ui and Shadcn setup
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/ui-primitives/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to ui-primitives
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
ui-primitives: common questions
What does the ui-primitives skill cover?
It covers how to use massCode's local Ui components and Shadcn patterns, including buttons, cards, cva and cn, notifications and dialog focus.
Should I use a raw button or input in massCode?
The skill says not to reimplement basic controls on raw HTML when a Ui* variant exists. If none exists, create it in src/renderer/components/ui/ first.
How should toast notifications be shown?
The skill says to use useSonner() for notifications and not to add a local, parallel toast system inside a feature.
How do I install ui-primitives?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ui-primitives free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is ui-primitives safe to use?
It scores 80 of 100. Grades: maintenance A, licence C, 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 ui-primitives?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
