styled-components

styled-components is a skill for Claude Code from ggombee/code-forge. It costs 28 tokens per session (1,881 once invoked), scanned A, original, MIT.

A styled-components styling convention for React. styled-components lets developers write CSS alongside JavaScript components, and this convention covers theme tokens, file placement, and extending existing components.

In plain words
What is it for?
Use it when styling HTML elements or React components with styled-components, choosing between inline component styles and separate .styled.ts files.
Why use it?
It keeps styles consistent and avoids scattering raw color values or large blocks of CSS through component code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the code-forge plugin — 39 skills, 14 agents, 11 hooks, 2 MCP servers shipped together

Good fit Use it when styling HTML elements or React components with styled-components, choosing between inline component styles and separate .styled.ts files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ggombee/code-forge/styled-components
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 ggombee/code-forge --skill styled-components
Clone the repo
git clone --depth 1 https://github.com/ggombee/code-forge

Made for: Claude Code.

Or install code-forge, the plugin that ships this one along with the rest of its 39 skills, 14 agents, 11 hooks, 2 MCP servers.

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 styled-components

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ggombee/code-forge/styled-components"><img src="https://agentmods.dev/badge/skills/ggombee/code-forge/styled-components.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,881 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.00028 $0.01881
Opus 5.5 $0.00011 $0.00752
Sonnet 5.5 $0.00006 $0.00376
Haiku 4.5 $0.00003 $0.00188

Measured 2mo ago against content hash dd861e133955, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

styled-components 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.

modules/styling/styled-components/SKILL.md · 336 lines

How it starts

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

styled-components 컨벤션


기본 규칙

  • styled-components의 styled() API로 스타일 컴포넌트를 작성한다
  • 간단한 스타일은 컴포넌트 파일 하단에 정의한다
  • 복잡하거나 많은 스타일은 *.styled.ts 파일로 분리한다
  • 직접 색상값(hex, rgb) 대신 theme 토큰을 사용한다

styled() API

// ✅ 좋은 예: 기본 HTML 요소 스타일링
import styled from 'styled-components';

const Container = styled.div`
  padding: 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  background-color: ${({ theme }) => theme.colors.surface};
`;

const Title = styled.h2`
  font-size: 1.25rem;
  font-weight: 700;
  color: ${({ theme }) => theme.colors.text.primary};
`;

const Button = styled.button<{ variant?: 'primary' | 'secondary' }>`
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;

  background-color: ${({ variant, theme }) =>
    variant === 'secondary' ? theme.colors.secondary : theme.colors.primary};
  color: #ffffff;

  &:hover {
    opacity: 0.9;
  }

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }
`;
// ✅ 기존 컴포넌트 확장
import { Link } from 'react-router-dom';

const StyledLink = styled(Link)`
  color: ${({ theme }) => theme.colors.primary};
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
`;

Props를 받는 스타일 컴포넌트

interface StatusBadgeProps {
  status: 'active' | 'inactive' | 'pending';
}

const StatusBadge = styled.span<StatusBadgeProps>`
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;

  background-color: ${({ status, theme }) => {
    switch (status) {
      case 'active': return theme.colors.success.light;
      case 'inactive': return theme.colors.error.light;
      case 'pending': return theme.colors.warning.light;
    }
  }};

  color: ${({ status, theme }) => {
    switch (status) {
      case 'active': return theme.colors.success.dark;
      case 'inactive': return theme.colors.error.dark;
      case 'pending': return theme.colors.warning.dark;
    }
  }};
`;

Read the full file on GitHub · 336 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 · 336 lines · 28 tokens per session scan A dd861e133955

Subscribe to this mod's changes

styled-components is a skill published in the GitHub repository ggombee/code-forge (18 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 1,881 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

styled-components compared with skills from other repositories

styled-components next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
styled-componentsggombee/code-forgeSkill18yesterdayMITA28Claude Code
aceternity-uisecondsky/claude-skillsSkill2456d agoMITA48Claude Code
frontend-patternsrsmdt/the-startupSkill57711d agoMITA40Claude Code
ui-designOutlineDriven/odin-claude-pluginSkill401mo agoApache-2.0A46Claude Code, Codex
wicked-garden-engineering-frontendmikeparcewski/wicked-gardenSkill9todayMITA86Claude Code
fintech-frontend-engineerpranav8494/team-of-agentsSkill71mo agoMITA41Claude Code
motionTaewoooPark/UIForgeSkill103mo agoMITA164Claude Code