frontend-component-lab

frontend-component-lab is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 117 tokens per session (998 once invoked), scanned A, original, Apache-2.0.

A generator for React and TypeScript UI components using CSS Modules and design tokens. Design tokens are named values for things such as colours, spacing, borders, and fonts.

In plain words
What is it for?
Use it to scaffold a new React component, its styles, token file, and a review checklist. You can also supply brand-specific token values.
Why use it?
It gives a component a consistent starting structure and helps avoid untyped properties, scattered magic numbers, and missing accessibility checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/scaffold_component.py --name PricingCard --props title,price,cta --out ./src/ui.

Good fit Use it to scaffold a new React component, its styles, token file, and a review checklist. You can also supply brand-specific token values.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/frontend-component-lab

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for frontend-component-lab

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/frontend-component-lab/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/frontend-component-lab)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/frontend-component-lab"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/frontend-component-lab/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frontend-component-lab

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/frontend-component-lab"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/frontend-component-lab.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 998 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00117 $0.00998
Opus 5.5 $0.00047 $0.00399
Sonnet 5.5 $0.00023 $0.00200
Haiku 4.5 $0.00012 $0.00100

Measured 2mo ago against content hash 56d72397bd4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

frontend-component-lab scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

site/skills/design/frontend-component-lab/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Frontend Component Lab (Component Scaffold + Design System Token)

Turn a component requirement into a **runnable React/TS component + CSS Modules

  • design token file**, plus a review checklist of "the mistakes LLMs most often make writing frontend". Adapted from mattpocock/skills' frontend-design concept and ECC's frontend-patterns (React/Next conventions), trimmed to an offline, zero-dependency scaffold + discipline layer.

Core judgment: the model's frontend disease isn't "can't write"—it's "magic numbers + inline styles + untyped props". This skill blocks these three problem types directly with token files and strongly-typed skeletons.

Red lines: default dry-run only prints what would be generated; --write saves; existing same-named files need --force. Zero network, no npm install.

Input Checklist

Input Required Notes
Component name yes PascalCase, e.g. PricingCard
props no comma-separated string-typed props
Token override no Pass a JSON to override default color/spacing/radius/font
Output directory no Default current directory

Pre-flight Checks

  1. Is component name PascalCase? (script rejects lowercase-start)
  2. Does the target project use CSS Modules? If not (Tailwind/Styled), after --write manually rename .module.css to corresponding approach—this skill doesn't assume the build tool.
  3. Do design tokens need to inherit existing brand? If so, prepare an override JSON first.

Workflow

# 1. Dry run: see which files would be generated
python3 scripts/scaffold_component.py --name PricingCard --props title,price,cta --out ./src/ui

# 2. Real generation
python3 scripts/scaffold_component.py --name PricingCard --props title,price,cta \
  --out ./src/ui --write

# 3. With brand token override
python3 scripts/scaffold_component.py --name PricingCard --tokens ./brand.json \
  --out ./src/ui --write --force

After generation, go through TSX per the checklist in references/frontend-sins.md, filling // TODO with real render logic.

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +7 lines · -7 tokens per session 56d72397bd4c
  2. 2mo ago First seen · 94 lines · 124 tokens per session scan A bec88cb863c7

Subscribe to this mod's changes

frontend-component-lab is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 117 tokens to every session and 998 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

frontend-component-lab compared with skills from other repositories

frontend-component-lab next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-component-labMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A117Claude Code, Codex
building-landing-homelobehub/lobe-iconsSkill2.7k7d agoMITA121Claude Code, Codex
ui-componentsyonatangross/orchestkitSkill312todayMITA44Claude Code
component-searchyonatangross/orchestkitSkill312todayMITA34Claude Code
ui-designmblode/agent-skillsSkill228todayMITA86Claude Code, Codex
frontend-designmastra-ai/mastraSkill30ktodaynoneA77Claude Code, Codex
website-design-clonerroedyrustam/vibes-plugSkill1293d agoMITA32Cursor