full-stack-design-skills: Skill for Claude Code

.claude/skills/component-library-mastery/SKILL.md

component-library-mastery is a skill for Claude Code from plugin87/full-stack-design-skills. It costs 48 tokens per session (1,249 once invoked), scanned A, original, MIT.

A guide to building and maintaining a reusable UI component library with Storybook. A component library is a shared collection of interface pieces such as buttons, cards, and dialogs; Storybook displays and documents those pieces separately from the full application.

In plain words
What is it for?
Setting up Storybook, documenting component APIs, creating interactive examples, testing interactions, publishing components through npm, and maintaining library releases.
Why use it?
It helps teams keep component behavior, options, and documentation understandable as the library grows. It also covers publishing and versioning the library for other projects.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is plugin87/full-stack-design-skills's own configuration. It tells Claude Code how to work on full-stack-design-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything full-stack-design-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to plugin87/full-stack-design-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/plugin87/full-stack-design-skills/main/.claude/skills/component-library-mastery/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/plugin87/full-stack-design-skills

Made for: Claude Code.

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 component-library-mastery

README.md
[![agentmods](https://agentmods.dev/badge/skills/plugin87/full-stack-design-skills/component-library-mastery/github.svg)](https://agentmods.dev/skills/plugin87/full-stack-design-skills/component-library-mastery)
Your own site
<a href="https://agentmods.dev/skills/plugin87/full-stack-design-skills/component-library-mastery"><img src="https://agentmods.dev/badge/skills/plugin87/full-stack-design-skills/component-library-mastery/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 component-library-mastery

Your own site · 80×15
<a href="https://agentmods.dev/skills/plugin87/full-stack-design-skills/component-library-mastery"><img src="https://agentmods.dev/badge/skills/plugin87/full-stack-design-skills/component-library-mastery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,249 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.00048 $0.01249
Opus 5.5 $0.00019 $0.00500
Sonnet 5.5 $0.00010 $0.00250
Haiku 4.5 $0.00005 $0.00125

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

Security

Grade A, and why

component-library-mastery 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.

.claude/skills/component-library-mastery/SKILL.md · 221 lines

How it starts

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

Component Library Mastery

Building, documenting, and maintaining production-quality component libraries.


Storybook Fundamentals

Setup & Configuration

npx storybook init
npm run storybook  # Dev server
npm run build-storybook  # Production build

Story Example

// Button.stories.tsx
import { Button } from './Button';
import type { Meta, StoryObj } from '@storybook/react';

const meta: Meta<typeof Button> = {
  component: Button,
  title: 'Components/Button',
  tags: ['autodocs'],
  argTypes: {
    variant: {
      control: { type: 'radio' },
      options: ['primary', 'secondary', 'ghost'],
    },
    size: {
      control: { type: 'radio' },
      options: ['sm', 'md', 'lg'],
    },
  },
};

export default meta;
type Story = StoryObj<typeof meta>;

export const Primary: Story = {
  args: { variant: 'primary', children: 'Click me' },
};

export const Secondary: Story = {
  args: { variant: 'secondary', children: 'Secondary' },
};

export const Disabled: Story = {
  args: { disabled: true, children: 'Disabled' },
};

// Interaction testing
export const Interactive: Story = {
  args: { variant: 'primary', children: 'Click' },
  play: async ({ canvasElement }) => {
    const button = canvasElement.querySelector('button');
    await userEvent.click(button);
  },
};

npm Publishing

Package Configuration

{
  "name": "@company/component-library",
  "version": "1.0.0",
  "description": "Reusable component library",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "files": ["dist"],
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "default": "./dist/index.js"
    }
  },
  "scripts": {
    "build": "tsc && esbuild src/index.ts --bundle --outfile=dist/index.js",
    "publish": "npm publish"
  }
}

Export Index

// src/index.ts
export { Button } from './components/Button';
export { Card } from './components/Card';
export type { ButtonProps } from './components/Button';
export type { CardProps } from './components/Card';

Read the full file on GitHub · 221 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 First seen · 221 lines · 48 tokens per session scan A f61c873ccce0

Subscribe to this mod's changes

component-library-mastery is a skill published in the GitHub repository plugin87/full-stack-design-skills (11 stars, last pushed 3mo ago), licensed MIT. It adds 48 tokens to every session and 1,249 once invoked, about $0.0002 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-08-31.

Related

component-library-mastery compared with skills from other repositories

component-library-mastery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
component-library-masteryplugin87/full-stack-design-skillsSkill113mo agoMITA48Claude Code
webgl-holographic-foilnexu-io/open-designSkill106kyesterdayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill106kyesterdayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill106kyesterdayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k3d agoMITA52Codex
glance-canonical-layoutsandroid/skillsSkill10kyesterdayApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.6kyesterdayMITA47Claude Code