# erkamyaman/unslop-anything architecture

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

- Interactive diagram: https://gitdiagram.com/erkamyaman/unslop-anything
- Repository: https://github.com/erkamyaman/unslop-anything

## Overview

unslop-anything is an agent skill that reviews and treats app, mobile, and website UI/UX, with a standalone detector and style/platform guidance. Its principal workflow is an engineer asking a coding agent for a review, then applying a treatment; the repository also contains a separate research pipeline underlying its design priorities. The README documents product behavior, while sampled research files show parts of the study flow. Some skill orchestration and the final analysis implementation were not sampled, so those links are omitted or marked unverified.

Main entry points: [`skills/unslop-anything/SKILL.md`](https://github.com/erkamyaman/unslop-anything/blob/main/skills/unslop-anything/SKILL.md) (Review and treatment), [`research/config.mjs`](https://github.com/erkamyaman/unslop-anything/blob/main/research/config.mjs) (Study configuration), [`research/lib/collect.mjs`](https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/collect.mjs) (Collection engine), [`research/lib/rules.mjs`](https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/rules.mjs) (Theme rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Agent skill"]
  node_skill["Review and treatment<br/>[SKILL.md]"]
  node_detector["UI pattern detector<br/>[detect.js]"]
  node_installer["Agent installer<br/>[install.js]"]
end

subgraph group_guidance["Treatment guidance"]
  node_references["Platform references"]
  node_styles["Style library"]
  node_reporting["Report guidance<br/>[report.md]"]
end

subgraph group_research["Review research"]
  node_apps["App sampling<br/>[1-apps.mjs]"]
  node_apple_collect["Apple review collection"]
  node_play_collect["Play review collection<br/>[3-collect-play.mjs]"]
  node_sampling["Population and samples<br/>[4-sample.mjs]"]
  node_rule_labels["Rule classification<br/>[5-rules.mjs]"]
  node_model_labels["Model classification<br/>[5-classify.mjs]"]
  node_validation["Label validation<br/>[6-validate.mjs]"]
  node_analysis["Study analysis<br/>[7-analyze.mjs]"]
end

subgraph group_researchcore["Research internals"]
  node_review_collection["Collection engine<br/>[collect.mjs]"]
  node_corpus[("Complete review corpus<br/>[corpus.mjs]")]
  node_rules["Theme rules<br/>[rules.mjs]"]
  node_batch_client["Batch labeling<br/>[claude.mjs]"]
  node_taxonomy["Theme taxonomy<br/>[taxonomy.mjs]"]
  node_configuration["Study configuration<br/>[config.mjs]"]
end

node_engineer(("Engineer"))
node_coding_agent(("Coding agent"))
node_app_site["Target app or site"]

node_engineer -->|"requests review"| node_coding_agent
node_coding_agent -->|"invokes skill"| node_skill
node_skill -->|"reviews and treats"| node_app_site
node_engineer -->|"installs skill"| node_installer
node_skill -.->|"uses detector"| node_detector
node_skill -.->|"consults guidance"| node_references
node_skill -->|"applies style"| node_styles
node_skill -.->|"produces report"| node_reporting
node_apps -->|"uses settings"| node_configuration
node_apple_collect -->|"collects through"| node_review_collection
node_play_collect -->|"collects through"| node_review_collection
node_review_collection -->|"uses settings"| node_configuration
node_sampling -->|"reads reviews"| node_corpus
node_sampling -->|"uses settings"| node_configuration
node_rule_labels -->|"classifies with"| node_rules
node_rules -->|"uses themes"| node_taxonomy
node_model_labels -->|"labels through"| node_batch_client
node_batch_client -->|"formats labels"| node_taxonomy
node_validation -->|"requests relabeling"| node_batch_client
node_validation -->|"scores themes"| node_taxonomy
node_analysis -.->|"uses settings"| node_configuration
node_analysis -.->|"analyzes labels"| node_rules

click node_skill "https://github.com/erkamyaman/unslop-anything/blob/main/skills/unslop-anything/SKILL.md"
click node_detector "https://github.com/erkamyaman/unslop-anything/blob/main/skills/unslop-anything/scripts/detect.js"
click node_installer "https://github.com/erkamyaman/unslop-anything/blob/main/cli/install.js"
click node_references "https://github.com/erkamyaman/unslop-anything/tree/main/skills/unslop-anything/reference"
click node_styles "https://github.com/erkamyaman/unslop-anything/tree/main/skills/unslop-anything/reference/styles"
click node_reporting "https://github.com/erkamyaman/unslop-anything/blob/main/skills/unslop-anything/reference/report.md"
click node_apps "https://github.com/erkamyaman/unslop-anything/blob/main/research/1-apps.mjs"
click node_apple_collect "https://github.com/erkamyaman/unslop-anything/blob/main/research/2-collect-apple.mjs"
click node_play_collect "https://github.com/erkamyaman/unslop-anything/blob/main/research/3-collect-play.mjs"
click node_review_collection "https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/collect.mjs"
click node_corpus "https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/corpus.mjs"
click node_sampling "https://github.com/erkamyaman/unslop-anything/blob/main/research/4-sample.mjs"
click node_rule_labels "https://github.com/erkamyaman/unslop-anything/blob/main/research/5-rules.mjs"
click node_rules "https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/rules.mjs"
click node_model_labels "https://github.com/erkamyaman/unslop-anything/blob/main/research/5-classify.mjs"
click node_batch_client "https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/claude.mjs"
click node_taxonomy "https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/taxonomy.mjs"
click node_validation "https://github.com/erkamyaman/unslop-anything/blob/main/research/6-validate.mjs"
click node_analysis "https://github.com/erkamyaman/unslop-anything/blob/main/research/7-analyze.mjs"
click node_configuration "https://github.com/erkamyaman/unslop-anything/blob/main/research/config.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_skill,node_detector,node_installer toneBlue
class node_references,node_styles,node_reporting toneAmber
class node_apps,node_apple_collect,node_play_collect,node_sampling,node_rule_labels,node_model_labels,node_validation,node_analysis toneMint
class node_review_collection,node_corpus,node_rules,node_batch_client,node_taxonomy,node_configuration toneRose
class node_engineer,node_coding_agent,node_app_site toneIndigo
```

## Components

### Agent skill

- [Review and treatment](https://github.com/erkamyaman/unslop-anything/blob/main/skills/unslop-anything/SKILL.md): `skills/unslop-anything/SKILL.md`
- [UI pattern detector](https://github.com/erkamyaman/unslop-anything/blob/main/skills/unslop-anything/scripts/detect.js): `skills/unslop-anything/scripts/detect.js`
- [Agent installer](https://github.com/erkamyaman/unslop-anything/blob/main/cli/install.js): `cli/install.js`

### Treatment guidance

- [Platform references](https://github.com/erkamyaman/unslop-anything/tree/main/skills/unslop-anything/reference): `skills/unslop-anything/reference`
- [Style library](https://github.com/erkamyaman/unslop-anything/tree/main/skills/unslop-anything/reference/styles): `skills/unslop-anything/reference/styles`
- [Report guidance](https://github.com/erkamyaman/unslop-anything/blob/main/skills/unslop-anything/reference/report.md): `skills/unslop-anything/reference/report.md`

### Review research

- [App sampling](https://github.com/erkamyaman/unslop-anything/blob/main/research/1-apps.mjs): `research/1-apps.mjs`
- [Apple review collection](https://github.com/erkamyaman/unslop-anything/blob/main/research/2-collect-apple.mjs): `research/2-collect-apple.mjs`
- [Play review collection](https://github.com/erkamyaman/unslop-anything/blob/main/research/3-collect-play.mjs): `research/3-collect-play.mjs`
- [Population and samples](https://github.com/erkamyaman/unslop-anything/blob/main/research/4-sample.mjs): `research/4-sample.mjs`
- [Rule classification](https://github.com/erkamyaman/unslop-anything/blob/main/research/5-rules.mjs): `research/5-rules.mjs`
- [Model classification](https://github.com/erkamyaman/unslop-anything/blob/main/research/5-classify.mjs): `research/5-classify.mjs`
- [Label validation](https://github.com/erkamyaman/unslop-anything/blob/main/research/6-validate.mjs): `research/6-validate.mjs`
- [Study analysis](https://github.com/erkamyaman/unslop-anything/blob/main/research/7-analyze.mjs): `research/7-analyze.mjs`

### Research internals

- [Collection engine](https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/collect.mjs): `research/lib/collect.mjs`
- [Complete review corpus](https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/corpus.mjs): `research/lib/corpus.mjs`
- [Theme rules](https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/rules.mjs): `research/lib/rules.mjs`
- [Batch labeling](https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/claude.mjs): `research/lib/claude.mjs`
- [Theme taxonomy](https://github.com/erkamyaman/unslop-anything/blob/main/research/lib/taxonomy.mjs): `research/lib/taxonomy.mjs`
- [Study configuration](https://github.com/erkamyaman/unslop-anything/blob/main/research/config.mjs): `research/config.mjs`

### Other components

- **Engineer**
- **Coding agent**
- **Target app or site**

## Connections

- Engineer → Coding agent: requests review (evidence: `README.md`)
- Coding agent → Review and treatment: invokes skill (evidence: `README.md`)
- Review and treatment → Target app or site: reviews and treats (evidence: `README.md`)
- Engineer → Agent installer: installs skill (evidence: `README.md`)
- Review and treatment → UI pattern detector: uses detector
- Review and treatment → Platform references: consults guidance
- Review and treatment → Style library: applies style (evidence: `README.md`)
- Review and treatment → Report guidance: produces report
- App sampling → Study configuration: uses settings (evidence: `research/1-apps.mjs`)
- Apple review collection → Collection engine: collects through (evidence: `research/2-collect-apple.mjs`)
- Play review collection → Collection engine: collects through (evidence: `research/3-collect-play.mjs`)
- Collection engine → Study configuration: uses settings (evidence: `research/lib/collect.mjs`)
- Population and samples → Complete review corpus: reads reviews (evidence: `research/4-sample.mjs`)
- Population and samples → Study configuration: uses settings (evidence: `research/4-sample.mjs`)
- Rule classification → Theme rules: classifies with (evidence: `research/5-rules.mjs`)
- Theme rules → Theme taxonomy: uses themes (evidence: `research/lib/rules.mjs`)
- Model classification → Batch labeling: labels through (evidence: `research/5-classify.mjs`)
- Batch labeling → Theme taxonomy: formats labels (evidence: `research/lib/claude.mjs`)
- Label validation → Batch labeling: requests relabeling (evidence: `research/6-validate.mjs`)
- Label validation → Theme taxonomy: scores themes (evidence: `research/6-validate.mjs`)
- Study analysis → Study configuration: uses settings
- Study analysis → Theme rules: analyzes labels
