Agent Skills: Validate Architecture Skill

Validate DDD 4-layer architecture compliance. Use when (1) after implementation completion, (2) during verification phase, (3) before PR creation, (4) architecture refactoring validation, (5) Constitution Principle I/II compliance check.

UncategorizedID: semicolon-devteam/semo/validate-architecture

Install this agent skill to your local

pnpm dlx add-skill https://github.com/semicolon-devteam/semo/tree/HEAD/semo-system/semo-skills/validate-architecture

Skill Files

Browse the full folder contents for validate-architecture.

Download Skill

Loading file tree…

semo-system/semo-skills/validate-architecture/SKILL.md

Skill Metadata

Name
validate-architecture
Description
Validate DDD 4-layer architecture compliance. Use when (1) after implementation completion, (2) during verification phase, (3) before PR creation, (4) architecture refactoring validation, (5) Constitution Principle I/II compliance check.

πŸ”” μ‹œμŠ€ν…œ λ©”μ‹œμ§€: 이 Skill이 호좜되면 [SEMO] Skill: validate-architecture 호좜 - {도메인/λ²”μœ„} μ‹œμŠ€ν…œ λ©”μ‹œμ§€λ₯Ό 첫 쀄에 좜λ ₯ν•˜μ„Έμš”.

Validate Architecture Skill

@./../_shared/ddd-patterns.md @./../_shared/ssr-rules.md

Purpose: Ensure DDD 4-layer architecture compliance and pattern adherence

Quick Start

When to Use

  • After implementation completion
  • During verification phase (Phase 5)
  • Before PR creation
  • Architecture refactoring validation

What It Does

| Check | Description | |-------|-------------| | Structure | All 4 layers exist with proper naming | | Repository | Server-side only, uses createServerSupabaseClient | | API Client | Factory Pattern, singleton exported | | Hooks | React Query, calls API client | | Components | Uses hooks, no direct API/Supabase | | SSR | Minimal 'use client', server-first |

4-Layer Structure

app/{domain}/
β”œβ”€β”€ _repositories/      βœ“ Server-side data access
β”œβ”€β”€ _api-clients/       βœ“ Factory Pattern singleton
β”œβ”€β”€ _hooks/             βœ“ React Query wrappers
└── _components/        βœ“ UI only, uses hooks

Usage

// Full architecture validation
skill: validateArchitecture();

// Validate specific domain
skill: validateArchitecture("posts");

// Quick check (structure only)
skill: validateArchitecture({ quick: true });

Severity Levels

| Level | Examples | PR Impact | |-------|----------|-----------| | πŸ”΄ Critical | Missing layers, Repository 'use client' | Blocks PR | | 🟑 Warning | Unnecessary 'use client', missing tests | Should fix | | 🟒 Info | Naming improvements | Nice to have |

Constitution Compliance

SoT μ°Έμ‘°: Constitution 원칙은 semo-core/PRINCIPLES.mdμ—μ„œ κ΄€λ¦¬λ©λ‹ˆλ‹€.

  • Principle I: DDD Architecture (NON-NEGOTIABLE)
  • Principle II: SSR-First Development

Related

Related Skills

  • verify - Uses this for architecture validation
  • scaffold-domain - Creates validated structure
  • implement - Ensures compliance during implementation