component-composition

component-composition is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 30 tokens per session (1,850 once invoked), scanned A, original, Apache-2.0.

A method for organising web interface components into reusable levels, from small controls to complete pages. It promotes reusing shared components before creating new ones and keeping each component in the right layer.

In plain words
What is it for?
Use it when adding screens or components to a web application, deciding where a new component belongs, or extending a shared component library.
Why use it?
It reduces duplicated interface code and makes new screens easier to assemble and reuse consistently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding screens or components to a web application, deciding where a new component belongs, or extending a shared component library.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/component-composition
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 makifbaysal/tasktrooper --skill component-composition
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

Made for: Claude Code, Codex.

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-composition

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/component-composition"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/component-composition.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,850 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.00030 $0.01850
Opus 5.5 $0.00012 $0.00740
Sonnet 5.5 $0.00006 $0.00370
Haiku 4.5 $0.00003 $0.00185

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

Security

Grade A, and why

component-composition 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 8d 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.

catalog/agents/frontend-developer/skills/component-composition/SKILL.md · 109 lines

How it starts

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

Component Composition (Atomic Design)

Overview

All web UI follows Atomic Design on top of a shared component library. The quality bar is reuse and correct placement: a new screen is assembled from existing atoms and molecules, and anything genuinely new is added at the right level so the next screen reuses it too.

Core principle: Reuse before you build, and place new components at the level the import-direction rule expects — ui → atoms → molecules → organisms → templates → pages.

No design system yet in this repo (no tokens, no components/ levels, no INVENTORY.md)? Lay the foundation with web-design-system-foundation first — this skill assumes it already exists.

The Levels

Level What Web examples
ui/ Vendor layer: generated/wrapped Radix-shadcn primitives Dialog, Popover, Tabs, Tooltip
Atom Smallest reusable UI, no app logic, variants only Button, Input, Label, Badge, Icon, Heading, Text, Container, Stack, Link
Molecule A few atoms as one reusable unit FormField (label+input+error), NavLink, PriceTag, Rating, SearchBar
Organism A page section composed of molecules/atoms (may contain another organism) SiteHeader, MobileNav, PricingTable, ContactForm, SiteFooter
Template Page skeleton: owns the grid + breakpoints, no data MarketingLayout, DashboardLayout
Page Route component: data + state wiring, composes templates/organisms PricingPage, ProjectBoardPage

The reuse procedure (every time, before writing a component)

  1. Read src/components/INVENTORY.md.
  2. Grep the level folders for the noun (grep -ri button src/components).
  3. Found a close match → reuse it, or extend it with a new variant backward-compatibly (add a cva variant, don't change an existing one's output).
  4. Nothing close → create it at the right level (see placement below) and add its INVENTORY.md line in the same commit.

Placement decision list

  • Does it fetch data or own app state? → page (or a container that wraps a page-level hook).
  • Is it a page skeleton with no content, owning only the grid/breakpoints? → template.
  • Several molecules/atoms forming a page section (pricing grid, contact form, header)? → organism.
  • Label + input + error, or icon + text pairing — two or three atoms as one reusable unit? → molecule.
  • A single element with variants and no composition (one button, one badge)? → atom.
  • A generated/wrapped Radix or shadcn primitive with no app-specific variants of its own? → ui/.

Read the full file on GitHub · 109 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. 8d ago First seen · 109 lines · 30 tokens per session scan A a2e70a48a0f5

Subscribe to this mod's changes

component-composition is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 30 tokens to every session and 1,850 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-10-05.

Related

Other skills, from other repositories

wireframe

Produce low-fidelity black-and-white UI wireframes as SVGs or viewer pages. Use when asked to wireframe, sketch a screen, draft a layout, make a low-fi mockup, or publish wireframes.

paperclipai/paperclip · 47 tokens

design-critique

Give a structured product design critique — user job clarity, hierarchy, affordance, error states, accessibility, and consistency — focused on what to change, in what order, and why.

paperclipai/paperclip · 42 tokens

paperclip-capsules

Generate, implement, or review Paperclip capsule visuals. Use for capsule art, agent capsules, heartbeat status capsules, identicons, capsule banks, or brand-usage validation.

paperclipai/paperclip · 41 tokens

presentation-template-designer

Plan reusable presentation templates from a creative brief, optional brand assets, or an existing deck. Use when Codex needs to define a slide inventory, choose an editable presentation toolchain, author or validate a template manifest, adapt a visual system for PowerPoint or Google Slides, or prepare a reviewed…

Prompthon-IO/agent-systems-handbook · 70 tokens

design-before-build-gate

Enforces a design/spec approval gate before production implementation. Use when UI, UX, product flows, architecture, API shape, prototypes, visual direction, or user-facing behaviour need signoff before builders write production code.

joelbrilliant/agentic-delivery-skills · 49 tokens

architecture-design

Use this skill to design system architecture with documented trade-offs and decisions before any implementation begins. Activates when a feature, system, or component requires non-trivial structural decisions about how components interact, what data stores to use, or how to decompose a problem.

karthikrshet/aiskills · 60 tokens