component-design

component-design is a skill for Claude Code, Codex from AbdulmalekAlshugaa/claude-agents-fullstack. It costs 39 tokens per session (775 once invoked), scanned A, original, MIT.

A set of conventions for React components in Next.js App Router, a framework for building web applications. It covers which code runs on the server or in the browser, component inputs, Tailwind CSS styling, and loading or error states.

In plain words
What is it for?
Use it when building or restructuring Next.js UI components, defining props, choosing server or client components, styling with Tailwind, and handling asynchronous interface states.
Why use it?
It helps keep components consistent and prevents common mistakes when combining server-side and browser-side code.

Skill for Claude CodeCodex

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

Good fit Use it when building or restructuring Next.js UI components, defining props, choosing server or client components, styling with Tailwind, and handling asynchronous interface states.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdulmalekalshugaa/claude-agents-fullstack/component-design
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 AbdulmalekAlshugaa/claude-agents-fullstack --skill component-design
Clone the repo
git clone --depth 1 https://github.com/AbdulmalekAlshugaa/claude-agents-fullstack

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdulmalekalshugaa/claude-agents-fullstack/component-design"><img src="https://agentmods.dev/badge/skills/abdulmalekalshugaa/claude-agents-fullstack/component-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 775 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.00039 $0.00775
Opus 5.5 $0.00016 $0.00310
Sonnet 5.5 $0.00008 $0.00155
Haiku 4.5 $0.00004 $0.00077

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

Security

Grade A, and why

component-design 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 1mo 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-design/SKILL.md · 68 lines

How it starts

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

Component design (Next.js App Router)

Server vs client

  • Default to server components. Add 'use client' only for state, effects, event handlers, or browser APIs — and put the directive on the smallest leaf that needs it, not the page.
  • Static/one-shot data: fetch in server components (call services directly) and pass plain serializable props down. Never pass raw DB rows or Mongoose docs; prefer ISO strings over Dates; ObjectIds must be .toString()ed.
  • Data the client interacts with (refetch, pagination, mutation): the server component prefetches via queryClient.query() + HydrationBoundary, the client component consumes with useSuspenseQuery — see the tanstack-query skill. Never useEffect + fetch.
  • Fresh data after a mutation → invalidateQueries in the mutation's onSuccess (plus revalidatePath in the action if RSC-rendered data changed) — never manual refetch loops or router.refresh() as a fix.

Component structure

  • Smart/dumb split: pages and feature containers fetch and decide; leaf components in modules/<feature>/components/ are prop-driven and presentational.
  • Props are explicit and typed inline or as type Props = { ... } above the component. No React.FC.
  • Discriminated unions over optional-prop bags when a component has modes:
    type Props =
      | { state: 'loading' }
      | { state: 'error'; message: string }
      | { state: 'ready'; items: Item[] }
    
  • Never spread props into custom components (<Card {...props}> hides the contract).
  • Callbacks named onX, handlers named handleX.

Async UI states — every data-driven view handles all four

  1. Loading — loading.tsx or Suspense boundary with a skeleton
  2. Error — error.tsx or an inline error state with a retry path
  3. Empty — a designed empty state, never a blank region
  4. Populated

Forms

  • shadcn/ui form (react-hook-form + zodResolver) submitting through useMutation for the standard case; useActionState for simple RSC-only forms with no client cache to reconcile.
  • Validate with the same Zod schema on client (nice errors) and server (security).
  • Disable the submit button while isPending; surface field-level errors.

Read the full file on GitHub · 68 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. 1mo ago Changed · +1 lines f68dacd63957
  2. 1mo ago First seen · 67 lines · 39 tokens per session scan A 5895888a07ce

Subscribe to this mod's changes

component-design is a skill published in the GitHub repository AbdulmalekAlshugaa/claude-agents-fullstack (4 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 775 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

ui-checkstyle

Run the exact ESLint + Prettier + organize-imports sequence that CI's UI Checkstyle workflow runs — on just the files the PR changed — and fail the task if any file ends up with a diff. Invoke after authoring or modifying any .ts, .tsx, .js, .jsx, or .json file under openmetadata-ui/src/main/resources/ui/src/…

open-metadata/OpenMetadata · 122 tokens

tamagui-v6-config

Tamagui v6 theme system: the light/dark/accent/brand/inverse/level/active theme family, the background-active one-off key, and recipe-tree authoring with createV6Config. Use when choosing a theme for a surface, building a selected/emphasis state, or authoring a custom v6 colors pack.

tamagui/tamagui · 0 tokens

tamagui-theme-generator

Generate custom Tamagui themes, color palettes, and preview URLs. Use when creating or refining a color scheme, authoring light/dark palettes with brand accents, or previewing generated themes in the browser.

tamagui/tamagui · 48 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

building-landing-home

Compose a product or documentation home page from the @lobehub/ui/awesome landing components: LandingHero, AgentSkillCard, LogoMarquee, LandingSection, BentoGrid/BentoCard, CodeShowcase, FeatureGrid, InstallBanner and FluidGradient. Covers page structure, the lobedocs homePage hook, router links, theming the accent…

lobehub/lobe-icons · 121 tokens