Claude Code Plugins

Community-maintained marketplace

Feedback

validate-architecture

@semicolon-devteam/semo
1
0

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.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

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.
tools Bash, Read, Grep

πŸ”” μ‹œμŠ€ν…œ λ©”μ‹œμ§€: 이 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