ui-component-patterns

ui-component-patterns is a skill for Claude Code, Codex from Coinyak/onchainai. It costs 133 tokens per session (2,540 once invoked), scanned A, original, MIT.

A guide for designing reusable frontend components, such as buttons, cards, dialogs, form fields, and navigation patterns.

In plain words
What is it for?
Use it when defining component APIs, variants, slots, wrappers, ownership of state, documentation, and verification work.
Why use it?
It helps teams decide what belongs in a shared component, what stays local, and how state and composition should be divided.

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/coinyak/onchainai/ui-component-patterns
Any agent
npx skills add Coinyak/onchainai --skill ui-component-patterns
Clone the repo
git clone --depth 1 https://github.com/Coinyak/onchainai

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/coinyak/onchainai/ui-component-patterns.svg)](https://agentmods.dev/skills/coinyak/onchainai/ui-component-patterns)
Your own site
<a href="https://agentmods.dev/skills/coinyak/onchainai/ui-component-patterns"><img src="https://agentmods.dev/badge/skills/coinyak/onchainai/ui-component-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,540 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.00133 $0.02540
Opus 5 $0.00067 $0.01270
Sonnet 5 $0.00027 $0.00508
Haiku 4.5 $0.00013 $0.00254

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

Security

Grade A, and why

ui-component-patterns 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 4d 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.

.agents/skills/ui-component-patterns/SKILL.md · 226 lines

How it starts

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

UI Component Patterns

Use this skill when the job is to classify the reusable component problem, choose one primary component packet, and leave behind a short component-architecture brief instead of a giant React-pattern dump.

The job is not to catalog every possible component pattern. The job is to:

  1. identify the reusable component pressure first,
  2. choose one bounded packet,
  3. keep shared-vs-local and parent-vs-component ownership visible,
  4. separate alternate-root composition from broader system or accessibility work,
  5. route neighboring frontend concerns honestly.

Read these support docs first:

When to use this skill

  • A team has too many similar buttons, cards, dialogs, field wrappers, or nav patterns and needs one shared primitive or component-family boundary.
  • A request mixes variants, slots, controlled-vs-uncontrolled behavior, wrappers, and docs expectations and needs routing before implementation.
  • You need to decide whether something should stay product-local, become a shared primitive, or split into primitive plus wrapper.
  • A component API is growing escape hatches and someone needs to shrink it into one honest packet.
  • The tricky part is alternate-root composition (button vs a/router Link, slotted child, custom wrapper) rather than pure styling.
  • Storybook/examples exist, but the docs/verification packet for states, usage rules, or edge cases is still unclear.

When not to use this skill

  • The main task is token governance, visual-language rules, primitive naming policy, or cross-product system directiondesign-system
  • The main task is keyboard/focus behavior, semantics, labels, announcements, contrast, or manual accessibility remediationweb-accessibility
  • The main task is viewport/container adaptation, breakpoint strategy, reflow, or responsive mediaresponsive-design
  • The main task is broader app/workflow state ownership, server/client boundaries, or cross-screen state coordinationstate-management
  • The main task is rerender churn, hydration, route performance, or bundle/runtime behaviorreact-best-practices
  • The reusable component boundary is already settled and the real job is just implementing it; in that case implement directly instead of reopening the architecture decision

Read the full file on GitHub · 226 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 226 lines · 133 tokens per session scan A 6acac068503c

Subscribe to this mod's changes

ui-component-patterns is a skill published in the GitHub repository Coinyak/onchainai (1 stars, last pushed 1mo ago), licensed MIT. It adds 133 tokens to every session and 2,540 once invoked, about $0.0007 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

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…

shadcn-ui/ui · 94 tokens

magic-ui

Use this skill when users want to add, customize, or troubleshoot Magic UI components in React/Next.js projects. It covers component selection, shadcn registry installation (@magicui/), integration patterns, and practical quality checks for accessibility and maintainability.

magicuidesign/magicui · 56 tokens

kiranism-shadcn-dashboard

Guide for building features, pages, tables, forms, themes, and navigation in this Next.js 16 shadcn dashboard template. Use this skill whenever the user wants to add a new page, create a feature module, build a data table, add a form, configure navigation items, add a theme, set up RBAC access control, or work with…

Kiranism/next-shadcn-dashboard-starter · 142 tokens

audit

Perform comprehensive audit of interface quality across accessibility, performance, theming, and responsive design. Generates detailed report of issues with severity ratings and recommendations.

yournextstore/yournextstore · 31 tokens

critique

Evaluate design effectiveness from a UX perspective. Assesses visual hierarchy, information architecture, emotional resonance, and overall design quality with actionable feedback.

yournextstore/yournextstore · 30 tokens

omd:autopilot

One-prompt autonomous product design and implementation. Use automatically for broad greenfield UI requests such as 'from scratch', '새 제품/화면을 알아서 만들어줘', or requests that delegate DESIGN.md creation. It decides whether to reuse, establish, refresh, or skip a project design system; asks at most one consequential…

kwakseongjae/oh-my-design · 99 tokens