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.
npx skills add VersoXBT/claude-initial-setup --skill component-patternsgit clone --depth 1 https://github.com/VersoXBT/claude-initial-setupWrote 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/versoxbt/claude-initial-setup/component-patterns)<a href="https://agentmods.dev/skills/versoxbt/claude-initial-setup/component-patterns"><img src="https://agentmods.dev/badge/skills/versoxbt/claude-initial-setup/component-patterns/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/versoxbt/claude-initial-setup/component-patterns"><img src="https://agentmods.dev/badge/skills/versoxbt/claude-initial-setup/component-patterns.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.00072 | $0.01527 |
| Opus 5 | $0.00036 | $0.00763 |
| Sonnet 5 | $0.00014 | $0.00305 |
| Haiku 4.5 | $0.00007 | $0.00153 |
Grade A, and why
component-patterns 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.
How it starts
The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Component Patterns
Advanced React component composition patterns for building flexible, reusable UI APIs.
When to Use
- User is designing a reusable component API
- User asks about compound components, render props, or HOCs
- User needs to choose between controlled and uncontrolled components
- User is refactoring components for better composition
- User mentions forwardRef or ref forwarding
Core Patterns
Compound Components
Share implicit state between related components using React context. This gives consumers a declarative API without prop drilling.
import { createContext, useContext, useState, ReactNode } from 'react'
interface TabsContextType {
activeTab: string
setActiveTab: (id: string) => void
}
const TabsContext = createContext<TabsContextType | null>(null)
function useTabsContext() {
const context = useContext(TabsContext)
if (!context) {
throw new Error('Tabs compound components must be used within <Tabs>')
}
return context
}
function Tabs({ defaultTab, children }: { defaultTab: string; children: ReactNode }) {
const [activeTab, setActiveTab] = useState(defaultTab)
return (
<TabsContext.Provider value={{ activeTab, setActiveTab }}>
<div role="tablist">{children}</div>
</TabsContext.Provider>
)
}
function TabTrigger({ id, children }: { id: string; children: ReactNode }) {
const { activeTab, setActiveTab } = useTabsContext()
return (
<button role="tab" aria-selected={activeTab === id} onClick={() => setActiveTab(id)}>
{children}
</button>
)
}
function TabContent({ id, children }: { id: string; children: ReactNode }) {
const { activeTab } = useTabsContext()
if (activeTab !== id) return null
return <div role="tabpanel">{children}</div>
}
Tabs.Trigger = TabTrigger
Tabs.Content = TabContent
export { Tabs }
Usage:
<Tabs defaultTab="settings">
<Tabs.Trigger id="profile">Profile</Tabs.Trigger>
<Tabs.Trigger id="settings">Settings</Tabs.Trigger>
<Tabs.Content id="profile"><ProfileForm /></Tabs.Content>
<Tabs.Content id="settings"><SettingsForm /></Tabs.Content>
</Tabs>
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.
- 7d ago First seen · 210 lines · 72 tokens per session scan A e69b91eeb974
component-patterns is a skill published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 4mo ago), licensed MIT. It adds 72 tokens to every session and 1,527 once invoked, about $0.0004 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-09-03.
Other skills, from other repositories
dev-shadcn
Integration and customization of shadcn/ui (copy-paste React components, Radix + Tailwind). Trigger when the user wants to install shadcn, add components, customize the theme, or when shadcn/ui usage is detected in the project.
frontend-best-practices
Use this skill when creating or modifying React frontend components. It defines UI/UX, styling, and architecture standards.
handoff-to-claude-code
Use when transferring interactive design prototypes into production code implementations.
interactive-prototype
Use when building clickable, interactive web prototypes for user feedback and testing.
brand-landingpage
Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established…
wcag-audit-patterns
Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.