vercel-composition-patterns
하는 일
이 스킬은 코드가 커져도 쉽게 바꿀 수 있도록 React 컴포넌트를 설계하는 패턴을 공유합니다. 인터페이스 부품을 재사용 가능하고 명확하게 만들고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓React 컴포넌트에 켜짐·꺼짐 설정이 많아서 읽기 어려울 때.
- ✓여러 페이지에서 쓸 공유 컴포넌트 라이브러리를 만들 때.
- ✓앱에서 컴포넌트 상태와 컨텍스트가 어떻게 배치되어 있는지 검토할 때.
스킬 링크
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/vercel-composition-patterns/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 React 버튼이 긴 참/거짓 설정 목록을 쓰지 않도록 리팩터링해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 컴포넌트를 함께 동작하는 부품으로 나누고, 공유 상태를 위로 끌어올리며, 알맞은 곳에 React 19 기능을 쓰는 규칙을 제공합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
React Composition Patterns
Composition patterns for building flexible, maintainable React components. Avoid boolean prop proliferation by using compound components, lifting state, and composing internals. These patterns make codebases easier for both humans and AI agents to work with as they scale.
Extended reference:
AGENTS.mdin this directory is the long-form upstream guide (vendored from Vercel). It is supplementary reference material scoped to this skill only —SKILL.mdis the loadable entry point and the authority. It does not override or extend the repository-rootAGENTS.md/AGENT_GUIDE.md.
When to Apply
Reference these guidelines when:
- Refactoring components with many boolean props
- Building reusable component libraries
- Designing flexible component APIs
- Reviewing component architecture
- Working with compound components or context providers
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Component Architecture | HIGH | architecture- |
| 2 | State Management | MEDIUM | state- |
| 3 | Implementation Patterns | MEDIUM | patterns- |
| 4 | React 19 APIs | MEDIUM | react19- |
Quick Reference
1. Component Architecture (HIGH)
architecture-avoid-boolean-props- Don't add boolean props to customize behavior; use compositionarchitecture-compound-components- Structure complex components with shared context
2. State Management (MEDIUM)
state-decouple-implementation- Provider is the only place that knows how state is managedstate-context-interface- Define generic interface with state, actions, meta for dependency injectionstate-lift-state- Move state into provider components for sibling access
3. Implementation Patterns (MEDIUM)
patterns-explicit-variants- Create explicit variant components instead of boolean modespatterns-children-over-render-props- Use children for composition instead of renderX props
4. React 19 APIs (MEDIUM)
⚠️ React 19+ only. Skip this section if using React 18 or earlier.
react19-no-forwardref- Don't useforwardRef; useuse()instead ofuseContext()
How to Use
Read individual rule files for detailed explanations and code examples:
rules/architecture-avoid-boolean-props.md
rules/state-context-interface.md
Each rule file contains:
- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- Additional context and references
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
자주 묻는 질문
React에만 해당하나요?
네. 이 패턴은 React 컴포넌트를 위한 것이며, 스킬이 다루는 React 19 API 변경 사항도 포함합니다.
복합 컴포넌트란 무엇인가요?
함께 동작하는 부품의 묶음으로, 예를 들어 자체 항목과 트리거가 있는 메뉴가 그렇습니다. 설정이 많은 하나의 컴포넌트와는 다릅니다.
전체 가이드는 어디에 있나요?
같은 폴더에 있는 확장 참고 파일을 가리켜, 더 자세한 내용을 볼 수 있게 합니다.
상세 정보
작성자의 원본 설명
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.
repo: calesthio/OpenMontage
인기도
- GitHub 스타
- 75k
- 순위
- #2695
- 라이선스
- AGPL-3.0
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
3d-asset-generation
75k카탈로그, 텍스트·이미지 3D 변환 도구, Blender를 활용해 장면에 쓸 3D 오브젝트를 만드는 방법을 고르도록 돕습니다.
acestep
75k오픈소스 ACE-Step 음악 생성기를 사용해 영상에 쓸 배경 음악, 노래, 징글, 스템을 만들도록 돕습니다.
agents
75kElevenLabs로 고객 응대 봇이나 대화형 음성 캐릭터 같은 음성 AI 에이전트를 만들도록 돕습니다.
ai-video-gen
75k텍스트 설명이나 참고 이미지로 AI 영상 클립을 만들며, 여러 영상 생성 서비스 중에서 고르도록 돕습니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.