# mattbx/shadcn-skills architecture

> Architecture diagram of the GitHub repository mattbx/shadcn-skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mattbx/shadcn-skills
- Repository: https://github.com/mattbx/shadcn-skills

## Overview

shadcn-skills packages two agent workflows: discover existing shadcn ecosystem components before custom implementation, and audit custom components against shadcn patterns afterward. Discovery returns qualified matches and install commands; review returns categorized findings. Reference documents supply registry knowledge and review conventions. The README documents these capabilities and optional MCP/CLI integrations; no source excerpts were provided, so internal implementation calls are not inferred.

Main entry points: [`skills/shadcn-component-review/SKILL.md`](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/SKILL.md) (Review workflow), [`skills/shadcn-component-discovery/SKILL.md`](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-discovery/SKILL.md) (Discovery workflow), [`skills/shadcn-component-discovery/references/registries.md`](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-discovery/references/registries.md) (Registry catalog), [`skills/shadcn-component-review/references/review-checklist.md`](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/references/review-checklist.md) (Review checklist)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Component discovery"]
  node_discovery_skill["Discovery workflow<br/>[SKILL.md]"]
  node_registry_catalog["Registry catalog<br/>[registries.md]"]
  node_matches["Component matches<br/>[SKILL.md]"]
end

subgraph group_review["Component review"]
  node_review_skill["Review workflow<br/>[SKILL.md]"]
  node_review_checklist["Review checklist"]
  node_theme_styles["Theme styles<br/>[theme-styles.md]"]
  node_animation_patterns["Animation patterns"]
  node_findings["Review findings<br/>[SKILL.md]"]
end

subgraph group_integrations["Search integrations"]
  node_shadcn_mcp{{"shadcn MCP"}}
  node_shadcn_cli{{"shadcn CLI"}}
end

node_user(("Developer"))
node_project_component["Custom component"]
node_project_config["Project configuration"]

node_user -->|"requests search"| node_discovery_skill
node_user -->|"requests audit"| node_review_skill
node_discovery_skill -->|"consults"| node_registry_catalog
node_discovery_skill -.->|"searches via"| node_shadcn_mcp
node_discovery_skill -.->|"falls back to"| node_shadcn_cli
node_discovery_skill -->|"returns"| node_matches
node_review_skill -->|"reviews"| node_project_component
node_review_skill -.->|"reads style from"| node_project_config
node_review_skill -->|"uses"| node_review_checklist
node_review_skill -->|"applies styles"| node_theme_styles
node_review_skill -->|"checks patterns"| node_animation_patterns
node_review_skill -->|"returns"| node_findings

click node_discovery_skill "https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-discovery/SKILL.md"
click node_registry_catalog "https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-discovery/references/registries.md"
click node_matches "https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-discovery/SKILL.md"
click node_review_skill "https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/SKILL.md"
click node_review_checklist "https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/references/review-checklist.md"
click node_theme_styles "https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/references/theme-styles.md"
click node_animation_patterns "https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/references/animation-patterns.md"
click node_findings "https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/SKILL.md"

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_discovery_skill,node_registry_catalog,node_matches toneBlue
class node_review_skill,node_review_checklist,node_theme_styles,node_animation_patterns,node_findings toneAmber
class node_shadcn_mcp,node_shadcn_cli toneMint
class node_user,node_project_component,node_project_config toneIndigo
```

## Components

### Component discovery

- [Discovery workflow](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-discovery/SKILL.md): `skills/shadcn-component-discovery/SKILL.md`
- [Registry catalog](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-discovery/references/registries.md): `skills/shadcn-component-discovery/references/registries.md`
- [Component matches](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-discovery/SKILL.md): `skills/shadcn-component-discovery/SKILL.md`

### Component review

- [Review workflow](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/SKILL.md): `skills/shadcn-component-review/SKILL.md`
- [Review checklist](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/references/review-checklist.md): `skills/shadcn-component-review/references/review-checklist.md`
- [Theme styles](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/references/theme-styles.md): `skills/shadcn-component-review/references/theme-styles.md`
- [Animation patterns](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/references/animation-patterns.md): `skills/shadcn-component-review/references/animation-patterns.md`
- [Review findings](https://github.com/mattbx/shadcn-skills/blob/main/skills/shadcn-component-review/SKILL.md): `skills/shadcn-component-review/SKILL.md`

### Search integrations

- **shadcn MCP**
- **shadcn CLI**

### Other components

- **Developer**
- **Custom component**
- **Project configuration**

## Connections

- Developer → Discovery workflow: requests search (evidence: `README.md`)
- Developer → Review workflow: requests audit (evidence: `README.md`)
- Discovery workflow → Registry catalog: consults (evidence: `README.md`)
- Discovery workflow → shadcn MCP: searches via (evidence: `README.md`)
- Discovery workflow → shadcn CLI: falls back to (evidence: `README.md`)
- Discovery workflow → Component matches: returns (evidence: `README.md`)
- Review workflow → Custom component: reviews (evidence: `README.md`)
- Review workflow → Project configuration: reads style from (evidence: `README.md`)
- Review workflow → Review checklist: uses (evidence: `README.md`)
- Review workflow → Theme styles: applies styles (evidence: `README.md`)
- Review workflow → Animation patterns: checks patterns (evidence: `README.md`)
- Review workflow → Review findings: returns (evidence: `README.md`)
