Borrowing it
Nothing to install: this file belongs to Salah-XD/appCN. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Salah-XD/appCN/main/.claude/skills/new-component/SKILL.mdgit clone --depth 1 https://github.com/Salah-XD/appCNWrote 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.
[](https://agentmods.dev/skills/salah-xd/appcn/new-component)<a href="https://agentmods.dev/skills/salah-xd/appcn/new-component"><img src="https://agentmods.dev/badge/skills/salah-xd/appcn/new-component/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.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00067 | $0.01973 |
| Opus 5.5 | $0.00027 | $0.00789 |
| Sonnet 5.5 | $0.00013 | $0.00395 |
| Haiku 4.5 | $0.00007 | $0.00197 |
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 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.
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)
CLAUDE.md— architecture, monorepo map.DESIGN.md— taste layer + the SOP this skill operationalizes.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). - Category —
base(broad mobile primitive) orai(featured AI collection). If unclear, default tobaseand 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_SCALEfrom../lib/motion. - Pull haptics from
../lib/hapticsif any tactile feedback is needed. accessibilityRole+ label +hitSlopon 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 (seeprompt-input.tsx). Don't add an icon library.
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.
- 2mo ago First seen · 213 lines · 67 tokens per session scan A 33d959eef804
new-component is a skill published in the GitHub repository Salah-XD/appCN (3 stars, last pushed 5mo ago), licensed MIT. It adds 67 tokens to every session and 1,973 once invoked, about $0.0003 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.
new-component compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| new-componentSalah-XD/appCN | Skill | 3 | 5mo ago | MIT | A | 67 | Claude Code |
| ui-componentsyonatangross/orchestkit | Skill | 299 | yesterday | MIT | A | 44 | Claude Code |
| creative-tim-uicreativetimofficial/ui | Skill | 12k | 7mo ago | MIT | A | 91 | Claude Code, Codex |
| spark-uicodeweb-dev/spark-ui | Skill | 99 | 3mo ago | MIT | A | 73 | Claude Code, Codex |
| shadcn-uiwpank/ai | Skill | 12 | 8mo ago | none | A | 56 | Claude Code, Codex |
| tamagui-upgrade-v3tamagui/tamagui | Skill | 14k | today | MIT | A | 120 | Claude Code, Codex |
| tamaguitamagui/tamagui | Skill | 14k | today | MIT | A | 44 | Claude Code, Codex |