# skovalik/perception-first-design architecture

> Architecture diagram of the GitHub repository skovalik/perception-first-design, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/skovalik/perception-first-design
- Repository: https://github.com/skovalik/perception-first-design
- Video tour (about a minute): https://gitdiagram.com/skovalik/perception-first-design/video

## Overview

Perception-First Design is both a five-layer design-diagnostic framework and a Claude Code skill for applying it. The main workflow is to submit a design, problem, or hypothetical; select or auto-detect evaluate, solve, or analyze; then receive a layer-by-layer result. The repository also provides a composite all-mode command, framework references, and supporting heuristics and examples. The source excerpts cover only an index-generation script, so runtime links rely on the README; unsampled implementation details are not inferred.

Main entry points: [`skills/pfd/SKILL.md`](https://github.com/skovalik/perception-first-design/blob/main/skills/pfd/SKILL.md) (PFD skill), [`commands/all.md`](https://github.com/skovalik/perception-first-design/blob/main/commands/all.md) (Composite command), [`commands/evaluate.md`](https://github.com/skovalik/perception-first-design/blob/main/commands/evaluate.md) (Artifact evaluation), [`framework/PERCEPTION-FIRST-DESIGN.md`](https://github.com/skovalik/perception-first-design/blob/main/framework/PERCEPTION-FIRST-DESIGN.md) (Five-layer diagnostic)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Claude interface"]
  node_pfd_skill["PFD skill<br/>[SKILL.md]"]
  node_evaluate_cmd["Evaluate command<br/>[evaluate.md]"]
  node_solve_cmd["Solve command<br/>[solve.md]"]
  node_analyze_cmd["Analyze command<br/>[analyze.md]"]
  node_all_cmd["Composite command<br/>[all.md]"]
end

subgraph group_modes["Diagnostic modes"]
  node_evaluation["Artifact evaluation<br/>[evaluate.md]"]
  node_derivation["Constraint derivation<br/>[solve.md]"]
  node_analysis["Predictive analysis<br/>[analyze.md]"]
end

subgraph group_framework["PFD framework"]
  node_five_layers["Five-layer diagnostic"]
  node_adhd_curb["ADHD curb cuts<br/>[ADHD-CURB-CUT.md]"]
end

subgraph group_knowledge["Supporting knowledge"]
  node_heuristics["Layer heuristics"]
  node_constraints["Constitutional constraints"]
  node_output_schema["Output schema<br/>[output-schema.md]"]
  node_design_profiles["Design-system profiles"]
  node_worked_examples["Worked examples"]
  node_psychology["Psychology references"]
end

node_practitioner(("Practitioner"))

node_practitioner -->|"invokes"| node_pfd_skill
node_pfd_skill -->|"offers mode"| node_evaluate_cmd
node_pfd_skill -->|"offers mode"| node_solve_cmd
node_pfd_skill -->|"offers mode"| node_analyze_cmd
node_pfd_skill -->|"offers composite"| node_all_cmd
node_evaluate_cmd -->|"runs"| node_evaluation
node_solve_cmd -->|"runs"| node_derivation
node_analyze_cmd -->|"runs"| node_analysis
node_all_cmd -->|"combines modes"| node_evaluation
node_all_cmd -->|"combines modes"| node_derivation
node_all_cmd -->|"combines modes"| node_analysis
node_evaluation -->|"evaluates through"| node_five_layers
node_derivation -->|"derives through"| node_five_layers
node_analysis -->|"analyzes through"| node_five_layers
node_evaluation -->|"uses corpus"| node_heuristics
node_five_layers -->|"grounded in"| node_psychology

click node_pfd_skill "https://github.com/skovalik/perception-first-design/blob/main/skills/pfd/SKILL.md"
click node_evaluate_cmd "https://github.com/skovalik/perception-first-design/blob/main/commands/evaluate.md"
click node_solve_cmd "https://github.com/skovalik/perception-first-design/blob/main/commands/solve.md"
click node_analyze_cmd "https://github.com/skovalik/perception-first-design/blob/main/commands/analyze.md"
click node_all_cmd "https://github.com/skovalik/perception-first-design/blob/main/commands/all.md"
click node_evaluation "https://github.com/skovalik/perception-first-design/blob/main/commands/evaluate.md"
click node_derivation "https://github.com/skovalik/perception-first-design/blob/main/commands/solve.md"
click node_analysis "https://github.com/skovalik/perception-first-design/blob/main/commands/analyze.md"
click node_five_layers "https://github.com/skovalik/perception-first-design/blob/main/framework/PERCEPTION-FIRST-DESIGN.md"
click node_adhd_curb "https://github.com/skovalik/perception-first-design/blob/main/framework/ADHD-CURB-CUT.md"
click node_heuristics "https://github.com/skovalik/perception-first-design/tree/main/corpus/heuristics/universal"
click node_constraints "https://github.com/skovalik/perception-first-design/blob/main/corpus/core/constitutional-constraints.md"
click node_output_schema "https://github.com/skovalik/perception-first-design/blob/main/corpus/core/output-schema.md"
click node_design_profiles "https://github.com/skovalik/perception-first-design/tree/main/corpus/design-systems"
click node_worked_examples "https://github.com/skovalik/perception-first-design/tree/main/corpus/worked-examples"
click node_psychology "https://github.com/skovalik/perception-first-design/blob/main/corpus/core/psychology/mvs-psychology-reference.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_pfd_skill,node_evaluate_cmd,node_solve_cmd,node_analyze_cmd,node_all_cmd toneBlue
class node_evaluation,node_derivation,node_analysis toneAmber
class node_five_layers,node_adhd_curb toneMint
class node_heuristics,node_constraints,node_output_schema,node_design_profiles,node_worked_examples,node_psychology toneRose
class node_practitioner toneIndigo
```

## Components

### Claude interface

- [PFD skill](https://github.com/skovalik/perception-first-design/blob/main/skills/pfd/SKILL.md): `skills/pfd/SKILL.md`
- [Evaluate command](https://github.com/skovalik/perception-first-design/blob/main/commands/evaluate.md): `commands/evaluate.md`
- [Solve command](https://github.com/skovalik/perception-first-design/blob/main/commands/solve.md): `commands/solve.md`
- [Analyze command](https://github.com/skovalik/perception-first-design/blob/main/commands/analyze.md): `commands/analyze.md`
- [Composite command](https://github.com/skovalik/perception-first-design/blob/main/commands/all.md): `commands/all.md`

### Diagnostic modes

- [Artifact evaluation](https://github.com/skovalik/perception-first-design/blob/main/commands/evaluate.md): `commands/evaluate.md`
- [Constraint derivation](https://github.com/skovalik/perception-first-design/blob/main/commands/solve.md): `commands/solve.md`
- [Predictive analysis](https://github.com/skovalik/perception-first-design/blob/main/commands/analyze.md): `commands/analyze.md`

### PFD framework

- [Five-layer diagnostic](https://github.com/skovalik/perception-first-design/blob/main/framework/PERCEPTION-FIRST-DESIGN.md): `framework/PERCEPTION-FIRST-DESIGN.md`
- [ADHD curb cuts](https://github.com/skovalik/perception-first-design/blob/main/framework/ADHD-CURB-CUT.md): `framework/ADHD-CURB-CUT.md`

### Supporting knowledge

- [Layer heuristics](https://github.com/skovalik/perception-first-design/tree/main/corpus/heuristics/universal): `corpus/heuristics/universal`
- [Constitutional constraints](https://github.com/skovalik/perception-first-design/blob/main/corpus/core/constitutional-constraints.md): `corpus/core/constitutional-constraints.md`
- [Output schema](https://github.com/skovalik/perception-first-design/blob/main/corpus/core/output-schema.md): `corpus/core/output-schema.md`
- [Design-system profiles](https://github.com/skovalik/perception-first-design/tree/main/corpus/design-systems): `corpus/design-systems`
- [Worked examples](https://github.com/skovalik/perception-first-design/tree/main/corpus/worked-examples): `corpus/worked-examples`
- [Psychology references](https://github.com/skovalik/perception-first-design/blob/main/corpus/core/psychology/mvs-psychology-reference.md): `corpus/core/psychology/mvs-psychology-reference.md`

### Other components

- **Practitioner**

## Connections

- Practitioner → PFD skill: invokes (evidence: `README.md`)
- PFD skill → Evaluate command: offers mode (evidence: `README.md`)
- PFD skill → Solve command: offers mode (evidence: `README.md`)
- PFD skill → Analyze command: offers mode (evidence: `README.md`)
- PFD skill → Composite command: offers composite (evidence: `README.md`)
- Evaluate command → Artifact evaluation: runs (evidence: `README.md`)
- Solve command → Constraint derivation: runs (evidence: `README.md`)
- Analyze command → Predictive analysis: runs (evidence: `README.md`)
- Composite command → Artifact evaluation: combines modes (evidence: `README.md`)
- Composite command → Constraint derivation: combines modes (evidence: `README.md`)
- Composite command → Predictive analysis: combines modes (evidence: `README.md`)
- Artifact evaluation → Five-layer diagnostic: evaluates through (evidence: `README.md`)
- Constraint derivation → Five-layer diagnostic: derives through (evidence: `README.md`)
- Predictive analysis → Five-layer diagnostic: analyzes through (evidence: `README.md`)
- Artifact evaluation → Layer heuristics: uses corpus (evidence: `README.md`)
- Five-layer diagnostic → Psychology references: grounded in (evidence: `README.md`)
