Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

arch

verified

Architecture discovery, validation, and planning. Use when user says /arch, /arch configure, /arch learn, /arch check, or /arch plan.

View on GitHub

Marketplace

dohernandez-claude-skills

dohernandez/claude-skills

Plugin

arch

Repository

dohernandez/claude-skills

plugins/arch/skills/arch/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/dohernandez/claude-skills/blob/main/plugins/arch/skills/arch/SKILL.md -a claude-code --skill arch

Installation paths:

Claude
.claude/skills/arch/
Powered by add-skill CLI

Instructions

# Architecture Skill

## Purpose

Discover, validate, and guide project architecture. Ensures code follows layer boundaries and helps plan where new code should go.

## Quick Reference

- **Validates:** Layer boundaries, import directions, architectural compliance
- **Modes:** configure, learn, check, plan

## Modes Overview

| Mode | Command | Purpose |
|------|---------|---------|
| **configure** | `/arch configure` | Auto-discover from docs/configs (setup) |
| **learn** | `/arch learn` | Infer from code analysis or description |
| **check** | `/arch check` | Validate layer boundaries |
| **plan** | `/arch plan <desc>` | Suggest where new code belongs |

---

### Configure Mode: `/arch configure` (Setup)

Auto-discovers your project's architecture based on the selected style.

**Run during plugin installation or manually:**
```bash
/arch configure
```

**Discovery Flow:**

1. **User selects architecture style:**
   - hexagonal, layered, clean, mvc, custom

2. **Skill searches for architecture documentation:**
   - CLAUDE.md (Architecture section)
   - README.md (Project Structure section)
   - docs/architecture.md
   - docs/ADR/*.md (Architecture Decision Records)

3. **Skill checks config files:**
   - tsconfig.json (path aliases → layers)
   - .eslintrc (import restriction rules)
   - .dependency-cruiser.js
   - package.json (workspaces)

4. **Skill scans directory structure:**
   - src/, lib/, app/, packages/
   - Matches directories to style template

5. **Presents discovered config for confirmation:**

```
## Discovered Architecture

**Style:** hexagonal
**Source Root:** src/
**Confidence:** High (documented in CLAUDE.md)

### Layers (lowest → highest)

| Level | Name | Path | Responsibility |
|-------|------|------|----------------|
| 0 | config | src/config/ | Configuration, schemas |
| 1 | domain | src/domain/ | Core business logic |
| 2 | infrastructure | src/infrastructure/ | External integrations |
| 3 | application | src/application/ | Use cases, orche

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
10210 chars