document-component

A documentation task for creating the typed metadata file for an existing appCN component. It records the component’s structure, properties, examples, visual details, and accessibility information.

In plain words
What is it for?
Use it when documenting or updating metadata for a specific existing component in the appCN UI library.
Why use it?
It keeps component documentation accurate and complete without changing the component’s implementation.

Skill for Claude CodeCodex

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 skills/salah-xd/appcn/document-component
Any agent
npx skills add Salah-XD/appCN --skill document-component
Clone the repo
git clone --depth 1 https://github.com/Salah-XD/appCN

Made for: Claude Code, Codex.

Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 917 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 $0.00069 $0.00917
Opus 5 $0.00034 $0.00458
Sonnet 5 $0.00014 $0.00183
Haiku 4.5 $0.00007 $0.00092

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

Security

Grade A, and why

document-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 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/skills/document-component/SKILL.md · 103 lines

How it starts

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

/document-component

This skill writes (or rewrites) a <slug>.meta.ts for a component that already exists in packages/ui/src/. Component code must not change — only the meta file.

Step 0 — Confirm target

Ask which component if not given. Verify:

  • packages/ui/src/{components,ai}/<slug>.tsx exists.
  • Note whether <slug>.meta.ts already exists (you may be rewriting).

Step 1 — Read the source

Read the full component .tsx. Note:

  • Header doc comment (often names the delight detail).
  • The exported <Name>Props interface — every public prop, in order, with its TSDoc.
  • Defaults (look for prop = value in the destructured signature).
  • Animations + useReducedMotion() branches (drives the delight bullet and the a11y bullet about reduced motion).
  • accessibilityRole, accessibilityLabel, accessibilityState, hitSlop — these drive the a11y section.

If ../lib/motion / ../lib/haptics are used, those are themselves shipped as registry deps and worth mentioning in anatomy / a11y where relevant.

Step 2 — Compose the meta

Use the existing metas in packages/ui/src/{components,ai}/*.meta.ts as reference for voice and depth.

import type { ComponentMeta } from "../lib/meta";

export const meta: ComponentMeta = {
  slug: "...",
  title: "...",
  category: "base" | "ai",
  description: "<one line — match the component's header doc comment if it has one>",
  anatomy: "<2–4 sentences: what's it made of, when to reach for it>",
  delight: "<the one non-obvious motion / haptic / behavior>",
  props: [
    /* every public prop, in interface order, with TSDoc mirrored into description */
  ],
  examples: [
    { title: "Basic", description: "...", code: `...` }, // canonical demo
    { title: "<feature>", description: "...", code: `...` },
    // more if the component has clearly distinct modes
  ],
  a11y: [
    /* one bullet per relevant accessibility behavior:
       roles, labels, state, hit slop, reduced-motion, focus/press feedback */
  ],
};

Read the full file on GitHub · 103 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 · 103 lines · 69 tokens per session scan A eb5a8dde5545

Subscribe to this mod's changes

document-component is a skill published in the GitHub repository Salah-XD/appCN (3 stars, last pushed 3mo ago), licensed MIT. It adds 69 tokens to every session and 917 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

shadcn-vue

Manages shadcn-vue components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn-vue, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for…

unovue/shadcn-vue · 97 tokens

shadcn-ui-flutter

A comprehensive Flutter UI library inspired by shadcn/ui. Provides high-quality, customizable, and accessible components including Buttons, Cards, Forms, and more. Use this skill when building Flutter UIs, implementing design systems, or needing specific component usage examples.

nank1ro/flutter-shadcn-ui · 58 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

maquina-ui-standards

Build consistent, accessible UIs in Rails using maquinacomponents. Use this skill when implementing UI for features, creating views, building forms, or reviewing UI specs. Triggers on view creation, UI implementation, form building, layout design, or mentions of maquinacomponents usage.

maquina-app/maquina_components · 61 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