new-component

new-component is a skill for Claude Code from Salah-XD/appCN. It costs 67 tokens per session (1,973 once invoked), scanned A, original, MIT.

A step-by-step guide for adding a new appCN component to a React Native and Expo component library. It covers the component code, typed metadata, exports, demos, registry entries, verification, and a changeset.

In plain words
What is it for?
Use it when creating or scaffolding an appCN component, including its source, showcase demo, library listings, checks, and release note.
Why use it?
It reduces the chance of forgetting one of the many files and registration steps needed to make a new reusable component complete and discoverable.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Not installable on its own: it reads a path above its own folder, which only exists inside its repository. The line is imports ← react, react-native, reanimated, ../lib/cn, ../lib/motion, optional ../lib/haptics.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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 new-component

README.md
[![agentmods](https://agentmods.dev/badge/skills/salah-xd/appcn/new-component.svg)](https://agentmods.dev/skills/salah-xd/appcn/new-component)
Your own site
<a href="https://agentmods.dev/skills/salah-xd/appcn/new-component"><img src="https://agentmods.dev/badge/skills/salah-xd/appcn/new-component.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,973 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.1 $0.00067 $0.01973
Opus 5 $0.00034 $0.00986
Sonnet 5 $0.00013 $0.00395
Haiku 4.5 $0.00007 $0.00197

Measured 6d ago against content hash 33d959eef804, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

new-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 6d 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/new-component/SKILL.md · 213 lines

How it starts

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

/new-component

You are about to add a new component to appCN — a shadcn-philosophy component library for React Native + Expo. Read this entire skill before asking the user any questions.

Read these first (if you haven't this session)

  1. CLAUDE.md — architecture, monorepo map.
  2. DESIGN.md — taste layer + the SOP this skill operationalizes.
  3. AGENTS.md — agent-specific rules.

Step 0 — Gather the spec from the user

Ask only what's missing. You need:

  • Slug (kebab-case, e.g. bottom-sheet).
  • Categorybase (broad mobile primitive) or ai (featured AI collection). If unclear, default to base and ask.
  • One-line description.
  • Anatomy — 2–4 sentences: what's it made of, when to reach for it.
  • The delight detail — the one non-obvious motion / haptic / behavior that earns the component's place. If the user can't articulate it, push back. Components without a delight detail don't get merged.
  • Props sketch — even rough is fine; you'll refine in step 2.

Step 1 — Author packages/ui/src/{components,ai}/<slug>.tsx

File shape (mirror the existing components):

header doc comment   ← what it is + the delight detail, in one breath
imports              ← react, react-native, reanimated, ../lib/cn, ../lib/motion, optional ../lib/haptics
cva blocks           ← <name>Variants / <name>TextVariants (only if there are variants)
Props interface      ← exported, named <Name>Props
component            ← exported, named <Name>
local sub-components ← Dot, Caret, icons… below the main component
named exports        ← incl. variants

Non-negotiables (DESIGN.md):

  • NativeWind classes only (no StyleSheet).
  • Reanimated for motion, gesture-handler for gestures.
  • Pull durations / easings / springs / PRESS_SCALE from ../lib/motion.
  • Pull haptics from ../lib/haptics if any tactile feedback is needed.
  • accessibilityRole + label + hitSlop on every interactive surface.
  • Honor useReducedMotion() — fall back to crossfade or settled state.
  • Dark-mode first; use token classes (bg-primary, text-muted-foreground) only.
  • Icons: draw small glyphs from Views/borders (see prompt-input.tsx). Don't add an icon library.

Read the full file on GitHub · 213 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. 6d ago First seen · 213 lines · 67 tokens per session scan A 33d959eef804

Subscribe to this mod's changes

new-component is a skill published in the GitHub repository Salah-XD/appCN (3 stars, last pushed 3mo ago), licensed MIT. It adds 67 tokens to every session and 1,973 once invoked, about $0.0003 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

ui-components

UI component library patterns for shadcn/ui and Radix Primitives. Use when building accessible component libraries, customizing shadcn components, using Radix unstyled primitives, or creating design system foundations.

yonatangross/orchestkit · 44 tokens

coss-particles

Index of all COSS UI particle examples. Use when implementing UI features to find copy-paste-ready component patterns built on coss primitives. Each particle has a description and a JSON URL for easy installation.

cosscom/coss · 46 tokens

coss

Helps implement coss UI components correctly. Use when building UIs with coss primitives and patterns (buttons, dialogs, selects, forms, menus, tabs, segmented controls, inputs, toasts, etc.), migrating from shadcn/Radix to coss/Base UI, composing trigger-based overlays, or troubleshooting coss component behavior.…

cosscom/coss · 85 tokens

creative-tim-ui

Creative Tim UI block library assistant. Use when adding, generating, or modifying UI blocks/components/pages from creative-tim.com/ui. Covers design philosophy (minimalism, the 95% rule, research-first), block discovery, both CLI install methods, PRO API key setup, and Creative Tim design rules (orange brand…

creativetimofficial/ui · 91 tokens

spark-ui

Install and compose Spark UI signature React components such as Widget Stack, Dynamic Island, Interactive Pets, Tactile Highlight, Shimmer Text, Image Trail, Animated Gradient, Ghost Ether, Logo Carousel, QR Code, Receipt, Number Ticker, Spotify Card, Masonry, Keyboard, and Hello from the Spark UI shadcn-compatible…

codeweb-dev/spark-ui · 73 tokens

shadcn-ui

Build accessible, customizable UIs with shadcn/ui, Radix UI, and Tailwind CSS. Use when setting up shadcn/ui, installing components, building forms with React Hook Form + Zod, customizing themes, or implementing component patterns.

wpank/ai · 56 tokens