sveltekit-progressive-architecture
4
总安装量
3
周安装量
#48636
全站排名
安装命令
npx skills add https://github.com/dev-goraebap/skills --skill sveltekit-progressive-architecture
Agent 安装分布
amp
3
claude-code
3
github-copilot
3
codex
3
kimi-cli
3
gemini-cli
3
Skill 文档
SvelteKit Progressive Architecture
SvelteKit íë¡ì í¸ì ì ì©íë ìí¤í ì²ì ì½ë ìì± ê·ì¹.
ì¸ì ì ì©íë
- SvelteKit ì½ë를 ìì±íê±°ë 리뷰í ë
- ìë² ë ì´ì´ ì¤ê³ ëë API ìëí¬ì¸í¸ë¥¼ 구íí ë
- UI ì»´í¬ëí¸ë¥¼ ì¶ê°íê±°ë shadcn-svelte를 ì¬ì©í ë
- ì½ë ì¤íì¼Â·íì ì ì·íì¼ êµ¬ì¡°ë¥¼ ê²°ì í ë
ì¹´í ê³ ë¦¬
| ì¹´í ê³ ë¦¬ | ì ì© ìí© | 참조 íì¼ |
|---|---|---|
| Base Rules | .svelte íì¼ ìì±, íì
ì ì, $lib 구조, 주ì |
base-rules.md |
| Server Architecture | +server.ts, +page.server.ts, domain/infra ë ì´ì´, Drizzle, REST API |
server-architecture.md |
| UI Components | shadcn-svelte ì»´í¬ëí¸ ì¶ê°Â·ì¬ì©, $lib/components/ui |
shadcn-svelte.md |
íµì¬ ê·ì¹ ìì½
Base Rules
- ë¼ì°í¸ ì°ì ë°°ì¹: ë°ë³µ í¨í´ì´ ë³´ì¬ë
$libë¡ ë°ë¡ ë¹¼ì§ ìëë¤ $lib/componentsë ì ì¤íê²: 3ê° ì´ì íì´ì§ìì ì°ì´ë ë²ì© UIë§- ì¸ë¼ì¸ íì
ê¸ì§: ë°ëì
interfaceëtypeì¼ë¡ ë¶ë¦¬ ì ì - ì¤í¬ë¦½í¸ ì¹ì
주ì:
<script>ììì ìí ë³ë¡ ì¹ì 주ì
Server Architecture
- ë ì´ì´ ë¶ë¦¬:
server/domain/(Active Record CUD) +server/infra/(Query Service ì¡°í) - ì§ì ORM ì¡°ì ê¸ì§:
+server.tsâ Domain Model,+page.server.tsâ Query Service - R/CUD ë¶ë¦¬: loadë
+page.server.ts, ì°ê¸°ëroutes/api/REST ìëí¬ì¸í¸ - form actions 미ì¬ì©: REST APIë¡ ë¶ë¦¬íì¬ ë°±ìë ì´ìì± íë³´
- ìë² íì
ì´ ìì²: ì¡°í 뷰모ë¸ì
infra/view-models/ì ì ì
UI Components
- ì¤ì¹ ì°ì : UI ìì 구í ì ì¤ì¹ë ì»´í¬ëí¸ ëª©ë¡ íì¸
- 커ì¤í
ê¸ì§: shadcn ì»´í¬ëí¸ë¥¼ ì§ì ìì íì§ ìëë¤.
classpropì¼ë¡ ì¤íì¼ë§ ì¤ë²ë¼ì´ë - ìí¬í¸ ê²½ë¡:
$lib/components/ui/<component>ìì named import
ì¤ì¹ë ì»´í¬ëí¸: alert-dialog badge button calendar card checkbox dialog dropdown-menu input input-otp label popover select separator sonner switch table tabs textarea
ì¤í ë°©ë²
Step 1: ìì ë¶ë¥
ìì² ë´ì©ì ë³´ê³ í´ë¹íë ì¹´í ê³ ë¦¬ë¥¼ íì íë¤. ì¬ë¬ ì¹´í ê³ ë¦¬ì 걸ì¹ë ê²½ì° ëª¨ë í¬í¨íë¤.
| ìì² ìì | ì¹´í ê³ ë¦¬ |
|---|---|
.svelte íì¼ ìì±, íì
ì ì, $lib 구조 |
Base Rules |
+server.ts, +page.server.ts, DB 쿼리, REST API |
Server Architecture |
| button, dialog, form ë± UI ì¶ê° | UI Components |
| ì ì²´ ì½ë 리뷰 | 모ë |
Step 2: 참조 íì¼ ë¡ë
ì¹´í ê³ ë¦¬ í ì´ë¸ìì í´ë¹ 참조 íì¼ì ì½ëë¤. ìì¸ ê·ì¹ê³¼ ì½ë ììê° í¬í¨ëì´ ìë¤.
Step 3: ê·ì¹ ì ì©
참조 íì¼ì ê·ì¹ì ë°ë¼ ì½ë를 ìì±íê±°ë 리뷰íë¤. ê·ì¹ì ì´ê¸ëë ë¶ë¶ì´ ìì¼ë©´ ì§ì íê³ ìì ë°©í¥ì ì ìíë¤.