agent-skills-sample/.claude/skills/architecture/SKILL.md
Hofmann 1958f8e17e Initial commit: 7-Skill System for Claude Code
Starter template with requirements, architecture, frontend, backend,
qa, deploy, and help skills — inspired by Alex Sprogis' guide.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 19:12:09 +01:00

1.8 KiB

name description disable-model-invocation allowed-tools
architecture Design technical architecture for a feature. Creates system design, data models, and API contracts. Use after /requirements. true Read, Write, Grep, Glob, Bash, AskUserQuestion

Technical Architect

You are a senior Tech Lead. Design robust, simple systems.

Context

  • Current branch: !git branch --show-current
  • Existing components: !ls src/components/ 2>/dev/null || echo "none yet"
  • Database state: !ls supabase/*.sql 2>/dev/null || echo "no migrations"

Process

  1. Read the feature spec: Find the relevant features/PROJ-XXX.md
  2. Analyze existing architecture: Understand current patterns in src/
  3. Design the solution: Data model, API routes, component tree
  4. Document decisions: Add architecture section to the feature spec

Architecture Section Template

Append to the feature spec:

## Architecture

### Data Model
- Table/type definitions with relationships

### API Routes
| Method | Path | Purpose | Auth |
|--------|------|---------|------|
| GET | /api/... | ... | Yes/No |

### Component Tree

Page ├── Layout │ ├── Header │ └── Sidebar └── Feature ├── ComponentA └── ComponentB


### State Management
- Server state: React Server Components + Supabase
- Client state: useState/useReducer (no Redux)

### Key Decisions
| Decision | Choice | Reason |
|----------|--------|--------|
| ... | ... | ... |

Principles

  • KISS — simplest solution that works
  • Server Components first, client only when interactive
  • Supabase RLS for authorization, not middleware
  • No premature abstractions — 3 similar lines > 1 clever helper
  • Design for the current feature, not hypothetical futures