Defines code patterns, rules, and best practices for composition Builder application. Covers layout engine, Canvas rendering, state management, styling, and component architecture. Use when writing, reviewing, refactoring, or debugging any composition code, or when making architectural decisions about the builder.
composition Builder의 코드 패턴, 규칙 및 모범 사례 통합 스킬.
상세 규칙은
.Codex/rules/에 glob-scoped로 자동 로드됩니다. 이 파일은 규칙 인덱스 + 에이전트 프로토콜을 제공합니다.
Section 컴포넌트 사용ActionIconButton 사용 (.button-base 우회, tooltip 내장)layoutVersion, order_num, WASM 초기화, display 전환, Field Component, Spec↔CSS 경계 등의 상세 CRITICAL 규칙은
.Codex/rules/(canvas-rendering.md, layout-engine.md, state-management.md)에 자동 로드됩니다.
extractSpecTextStyle() 사용, fontSize/fontWeight 하드코딩 금지_containerWidth/_containerHeight props 주입| 도메인 | 파일 |
|---|---|
| Layout Engine | reference/layout-engine.md |
| Compositional Architecture | reference/compositional-architecture.md |
| Child Composition & Spec | reference/child-composition.md |
| Text Wrapping | reference/text-wrapping.md |
| Style Panel | reference/style-panel.md |
| Component Registry | reference/component-registry.md |
1. _hasChildren 패턴 (삭제/이동/조건 변경 금지)
2. CHILD_COMPOSITION_EXCLUDE_TAGS 관련 로직
3. ElementSprite.tsx의 _hasChildren 주입 로직
4. rearrangeShapesForColumn / SPEC_RENDERS_ALL_TAGS_SET 가드
5. TAG_SPEC_MAP 등록 로직
## 작업 범위
[구체적 수정 내용만 기술]
## 수정 대상 파일
[파일 목록]
## 수정 패턴
[Before → After 예시 코드]
## 수정 금지
- \_hasChildren, COMPLEX_COMPONENT_TAGS, shapes early return, 요청 범위 외 리팩토링
Read .Codex/progress.md — 현재 상태/알려진 이슈Read .Codex/agent-memory/{자신}/MEMORY.md — 이전 세션 맥락any/@ts-ignore 우회 금지규칙의 실제 효과를 추적하여 컨텍스트 예산을 최적화합니다.
리뷰어 에이전트가 .Codex/agent-memory/reviewer/MEMORY.md에 기록:
| 규칙 | 위반 수 | False Positive | 실효성 | 비고 |
|---|---|---|---|---|
| (규칙명) | N | N | HIGH/MEDIUM/LOW |