skills/ui-architect/SKILL.md
Design component architecture for legaltech UIs - layer separation, data flow, design system selection
npx skillsauth add 45black/uk-legal-plugins ui-architectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Design component architecture for 45Black legaltech products. This skill helps non-coders plan UI structure, separate product layers, and select appropriate design systems.
Ask the user about:
Based on user answers, recommend design system:
Is this CLIENT-FACING (trustees, advisers, external)?
├── YES → TRUSTEE EDITION v1.0
│ • Light-first, Paper White backgrounds
│ • Inter typography
│ • Governance Blue primary (#1A4F7A)
│ • Compliance status colours
│ • WCAG AAA target
│ • Print-ready
│
└── NO → Is this for 8+ hours DAILY USE?
├── YES → SAVILLE v5.0 CLARITY
│ • Matte OFF
│ • Hero weight 500
│ • Data-dense optimised
│
└── NO → SAVILLE v5.0 CORE
• Matte ON (15% dark, 8% light)
• Hero weight 300
• Developer/admin aesthetic
For apex ecosystem products, define these layers:
┌─────────────────────────────────────────────────────────────┐
│ PRESENTATION LAYER │
│ Components, Pages, Layouts (React/Next.js) │
│ Design System: [Selected System] │
├─────────────────────────────────────────────────────────────┤
│ INTERACTION LAYER │
│ State Management (Zustand), Form Handling (React Hook Form)│
│ User preferences, UI state, Session management │
├─────────────────────────────────────────────────────────────┤
│ DATA ACCESS LAYER │
│ React Query hooks, API clients, Data transformation │
│ Connects to: apex-helix | apex-governance | apex-precedent │
├─────────────────────────────────────────────────────────────┤
│ COMPLIANCE LAYER │
│ AI transparency markers, Audit logging, GDPR consent │
│ EU AI Act compliance, Hash-chained audit trails │
└─────────────────────────────────────────────────────────────┘
Create a component tree document:
## Component Hierarchy: [Product Name]
### Layout Components
- AppShell (header, sidebar, main content)
- PageLayout (breadcrumbs, title, actions)
- SplitPane (resizable document/panel views)
### Feature Components
- [Domain-specific components]
### Shared UI Components (from design system)
- Buttons, Cards, Badges, Tables, Forms
- Use shadcn/ui with design system tokens
### Data Components
- [Product].Provider (context for data)
- use[Product]Data (React Query hook)
Document how data moves between layers:
User Action → Interaction Layer → Data Layer → API Proxy → Backend Service
│
▼
UI Update ← Presentation ← State Update ← Query Invalidation ← Response
Create docs/UI_ARCHITECTURE.md with:
Reference for the apex constellation:
| Product | Data Source | Primary Users | Design System | Status | |---------|-------------|---------------|---------------|--------| | apex-lens | helix, precedent, kestrel | Prospects, trustees | Saville Clarity → migrate to Trustee? | Active | | apex-governance | helix | Trustees, advisers | Trustee v1.0 | Active | | apex-precedent | precedent DB | Legal researchers | Saville Clarity | Active | | apex-tracker | helix | Scheme managers | Trustee v1.0 | Planned | | apex-admin | helix (write) | Wills (admin) | Saville Core | Internal |
All backend requests go through Next.js API routes:
/api/helix/* → apex-helix (port 3001)/api/precedent/* → apex-precedent (port 3002)/api/kestrel/* → apex-kestrel (port 3003)All AI-generated content MUST include:
# UI Architecture: apex-lens v2.0
## Design System
**Trustee Edition v1.0** - Selected because:
- Primary users are pension trustees (external)
- Needs print-ready compliance reports
- Light-first suits office environments
## Component Layers
### Presentation (Trustee Edition)
├── LegislationViewer
│ ├── DocumentPane (Merriweather, cream background)
│ ├── ObligationPanel (cards with status badges)
│ └── NavigationTree (sidebar with sections)
├── SearchInterface
│ ├── SearchBar
│ ├── FacetedFilters
│ └── ResultsList
└── CollectionManager
├── FavouritesList
└── CollectionView
### Data Access
├── useLegislation(id) → /api/helix/acts/{id}
├── useObligations(sectionId) → /api/helix/obligations
└── useCaseLaw(query) → /api/precedent/search
### Compliance
├── AITransparencyBadge
├── AuditLogProvider
└── ConsentManager
opus - Architecture decisions require deep reasoning about trade-offs
Part of 45Black UI Expert Devstack For non-coders: This skill helps you plan before building
development
Plain English writing coach trained on Zinsser (On Writing Well) and Orwell ('Politics and the English Language'). Use when writing, revising, or editing any prose: documentation, reports, website copy, emails, briefs, specs, or any word processing output. Triggers on: revise, edit text, improve writing, draft document, write copy, plain English, rewrite, tighten prose, writing review, documentation draft.
development
Assess and classify legal risks under English law (England & Wales) using a severity-by-likelihood framework with escalation criteria. References UK regulatory bodies (ICO, FCA, TPR, SFO), legal professional privilege, Companies Act duties, and UK-specific enforcement landscape. Use when evaluating contract risk, deal exposure, regulatory matters, or determining whether a matter needs senior counsel or external solicitor review.
testing
Screen incoming NDAs under English law (England & Wales), classify as GREEN (standard), YELLOW (needs review), or RED (significant issues). Applies English law tests for enforceability, restrictive covenants, penalty doctrine, and injunctive relief. Use when triaging NDAs for a UK-based organisation.
development
Prepare structured briefings for meetings with legal relevance under English law (England & Wales). Covers board meetings (Companies Act 2006 duties), regulatory meetings (ICO, FCA, TPR, CMA, SFO), contract negotiations, and compliance reviews. Tracks action items with CPR-aware litigation context and legal professional privilege considerations.