verify-route-boundaries
app, domains, shared, packages 책임 경계와 import 방향을 검증할 때 사용합니다.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
app, domains, shared, packages 책임 경계와 import 방향을 검증할 때 사용합니다.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
endpoint 문서를 기준으로 API helper, TanStack Query hook, 타입, 에러/cache 동작을 구현할 때 사용합니다.
apps/client, apps/market-owner, apps/design-system-web, 선택적 apps/admin 내부의 앱 전용 shared 컴포넌트를 생성, 스펙 작성, export, 검증할 때 사용합니다.
GitHub 브라우저 PR 리뷰에서 visible diff, review comment, check status, local verification 여부를 분리해 기록할 때 사용합니다.
packages/design-system 공통 컴포넌트를 Figma/이미지/상태 요구사항 기반으로 생성, 구현, story/spec/export 검증할 때 사용합니다.
필드 검증, submit, mutation, error, disabled/loading/success 상태가 있는 프론트엔드 폼 흐름을 구현할 때 사용합니다.
프론트엔드 구현 또는 리뷰 중 Toss Frontend Fundamentals의 응집도 기준으로 함께 수정되는 component, hook, type, fixture, spec, form 흐름 배치를 점검할 때 사용합니다.
| name | verify-route-boundaries |
| description | app, domains, shared, packages 책임 경계와 import 방향을 검증할 때 사용합니다. |
Next App Router, Vite app shell, domain screen, shared infrastructure, package boundary가 섞이는 것을 막습니다.
git diff --name-only HEAD -- apps docs/architecture/app-structure.md docs/architecture/market-owner-app.md turbo/generators
app 구조나 generator 변경이 없으면 SKIP할 수 있습니다.
docs/architecture/app-structure.md를 먼저 읽습니다.docs/architecture/market-owner-app.md를 같이 읽습니다.docs/workflows/turbo-generators.md와 template output 경로를 확인합니다.git diff --name-only HEAD -- apps turbo/generators docs/architecture
다음 방향은 원칙적으로 금지합니다.
domains -> app
shared -> domains
packages/* -> apps/*
packages/design-system -> domains
보조 명령:
rg -n "from ['\\\"].*(/app|src/app)" apps/*/src/domains || true
rg -n "from ['\\\"].*(/domains|src/domains)" apps/*/src/shared || true
rg -n "from ['\\\"].*(apps/|src/app|src/domains|src/shared)" packages || true
출력이 있으면 실제 alias/상대경로를 확인하고, 금지 방향이면 수정합니다.
src/app에는 route segment, layout, loading, error, not-found, metadata, route handler, provider 조립만 둡니다.src/domains 또는 app-local 확정 구조에 둡니다.src/app route composition과 src/domains/{domain}/{page} 책임을 분리합니다.변경 app에 맞는 targeted 검증을 실행합니다.
pnpm --filter client typecheck
pnpm --filter market-owner typecheck
pnpm build
실행하지 않은 app 검증은 이유를 남깁니다.