ui-kit CLAUDE.md

A project guide for Claude Code, the coding assistant, explaining how to work on a React component library and its codebase.

In plain words
What is it for?
Use it when adding or changing UI components, writing tests, updating demos or Storybook stories, and checking builds, types, and visual results. TDD means writing a failing test before the implementation.
Why use it?
It gives the assistant the project's architecture, development rules, testing expectations, and branch strategy so changes follow the repository's conventions.

Instructions file

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 instructions/annondeveloper/ui-kit/claude-md
Clone the repo
git clone --depth 1 https://github.com/annondeveloper/ui-kit
Per session 2,348 This file is loaded in full into every session.
When invoked 2,348 The same file — it is already loaded in full.
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.02348 $0.02348
Opus 5 $0.01174 $0.01174
Sonnet 5 $0.00470 $0.00470
Haiku 4.5 $0.00235 $0.00235

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

Security

Grade A, and why

ui-kit CLAUDE.md 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 2d 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.md · 181 lines

How it starts

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

UI Kit — Claude Code Project Guide

Project Overview

@annondeveloper/ui-kit — A zero-dependency React component library with 147 components across 3 weight tiers (Lite/Standard/Premium), physics-based animations, OKLCH color system, and Aurora Fluid design identity.

Repository: https://github.com/annondeveloper/ui-kit Current: v2.8.1 on main branch Legacy: v0.4.1 on v1 branch (archived)

Development Philosophy

Quality over speed. Always. Take as many turns, tokens, and time as needed to implement things properly. Never rush. This is a revolutionary library — every component must be built with care:

  • Full TDD: write failing tests first, verify they fail, then implement
  • Run spec compliance review AND code quality review after each task
  • One task at a time — don't combine phases to save time
  • Verify thoroughly: tests, build, typecheck, visual inspection
  • Fix issues before moving on — never leave known problems for later
  • Write comprehensive tests including edge cases, not just happy-path
  • Build demo pages and Storybook stories alongside components, not deferred
  • Visually inspect every component in browser after implementation

Key Architecture Decisions (v2)

  • Zero external dependencies — only peer deps are react ^19 and react-dom ^19
  • Embedded scoped CSSuseStyles() hook auto-injects CSS via adoptedStyleSheets
  • Dual-mode CSS — auto-inject for React users, standalone .css files for others
  • OKLCH color system — perceptually uniform, with relative color syntax for theme generation
  • Aurora Fluid design — deep atmospheric surfaces, ambient glows, ethereal color washes
  • Physics-based animations — real spring solver (differential equation), not approximations
  • Motion intensity--motion CSS property (0=none, 1=subtle, 2=expressive, 3=cinematic)
  • Progressive enhancement — modern CSS features with @supports fallbacks
  • Built-in form enginecreateForm(), useForm(), validators, zero external deps
  • Container-first responsive — components adapt to container, not viewport

Read the full file on GitHub · 181 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. 2d ago First seen · 181 lines · 2,348 tokens per session scan A 60fd8df0cc7f

Subscribe to this mod's changes

ui-kit CLAUDE.md is an instructions file published in the GitHub repository annondeveloper/ui-kit (0 stars, last pushed 2mo ago), licensed MIT. It adds 2,348 tokens to every session, about $0.0117 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.