claudepot-app: Command for Claude Code

.claude/commands/component.md

component is a command for Claude Code from xiaolai/claudepot-app. It costs 34 tokens per session (2,385 once invoked), scanned A, original, ISC.

A command that creates a new React user-interface component based on a specified component type or a nearby existing component.

In plain words
What is it for?
Use it to scaffold components such as selectable list rows, sidebar items, cards, and detail views in an existing React project.
Why use it?
It prevents incomplete starter code, guessed properties, and unnecessary styling. It also stops when there is not enough information to choose the right structure.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is xiaolai/claudepot-app's own configuration. It tells Claude Code how to work on claudepot-app 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 claudepot-app configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { Button } from "../components/primitives/Button";.

Reuse

Borrowing it

Nothing to install: this file belongs to xiaolai/claudepot-app. 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/xiaolai/claudepot-app/main/.claude/commands/component.md
Clone the repo
git clone --depth 1 https://github.com/xiaolai/claudepot-app

Made for: Claude Code.

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/commands/xiaolai/claudepot-app/component/github.svg)](https://agentmods.dev/commands/xiaolai/claudepot-app/component)
Your own site
<a href="https://agentmods.dev/commands/xiaolai/claudepot-app/component"><img src="https://agentmods.dev/badge/commands/xiaolai/claudepot-app/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/commands/xiaolai/claudepot-app/component"><img src="https://agentmods.dev/badge/commands/xiaolai/claudepot-app/component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,385 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.
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.02385
Opus 5.5 $0.00014 $0.00954
Sonnet 5.5 $0.00007 $0.00477
Haiku 4.5 $0.00003 $0.00238

Measured 2mo ago against content hash 60f98ab53f93, 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 2mo 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/commands/component.md · 249 lines

How it starts

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

Scaffold Component

Create a new React component grounded in one of the kinds below. The scaffold emits only what the kind requires — no TODO placeholders, no speculative props, no "fill it in later" CSS. Subtraction from a full recipe produces vestigial code; we avoid that entirely.

Inputs

$ARGUMENTS must contain:

  1. Component name — PascalCase (ProjectDriftBanner, AccountRow, KeychainStatusBadge).
  2. Kind — one of the kinds in the table below, OR
  3. Nearest existing component — if no kind fits, name an existing component in src/components/, src/sections/, or src/shell/ that is the closest structural match.

If neither a kind nor a nearest-component is given, stop and ask. Do not pick a default — there is no default. An unspecified scaffold is the exact failure mode we're replacing.

Kinds

Every kind below points to a live paper-mono component in src/ that the scaffold must mirror.

Kind Live reference
list-row-selectable src/sections/projects/ProjectsTable.tsx
sidebar-item src/components/primitives/SidebarItem.tsx, src/shell/AppSidebar.tsx
card src/sections/accounts/AccountCard.tsx
detail-grid src/sections/SettingsSection.tsx (Kv rows)
banner src/components/PendingJournalsBanner.tsx, src/sections/accounts/AnomalyBanner.tsx
toolbar src/shell/ScreenHeader.tsx (actions slot)
filter-bar src/sections/AccountsSection.tsx, src/sections/ProjectsSection.tsx
segmented-control src/sections/SettingsSection.tsx (Appearance theme picker)
modal src/components/primitives/Modal.tsx, src/sections/accounts/AddAccountModal.tsx
confirm-destructive src/components/ConfirmDangerousAction.tsx
empty-state src/sections/SessionsSection.tsx
status-tag src/components/primitives/Tag.tsx
search-field src/sections/AccountsSection.tsx filter input
context-menu src/components/ContextMenu.tsx
collapsible-section src/components/CollapsibleSection.tsx
running-op-entry src/components/RunningOpStrip.tsx
usage-row src/sections/accounts/UsageBlock.tsx
action-card src/sections/accounts/ActionCard.tsx
screen-header src/shell/ScreenHeader.tsx

Read the full file on GitHub · 249 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. 2mo ago First seen · 249 lines · 34 tokens per session scan A 60f98ab53f93

Subscribe to this mod's changes

component is a command published in the GitHub repository xiaolai/claudepot-app (127 stars, last pushed 2d ago), licensed ISC. It adds 34 tokens to every session and 2,385 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

component compared with commands from other repositories

component next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
componentxiaolai/claudepot-appCommand1272d agoISCA34Claude Code
plan-featureHoangNguyen0403/agent-skills-standardCommand583todayMITA0Claude Code
retro-learnHoangNguyen0403/agent-skills-standardCommand583todayMITA0Claude Code
vibe-agentsKhazP/vibe-coding-prompt-templateCommand3.2k1mo agoMITA0Claude Code
react-buildDekaPrayoga/AurixAgentCommand623mo agononeA59Claude Code
web-designlukaskellerstein/claude-my-marketplaceCommand31mo agononeA26Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code