component

component is a skill for Claude Code from darkroomengineering/cc-settings. It costs 34 tokens per session (757 once invoked), scanned A, original, MIT.

A skill for creating reusable React interface components, such as buttons, headers, or cards. It detects whether the project uses Next.js or React Router and follows the matching file and import conventions.

In plain words
What is it for?
Use it to create a new React component, choose its file and CSS-module paths, and use the project’s image, link, and import conventions.
Why use it?
It reduces setup mistakes when adding UI pieces to projects with different React frameworks and directory rules.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Codex.

Part of the darkroom plugin — 23 skills, 10 agents, 4 hooks shipped together

Good fit Use it to create a new React component, choose its file and CSS-module paths, and use the project’s image, link, and import conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darkroomengineering/cc-settings/component
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.

Any agent
npx skills add darkroomengineering/cc-settings --skill component
Clone the repo
git clone --depth 1 https://github.com/darkroomengineering/cc-settings

Made for: Claude Code.

Or install darkroom, the plugin that ships this one along with the rest of its 23 skills, 10 agents, 4 hooks.

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 component

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/darkroomengineering/cc-settings/component"><img src="https://agentmods.dev/badge/skills/darkroomengineering/cc-settings/component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 757 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.00034 $0.00757
Opus 5.5 $0.00014 $0.00303
Sonnet 5.5 $0.00007 $0.00151
Haiku 4.5 $0.00003 $0.00076

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

Security

Grade A, and why

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 4d 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.

skills/component/SKILL.md · 75 lines

How it starts

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

Create Darkroom Component

Create a React component following Darkroom conventions. Detect the stack first — satus (Next.js) and novus (React Router) have different conventions for client/server boundaries, image/link wrappers, and path aliases.

Step 1 — Detect stack

Read package.json:

  • dependencies.next present → Next.js / satus conventions
  • dependencies["react-router"] or devDependencies["@react-router/dev"] → React Router / novus conventions
  • Neither → ask user, or assume satus if unclear

Step 2 — Resolve target paths

Stack Component path CSS module path Image wrapper Link wrapper Path alias
satus (Next.js) components/<name>/index.tsx components/<name>/<name>.module.css import { Image } from '@/components/image' import { Link } from '@/components/link' @/
novus (React Router) components/<name>/index.tsx components/<name>/<name>.module.css Native <img> with explicit width/height/fetchPriority (or project's wrapper if it exists) import { Link } from 'react-router' ~/

Step 3 — Emit template

// components/<name>/index.tsx
// satus (Next.js): Server Component by default. Add 'use client' only if the
// component needs hooks, event handlers, or browser APIs (--client forces it).
// novus (React Router): components are isomorphic, never add 'use client'.

import s from './<name>.module.css'

interface <Name>Props {
  children?: React.ReactNode
  className?: string
}

export function <Name>({ children, className }: <Name>Props) {
  return (
    <div className={`${s.<name>} ${className ?? ''}`}>
      {children}
    </div>
  )
}
/* components/<name>/<name>.module.css */
.<name> {
  /* Component styles */
}

Before you start

If this component wraps or uses an external library (Radix, Framer Motion, GSAP, etc.):

  1. Fetch docs first — use Context7 MCP (mcp__context7__resolve-library-id → get-library-docs) for the current API in Claude or when the user configured it in standalone Codex. Otherwise use official docs through native browsing or inspect the pinned local package. cc-settings does not auto-run unpinned registry MCP packages in Codex.
  2. Check version — run bun info <package> before installing.

Read the full file on GitHub · 75 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. 4d ago Changed · -49 lines 84db27ddfcf5
  2. 1mo ago Changed · -2 tokens per session 2969a578c3a5
  3. 1mo ago First seen · 124 lines · 36 tokens per session scan A c8ed74d0a874

Subscribe to this mod's changes

component is a skill published in the GitHub repository darkroomengineering/cc-settings (52 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 757 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

artivilla/agents-config · 67 tokens

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

artivilla/agents-config · 58 tokens

next-best-practices

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling.

artivilla/agents-config · 38 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

zustand-store-ts

Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.

microsoft/skills · 42 tokens

airflow-plugins

Builds Airflow 3.1+ plugins that embed FastAPI apps, custom UI pages, React components, middleware, macros, and operator links directly into the Airflow UI. Use when building anything custom inside Airflow 3.1+ that involves Python and a browser-facing interface - creating an Airflow plugin, adding a custom UI page or…

astronomer/agents · 147 tokens