just-works: Skill for Claude Code

.claude/skills/shadcn-ui-coding/SKILL.md

shadcn-ui-coding is a skill for Claude Code from Dynokostya/just-works. It costs 68 tokens per session (2,087 once invoked), scanned A, original, Apache-2.0.

A set of coding rules for shadcn/ui, a local collection of interface components built with React and Radix UI. It covers component structure, styling, forms, tables, themes, and command-line conventions.

In plain words
What is it for?
Use it when generating or editing shadcn/ui components, especially dialogs, menus, selects, tabs, forms, and data tables.
Why use it?
It helps prevent broken imports, accessibility problems, and invalid compound-component structures in shadcn/ui projects.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Dynokostya/just-works's own configuration. It tells Claude Code how to work on just-works 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 just-works configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Dynokostya/just-works. 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/Dynokostya/just-works/main/.claude/skills/shadcn-ui-coding/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Dynokostya/just-works

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 shadcn-ui-coding

README.md
[![agentmods](https://agentmods.dev/badge/skills/dynokostya/just-works/shadcn-ui-coding/github.svg)](https://agentmods.dev/skills/dynokostya/just-works/shadcn-ui-coding)
Your own site
<a href="https://agentmods.dev/skills/dynokostya/just-works/shadcn-ui-coding"><img src="https://agentmods.dev/badge/skills/dynokostya/just-works/shadcn-ui-coding/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 shadcn-ui-coding

Your own site · 80×15
<a href="https://agentmods.dev/skills/dynokostya/just-works/shadcn-ui-coding"><img src="https://agentmods.dev/badge/skills/dynokostya/just-works/shadcn-ui-coding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,087 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 99
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 99
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 100
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00068 $0.02087
Opus 5.5 $0.00027 $0.00835
Sonnet 5.5 $0.00014 $0.00417
Haiku 4.5 $0.00007 $0.00209

Measured 17d ago against content hash 8539530cd867, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shadcn-ui-coding 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 17d 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/shadcn-ui-coding/SKILL.md · 121 lines

How it starts

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

shadcn/ui coding

Project conventions override these defaults. Read components.json first: style (its prefix names the primitive library), tailwind, aliases, rsc. Then read the local source in components/ui/ and package.json for the React version; the local source is the truth for props and structure.

Primitive library

The style prefix in components.json tells you which primitives the components wrap: base-* is Base UI, radix-* and the older new-york are Radix UI, aria-* is React Aria. This changes the API:

Radix UI Base UI
Swap the rendered element asChild on the parent render={<Button variant="outline" />}
Package unified radix-ui (older projects: @radix-ui/react-*) @base-ui/react

Both libraries use onValueChange for Select-like inputs and onCheckedChange for Checkbox and Switch. React Aria projects: read the local source before composing. For any component, npx shadcn@latest docs <component> prints its usage and its Composition tree (what wraps what).

Never rules

  • Never import shadcn components from npm. shadcn is not a package. Import from the alias in components.json: import { Button } from "@/components/ui/button".
  • Never flatten compound components. Dialog, DropdownMenu, Select, AlertDialog, Menubar, NavigationMenu, ContextMenu, and Tabs need their nested structure (for example Dialog > DialogContent > DialogHeader > DialogTitle); removing wrappers breaks ARIA roles and keyboard navigation.
  • Never nest a <Button> inside a Trigger. Triggers render their own <button>, so nesting produces invalid HTML. Use asChild (Radix) or render (Base UI) to render your element instead.
// Radix
<DialogTrigger asChild><Button variant="outline">Open</Button></DialogTrigger>
// Base UI
<DialogTrigger render={<Button variant="outline" />}>Open</DialogTrigger>
  • Never hardcode colors or compose className with template literals. Use semantic tokens (bg-primary text-primary-foreground) and cn(); the rules live in tailwind-css-coding.
  • Never spread {...field} on Select, Checkbox, or Switch. They take onValueChange / onCheckedChange, not onChange, so the spread's onChange is silently ignored. Wire value and the handler explicitly.
  • Never define DataTable columns inside the component. A new array every render triggers TanStack Table's referential-equality checks and loops. Define them at module level.
  • Never build custom modals, dropdowns, or tooltips. Use Dialog, DropdownMenu, Tooltip, Popover, or Sheet; hand-built versions lack focus trapping, keyboard navigation, and portals.
  • Never nest TooltipProvider. Mount it once at the app root.
  • Never invent props. Components only have the props in their local source.
  • Never use npx shadcn-ui@latest. The CLI is npx shadcn@latest.
  • Never use the old Radix toast component (deprecated in favor of Sonner). Use the toast library the project already has (Sonner, or the newer toast component on Base UI styles), and add one with npx shadcn@latest add sonner only if none exists.

Read the full file on GitHub · 121 lines

Files

What ships with it

2 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. 17d ago Changed · -243 lines · -3 tokens per session 8539530cd867
  2. 2mo ago First seen · 364 lines · 71 tokens per session scan A 1538e50795ed

Subscribe to this mod's changes

shadcn-ui-coding is a skill published in the GitHub repository Dynokostya/just-works (14 stars, last pushed 10d ago), licensed Apache-2.0. It adds 68 tokens to every session and 2,087 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-09-04.

Related

shadcn-ui-coding compared with skills from other repositories

shadcn-ui-coding next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shadcn-ui-codingDynokostya/just-worksSkill1410d agoApache-2.0A68Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
antigravity-design-expertsickn33/agentic-awesome-skillsSkill49kyesterdayMITA39Claude Code
tamagui-v6-configtamagui/tamaguiSkill14ktodayMITA0Claude Code, Codex
tamagui-theme-generatortamagui/tamaguiSkill14ktodayMITA48Claude Code, Codex
liquid-metal-borderMengTo/SkillsSkill7.3kyesterdayMITA97Codex
frontend-ui-dark-tsmicrosoft/skillsSkill3.2kyesterdayMITA48Claude Code