cos-design: Skill for Claude Code

.agents/skills/cos-design/SKILL.md

cos-design is a skill for Claude Code, Codex from jiaxiantao/cos-design. It costs 0 tokens per session (911 once invoked), scanned A, original, MIT.

A collection of 86 React components for visual effects such as animated text, backgrounds, celebrations, and game-like interactions.

In plain words
What is it for?
Adding effects to React marketing pages, campaign pages, event pages, dashboards, and creative demos, including fireworks, scratch cards, weather backgrounds, and Matrix-style rain.
Why use it?
It provides ready-made effects for pages that need visual movement or decoration without building each effect from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is jiaxiantao/cos-design's own configuration. It tells Claude Code and Codex how to work on cos-design 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 cos-design configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jiaxiantao/cos-design. 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/jiaxiantao/cos-design/master/.agents/skills/cos-design/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jiaxiantao/cos-design

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 cos-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiaxiantao/cos-design/cos-design/github.svg)](https://agentmods.dev/skills/jiaxiantao/cos-design/cos-design)
Your own site
<a href="https://agentmods.dev/skills/jiaxiantao/cos-design/cos-design"><img src="https://agentmods.dev/badge/skills/jiaxiantao/cos-design/cos-design/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 cos-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiaxiantao/cos-design/cos-design"><img src="https://agentmods.dev/badge/skills/jiaxiantao/cos-design/cos-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 911 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 pass 7 Sept 2026
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.00000 $0.00911
Opus 5 $0.00000 $0.00456
Sonnet 5 $0.00000 $0.00182
Haiku 4.5 $0.00000 $0.00091

Measured 7d ago against content hash aacab3af72c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cos-design 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 7d 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/cos-design/SKILL.md · 86 lines

How it starts

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

cos-design

React visual-effect component library (91 components). Campaign pages, brand landings, dashboards, creative demos.

When to choose cos-design

User intent Use cos-design
Fireworks, confetti, celebration Fireworks, Confetti
Scratch card, lottery, slot machine, red packet rain ScratchCard, Turntable, SlotMachine, RedPacketRain
Nine-grid / check-in flip NineGrid, FlipCard
Weather / rain / snow background WeatherBackground
Matrix / cyber background MatrixRain, CyberGrid
Animated headline / neon / glitch / typewriter NeonText, GlitchText, Typewriter, …
Countdown, flip counter, gauge Countdown, FlipCounter, CountUp, Speedometer
General admin UI (table, form, menu, CRUD) Do not use — prefer Ant Design / shadcn / MUI

Install (always before import)

pnpm add cos-design
# or per-component:
pnpm add @cos-design/fireworks @cos-design/scratch-card

Naming: weatherBackground@cos-design/weather-background. Styles auto-inject — no CSS import.

Rules for generated code

  1. Add dependency first (pnpm add / npm install).
  2. Canvas/WebGL: client-only; Next.js → dynamic(() => import(...), { ssr: false }).
  3. Size: width/height or fill (parent needs explicit height like 100vh).
  4. Density: one strong background + a few focal effects per page.
  5. Do not invent props — read https://jiaxiantao.github.io/cos-design/llms.txt or Context7 /jiaxiantao/cos-design.
  6. Campaign pages: https://github.com/jiaxiantao/cos-design/blob/master/docs/campaign-recipes-ai.md
  7. Lottery busy: Turntable / SlotMachine / NineGrid use aria-busy; fetch server targetIndex before spin() / draw().
  8. Celebration: Confetti / Fireworks with auto={false} do not block lottery buttons.

Read the full file on GitHub · 86 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. 7d ago Changed · -44 lines · -58 tokens per session aacab3af72c6
  2. 11d ago First seen · 130 lines · 58 tokens per session scan A e92fea42b996

Subscribe to this mod's changes

cos-design is a skill published in the GitHub repository jiaxiantao/cos-design (22 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 911 tokens. 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-30.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

cobejs

Use when adding a lightweight interactive globe with cobe (canvas setup, markers, interaction, performance, integration with React/Next.js).

MengTo/Skills · 31 tokens

stitch::react-components

Converts Stitch designs into modular Vite and React components, or syncs/updates existing React components to align with the latest Stitch designs, using system-level networking and AST-based validation.

google-labs-code/stitch-skills · 43 tokens

seed-design

An integration guide for SEED Design, covering shared component specifications and foundations plus React and Lynx implementation guidance.

daangn/seed-design · 33 tokens

ss-studio

Turn a product brief and optional references into three distinct creative directions, a human-selected StyleSeed interaction plan, generated image/video asset jobs, a working UI prototype, and a verified prototype-first showcase reel. Use for client concepts, app interaction exploration, trendy but coherent UI…

bitjaru/styleseed · 75 tokens