create-ui-component

create-ui-component is a skill for Claude Code, Codex from WojcikMM/spec-development-protocol. It costs 16 tokens per session (304 once invoked), scanned A, original, MIT.

Guidance for building reusable frontend interface components that work for people using keyboards or assistive technology and can be tested through their visible behavior.

In plain words
What is it for?
Use it when defining component inputs and states, implementing semantic markup, handling local state, writing interaction tests, and documenting complex properties.
Why use it?
It helps prevent missing loading, empty, error, keyboard, and responsive states, while keeping components consistent with the project’s design system.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/wojcikmm/spec-development-protocol/create-ui-component
Any agent
npx skills add WojcikMM/spec-development-protocol --skill create-ui-component
Clone the repo
git clone --depth 1 https://github.com/WojcikMM/spec-development-protocol

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 create-ui-component

README.md
[![agentmods](https://agentmods.dev/badge/skills/wojcikmm/spec-development-protocol/create-ui-component.svg)](https://agentmods.dev/skills/wojcikmm/spec-development-protocol/create-ui-component)
Your own site
<a href="https://agentmods.dev/skills/wojcikmm/spec-development-protocol/create-ui-component"><img src="https://agentmods.dev/badge/skills/wojcikmm/spec-development-protocol/create-ui-component.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 304 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00016 $0.00304
Opus 5 $0.00008 $0.00152
Sonnet 5 $0.00003 $0.00061
Haiku 4.5 $0.00002 $0.00030

Measured 3d ago against content hash ac96b678a569, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-ui-component 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 3d 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.

.apm/skills/create-ui-component/SKILL.md · 32 lines

What it actually says

Skill: Create UI Component

Purpose

Produce a reusable, accessible, and testable UI component that aligns with the project's design system and conventions.

Prerequisites

  • Component purpose, props, and states are defined in the design spec.
  • UI framework and design system are defined in TECH.md.

Checklist

  1. Component Design: Follow single responsibility. Define the props/interface first. Provide default props.
  2. Implementation: Keep the component pure. Extract complex logic to a custom hook. Use design system tokens, not inline styles. Handle all visual states (loading, empty, error).
  3. Accessibility (a11y): Use semantic HTML. Ensure keyboard navigation. Add ARIA attributes only when necessary. Don't rely on color alone to convey state.
  4. State Management: Use local state first. Lift state only when needed. Use global state for app-wide concerns.
  5. Testing: Test rendered output and user interactions, not implementation details. Cover all visual states. Use accessible queries. Mock external dependencies.
  6. Documentation: Add JSDoc for complex props. Export from the barrel file.

Quality Bar

  • Renders correctly in all visual states.
  • Keyboard-operable and accessible.
  • Tested for each state and user interaction.
  • No hardcoded styles outside the design system.
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. 3d ago First seen · 32 lines · 16 tokens per session scan A ac96b678a569

Subscribe to this mod's changes

create-ui-component is a skill published in the GitHub repository WojcikMM/spec-development-protocol (2 stars, last pushed 22d ago), licensed MIT. It adds 16 tokens to every session and 304 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens