# jpedy/web-ui-playbook architecture

> Architecture diagram of the GitHub repository jpedy/web-ui-playbook, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jpedy/web-ui-playbook
- Repository: https://github.com/jpedy/web-ui-playbook

## Overview

web-ui-playbook is a Claude Code skill for guiding web-interface design and implementation, especially Laravel/Tailwind v4 projects and Persian/RTL sites for users in Iran. Its main workflow gathers project context, selects a visual direction, establishes design tokens, builds from component and page-pattern guidance, applies localization and market rules, then audits and reports issues. The repository also provides reusable Persian assets and an optional local preview server. Most guidance relationships below follow the README’s documented workflow and layout; the skill and reference contents were not sampled.

Main entry points: [`skills/web-ui-playbook/references/persian-rtl.md`](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/persian-rtl.md) (Persian and RTL rules), [`skills/web-ui-playbook/SKILL.md`](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/SKILL.md) (Project intake), [`skills/web-ui-playbook/references/visual-direction.md`](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/visual-direction.md) (Style directions), [`skills/web-ui-playbook/references/design-foundations.md`](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/design-foundations.md) (Design foundations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["Design guidance"]
  node_intake["Project intake<br/>[SKILL.md]"]
  node_directions["Style directions"]
  node_foundations["Design foundations"]
  node_components["Component specs"]
  node_patterns["Page patterns"]
  node_brandpatterns["Brand patterns"]
  node_accessibility["Accessibility and trust"]
  node_examples["Curated examples"]
  node_templates["Resources and templates"]
  node_review["Review checklist"]
end

subgraph group_locale["Persian and Iran"]
  node_persian["Persian and RTL rules<br/>[persian-rtl.md]"]
  node_iranmarket["Iran market guidance<br/>[iran-market.md]"]
  node_network["Network resilience"]
  node_tech["Laravel and Tailwind"]
end

subgraph group_runtime["Runtime tools and assets"]
  node_tokens["Token starter<br/>[tokens.css]"]
  node_persiancss["Persian base CSS<br/>[persian-base.css]"]
  node_jshelpers["Persian JS helpers<br/>[persian-helpers.js]"]
  node_phphelpers["Persian PHP helpers<br/>[PersianHelpers.php]"]
  node_audit["Output auditor<br/>[audit.mjs]"]
  node_preview["Local preview server<br/>[serve.mjs]"]
end

node_user(("UI requester"))
node_claude(("Claude Code"))
node_interface["Designed interface"]

node_user -->|"requests UI work"| node_claude
node_claude -->|"starts workflow"| node_intake
node_intake -->|"selects direction"| node_directions
node_directions -->|"defines tokens"| node_foundations
node_foundations -->|"uses starter"| node_tokens
node_claude -->|"builds with"| node_components
node_claude -->|"builds with"| node_patterns
node_claude -->|"chooses patterns"| node_brandpatterns
node_claude -->|"applies guidance"| node_accessibility
node_claude -->|"consults examples"| node_examples
node_claude -->|"consults resources"| node_templates
node_claude -->|"applies when relevant"| node_persian
node_claude -->|"applies when relevant"| node_iranmarket
node_claude -->|"applies when relevant"| node_network
node_claude -->|"follows stack guidance"| node_tech
node_persian -.->|"uses base styles"| node_persiancss
node_persian -.->|"uses helpers"| node_jshelpers
node_persian -->|"ports helpers"| node_phphelpers
node_claude -->|"audits output"| node_audit
node_audit -->|"reports findings"| node_claude
node_claude -->|"checks result"| node_review
node_claude -->|"produces interface"| node_interface
node_user -->|"previews locally"| node_preview

click node_intake "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/SKILL.md"
click node_directions "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/visual-direction.md"
click node_foundations "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/design-foundations.md"
click node_components "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/components-and-states.md"
click node_patterns "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/patterns-web-apps.md"
click node_brandpatterns "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/patterns-brand-sites.md"
click node_accessibility "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/accessibility-and-trust.md"
click node_examples "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/examples-international.md"
click node_templates "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/resources-templates.md"
click node_review "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/review-checklist.md"
click node_persian "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/persian-rtl.md"
click node_iranmarket "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/iran-market.md"
click node_network "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/iran-network-resilience.md"
click node_tech "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/performance-and-tech.md"
click node_tokens "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/assets/tokens.css"
click node_persiancss "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/assets/persian-base.css"
click node_jshelpers "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/assets/persian-helpers.js"
click node_phphelpers "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/assets/PersianHelpers.php"
click node_audit "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/scripts/audit.mjs"
click node_preview "https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/scripts/serve.mjs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_intake,node_directions,node_foundations,node_components,node_patterns,node_brandpatterns,node_accessibility,node_examples,node_templates,node_review,node_user toneBlue
class node_persian,node_iranmarket,node_network,node_tech toneAmber
class node_tokens,node_persiancss,node_jshelpers,node_phphelpers,node_audit,node_preview toneMint
class node_claude,node_interface toneIndigo
```

## Components

### Design guidance

- [Project intake](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/SKILL.md): `skills/web-ui-playbook/SKILL.md`
- [Style directions](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/visual-direction.md): `skills/web-ui-playbook/references/visual-direction.md`
- [Design foundations](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/design-foundations.md): `skills/web-ui-playbook/references/design-foundations.md`
- [Component specs](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/components-and-states.md): `skills/web-ui-playbook/references/components-and-states.md`
- [Page patterns](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/patterns-web-apps.md): `skills/web-ui-playbook/references/patterns-web-apps.md`
- [Brand patterns](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/patterns-brand-sites.md): `skills/web-ui-playbook/references/patterns-brand-sites.md`
- [Accessibility and trust](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/accessibility-and-trust.md): `skills/web-ui-playbook/references/accessibility-and-trust.md`
- [Curated examples](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/examples-international.md): `skills/web-ui-playbook/references/examples-international.md`
- [Resources and templates](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/resources-templates.md): `skills/web-ui-playbook/references/resources-templates.md`
- [Review checklist](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/review-checklist.md): `skills/web-ui-playbook/references/review-checklist.md`

### Persian and Iran

- [Persian and RTL rules](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/persian-rtl.md): `skills/web-ui-playbook/references/persian-rtl.md`
- [Iran market guidance](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/iran-market.md): `skills/web-ui-playbook/references/iran-market.md`
- [Network resilience](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/iran-network-resilience.md): `skills/web-ui-playbook/references/iran-network-resilience.md`
- [Laravel and Tailwind](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/references/performance-and-tech.md): `skills/web-ui-playbook/references/performance-and-tech.md`

### Runtime tools and assets

- [Token starter](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/assets/tokens.css): `skills/web-ui-playbook/assets/tokens.css`
- [Persian base CSS](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/assets/persian-base.css): `skills/web-ui-playbook/assets/persian-base.css`
- [Persian JS helpers](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/assets/persian-helpers.js): `skills/web-ui-playbook/assets/persian-helpers.js`
- [Persian PHP helpers](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/assets/PersianHelpers.php): `skills/web-ui-playbook/assets/PersianHelpers.php`
- [Output auditor](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/scripts/audit.mjs): `skills/web-ui-playbook/scripts/audit.mjs`
- [Local preview server](https://github.com/jpedy/web-ui-playbook/blob/main/skills/web-ui-playbook/scripts/serve.mjs): `skills/web-ui-playbook/scripts/serve.mjs`

### Other components

- **UI requester**
- **Claude Code**
- **Designed interface**

## Connections

- UI requester → Claude Code: requests UI work (evidence: `README.md`)
- Claude Code → Project intake: starts workflow (evidence: `README.md`)
- Project intake → Style directions: selects direction (evidence: `README.md`)
- Style directions → Design foundations: defines tokens (evidence: `README.md`)
- Design foundations → Token starter: uses starter (evidence: `README.md`)
- Claude Code → Component specs: builds with (evidence: `README.md`)
- Claude Code → Page patterns: builds with (evidence: `README.md`)
- Claude Code → Brand patterns: chooses patterns (evidence: `README.md`)
- Claude Code → Accessibility and trust: applies guidance (evidence: `README.md`)
- Claude Code → Curated examples: consults examples (evidence: `README.md`)
- Claude Code → Resources and templates: consults resources (evidence: `README.md`)
- Claude Code → Persian and RTL rules: applies when relevant (evidence: `README.md`)
- Claude Code → Iran market guidance: applies when relevant (evidence: `README.md`)
- Claude Code → Network resilience: applies when relevant (evidence: `README.md`)
- Claude Code → Laravel and Tailwind: follows stack guidance (evidence: `README.md`)
- Persian and RTL rules → Persian base CSS: uses base styles (evidence: `README.md`)
- Persian and RTL rules → Persian JS helpers: uses helpers (evidence: `README.md`)
- Persian and RTL rules → Persian PHP helpers: ports helpers (evidence: `README.md`)
- Claude Code → Output auditor: audits output (evidence: `README.md`)
- Output auditor → Claude Code: reports findings (evidence: `README.md`)
- Claude Code → Review checklist: checks result (evidence: `README.md`)
- Claude Code → Designed interface: produces interface (evidence: `README.md`)
- UI requester → Local preview server: previews locally (evidence: `README.md`)
