ui-component
Skill by hiroppy
Guides an AI assistant through creating new UI components under apps/web/src/components/. It covers the checklist, file patterns, Storybook stories and semantic colors for monetary values.
Install ui-component
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hiroppy/mf-dashboard /tmp/mf-dashboard && mkdir -p ~/.claude/skills && cp -r /tmp/mf-dashboard/.agents/skills/ui-component ~/.claude/skills/ui-componentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/hiroppy/mf-dashboard /tmp/mf-dashboard && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mf-dashboard/.agents/skills/ui-component ~/.gemini/antigravity-cli/skills/ui-componentAntigravity 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
The UI Component skill gives an AI assistant a checklist and conventions for creating new UI components under apps/web/src/components/. It describes three locations: pure chart and UI components in charts/ and ui/, and data-fetching components in info/. Each type has its own file pattern and template.
For data-fetching components, the skill explains when to split a Server Component from a client file. It says to create a .client.tsx file only when interactivity is needed. It also includes a Storybook template with mock data and a table of semantic color classes for monetary values. The source is written for the mf-dashboard project and is aimed at developers working in that codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Component checklistLists the steps to create a component file, a stories file, semantic colors and a Storybook check.
- Pure UI componentsDescribes data-agnostic components in components/charts/ or components/ui/ that receive all data via props.
- Data-fetching componentsDescribes Server Components in components/info/ that fetch data via lib/queries.
- Client component splitExplains when to add a .client.tsx file for interactivity such as useState or event handlers.
- Storybook templateProvides a stories file template that uses mock data for a component.
- Semantic color classesLists text-income, text-expense, text-balance-positive and text-balance-negative for monetary values.
What you need
- pnpm
- Storybook with the @mf-dashboard/web test:storybook script
Try asking
- Create a new pure chart component in components/charts/ with a Storybook story
- Create an info component that fetches data via lib/queries and add its stories
- Make a UI component for monetary values using the semantic income and expense colors
Good to know
- Only create .client.tsx files when interactivity is required
- Monetary values must use the semantic color classes listed in the skill
- Written for the mf-dashboard project file layout
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/ui-component/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md3 KB
Alternatives to ui-component
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
ui-component: common questions
What does the ui-component skill do?
It guides an assistant through creating new UI components under apps/web/src/components/, with a checklist, file templates and a Storybook story template.
When should a component use a client file?
The source says to create a .client.tsx file only when interactivity is required, such as useState, useEffect or event handlers. Components that only display data stay as Server Components.
Which colors should monetary values use?
The source says to use text-income for income, text-expense for expenses, and text-balance-positive or text-balance-negative for balances.
How do I install ui-component?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ui-component free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ui-component safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality B. 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-component?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
