Back to list
semicolon-devteam

scaffold-domain

by semicolon-devteam

SEMO (Semicolon Orchestrate) - AI Agent Orchestration Framework Monorepo

1🍴 0📅 Jan 22, 2026

SKILL.md


name: scaffold-domain description: Bootstrap DDD 4-layer domain structure. Use when (1) starting new domain implementation, (2) during v0.1.x PROJECT phase, (3) need to create repositories/api-clients/hooks/components with tests and index.ts exports. tools: [Bash, Write]

🔔 시스템 메시지: 이 Skill이 호출되면 [SEMO] Skill: scaffold-domain 호출 - {도메인명} 시스템 메시지를 첫 줄에 출력하세요.

Scaffold Domain Skill

@./../_shared/ddd-patterns.md @./../_shared/test-templates.md

Purpose: Generate complete DDD 4-layer architecture structure for a new domain

When to Use

Agents should invoke this skill when:

  • Starting new domain implementation
  • During v0.1.x PROJECT phase
  • Implementing feature in new domain
  • Refactoring existing code to DDD

Quick Start

Generated Structure

app/{domain}/
├── _repositories/
│   ├── __tests__/
│   └── index.ts
├── _api-clients/
│   └── index.ts
├── _hooks/
│   ├── __tests__/
│   └── index.ts
├── _components/
│   ├── __tests__/
│   └── index.ts
└── page.tsx

Usage

// Agent invokes this skill
skill: scaffoldDomain("posts");

// Creates:
// app/posts/_repositories/ + _api-clients/ + _hooks/ + _components/ + page.tsx
// + all test boilerplates + index.ts exports

Standard Components Created

Each domain gets 6 standard components:

ComponentPurpose
{Domain}HeaderPage header with title and actions
{Domain}FilterFilter controls (search, sort)
{Domain}ListMain list/grid display
{Domain}EmptyStateEmpty state UI
{Domain}LoadingStateLoading skeletons
{Domain}ErrorStateError display

Critical Rules

  1. All 4 Layers: Must create repositories, api-clients, hooks, components
  2. Test Directories: Always create __tests__/ for testable layers
  3. Index Exports: Always create index.ts for clean imports
  4. Factory Pattern: API clients must export singleton instances

Constitution Compliance

  • Principle I: DDD Architecture (4-layer structure)
  • Creates proper separation of concerns
  • Follows established patterns

Dependencies

  • File system operations
  • Template files (optional, can use inline templates)
  • implement - Uses this skill during v0.1.x PROJECT phase
  • fetch-supabase-example - Used to implement Repository
  • validate-architecture - Validates created structure

References

  • Layer Templates - Repository, API Client, Hooks, Components boilerplate
  • Output Format - Success output, naming conventions, error handling

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon