Skip to content

TheGoat395/Codex-Skills / skills/react-component-craft

react-component-craft

Verified

Build component behavior and presentation.

FileKindSize
SKILL.mdskill md1.6 KB
agents/openai.yamlconfig266 B
references/react-component-craft-guide.mdmarkdown1.2 KB

references/react-component-craft-guide.md

View on GitHub
# React Component Craft Guide

## Lens

Good components express local design patterns and keep the page easy to revise.

## Rules

- Extract components when it improves clarity or reuse.
- Keep content close unless a content model helps editing.
- Use semantic HTML first, ARIA only when needed.
- Expose useful props, not every possible style option.
- Make fixed-format UI dimensions stable.

## Useful Patterns

- Section component with heading, copy, media, and layout concerns.
- Primitive button/link with variants and icon support.
- Reusable reveal wrapper with reduced-motion support.
- Data-driven repeated items where the content is truly repeated.

## Avoid

- Card components nested inside card components.
- Over-abstracted layout wrappers that hide the design.
- Prop soup for one-off sections.

## Acceptance Criteria

- Components are readable and fit the local design system.
- Interaction and responsive states are handled.

## Shared scope

For applicable substantial web work, reuse the [shared scoped web contract](../../website-operating-rules/references/scoped-web-contract.md) when available. Preserve current authorization, stack and requested scope; this optional reference does not require another planning or approval cycle.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall