Communitygithub.com

alfathafp/portofolio-web-design

확장 가능한 React 컴포지션 패턴. 부울 prop이 난무하는 컴포넌트 리팩토링, 유연한 컴포넌트 라이브러리 구축, 재사용 가능한 API 설계 시 사용합니다. 복합 컴포넌트, render props, 컨텍스트 프로바이더 또는 컴포넌트 아키텍처와 관련된 작업에서 트리거됩니다. React 19 API 변경사항을 포함합니다.

portofolio-web-design란 무엇인가요?

React 컴포지션 패턴에 대한 이 기능은 부울 prop 남용을 방지하고 유연하고 유지보수하기 쉬운 React 컴포넌트를 구축하기 위한 모범 사례를 제공합니다. 복합 컴포넌트, 상태 끌어올리기, 내부 조합을 사용하여 컴포넌트 설계를 단순화합니다. 이 패턴은 코드베이스가 확장됨에 따라 사람과 AI 에이전트 모두가 더 쉽게 작업할 수 있도록 설계되었습니다. 이는 Claude Code, Cursor, Codex와 같은 플랫폼에서 사용할 수 있으며, 컴포넌트 아키텍처, 상태 관리, 구현 패턴, React 19 API 변경 사항을 다루는 우선순위별 규칙 범주를 포함합니다. 각 규칙 파일은 상세한 설명과 코드 예제를 제공하여 개발자가 올바른 구성 원칙을 실무에 적용할 수 있도록 안내합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/vercel-composition-patterns

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

React 컴포지션 패턴

유연하고 유지보수하기 쉬운 React 컴포넌트를 구축하기 위한 컴포지션 패턴입니다. 복합 컴포넌트, 상태 끌어올리기 및 내부 조합을 사용하여 부울 prop의 확산을 방지합니다. 이러한 패턴은 코드베이스가 확장됨에 따라 사람과 AI 에이전트가 모두 더 쉽게 작업할 수 있도록 합니다.

적용 시기

다음 경우에 이 지침을 참조하세요.

  • 많은 부울 prop이 있는 컴포넌트 리팩토링
  • 재사용 가능한 컴포넌트 라이브러리 구축
  • 유연한 컴포넌트 API 설계
  • 컴포넌트 아키텍처 검토
  • 복합 컴포넌트 또는 컨텍스트 프로바이더 작업

우선순위별 규칙 범주

우선순위범주영향접두사
1컴포넌트 아키텍처높음architecture-
2상태 관리중간state-
3구현 패턴중간patterns-
4React 19 API중간react19-

빠른 참조

1. 컴포넌트 아키텍처 (높음)

  • architecture-avoid-boolean-props - 동작을 사용자 정의하기 위해 부울 prop을 추가하지 말고 컴포지션을 사용하세요.
  • architecture-compound-components - 공유 컨텍스트로 복잡한 컴포넌트를 구조화하세요.

2. 상태 관리 (중간)

  • state-decouple-implementation - 프로바이더는 상태가 어떻게 관리되는지 아는 유일한 곳입니다.
  • state-context-interface - 의존성 주입을 위해 상태, 액션, 메타를 포함한 일반 인터페이스를 정의하세요.
  • state-lift-state - 형제 접근을 위해 상태를 프로바이더 컴포넌트로 이동시키세요.

3. 구현 패턴 (중간)

  • patterns-explicit-variants - 부울 모드 대신 명시적인 변형 컴포넌트를 만드세요.
  • patterns-children-over-render-props - renderX props 대신 컴포지션을 위해 children을 사용하세요.

4. React 19 API (중간)

⚠️ React 19+ 전용입니다. React 18 이하를 사용하는 경우 이 섹션을 건너뛰세요.

  • react19-no-forwardref - forwardRef를 사용하지 말고, useContext() 대신 use()를 사용하세요.

사용 방법

자세한 설명과 코드 예제는 개별 규칙 파일을 읽으세요.

rules/architecture-avoid-boolean-props.md
rules/state-context-interface.md

각 규칙 파일에는 다음이 포함되어 있습니다.

  • 중요한 이유에 대한 간략한 설명
  • 설명이 포함된 잘못된 코드 예제
  • 설명이 포함된 올바른 코드 예제
  • 추가 컨텍스트 및 참고 자료

전체 통합 문서

모든 규칙이 확장된 전체 가이드는 다음을 참조하세요: AGENTS.md

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

alfathafp/portofolio-web-design

You 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).

alfathafp/portofolio-web-design

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

alfathafp/portofolio-web-design

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

alfathafp/portofolio-web-design

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

alfathafp/portofolio-web-design

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

alfathafp/portofolio-web-design

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.

alfathafp/portofolio-web-design

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

alfathafp/portofolio-web-design

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.

alfathafp/portofolio-web-design

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

alfathafp/portofolio-web-design

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

alfathafp/portofolio-web-design

Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

alfathafp/portofolio-web-design

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

alfathafp/portofolio-web-design

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

alfathafp/portofolio-web-design

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.

alfathafp/portofolio-web-design

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

alfathafp/portofolio-web-design

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

alfathafp/portofolio-web-design

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

alfathafp/portofolio-web-design

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.

alfathafp/portofolio-web-design

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or "stress-test my plan".

alfathafp/portofolio-web-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

관련 스킬