# mochenxin2025-png/skincare-products-skill architecture

> Architecture diagram of the GitHub repository mochenxin2025-png/skincare-products-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mochenxin2025-png/skincare-products-skill
- Repository: https://github.com/mochenxin2025-png/skincare-products-skill

## Overview

Skincare Products Skill is a documentation-driven agent framework for dermatology-oriented cosmetic analysis, not a conventional executable application. Its principal workflow starts from a user question and branches into product analysis or citation mode. Product analysis proceeds through validation, ingredient classification and evidence-aware evaluation to a confidence-adjusted score and report; citation mode routes medical or safety claims to evidence and a structured answer. The graph follows the README’s documented flow and capabilities; source excerpts were unavailable, so relationships are cited only where the README explicitly documents them.

Main entry points: [`SKILL.md`](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/SKILL.md) (Mode selection), [`references/input-parsing-spec.md`](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/input-parsing-spec.md) (Input validation), [`references/framework-full.md`](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md) (Mechanism analysis), [`references/ingredient-ontology-map.md`](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/ingredient-ontology-map.md) (Ingredient ontology)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Skill entry"]
  node_skill["Agent workflow<br/>[SKILL.md]"]
  node_mode["Mode selection<br/>[SKILL.md]"]
end

subgraph group_product["Product analysis"]
  node_validation["Input validation"]
  node_mechanisms["Mechanism analysis<br/>[framework-full.md]"]
  node_architecture["Formula architecture<br/>[framework-full.md]"]
  node_risk["Risk analysis<br/>[framework-full.md]"]
  node_adaptation["Skin adaptation<br/>[framework-full.md]"]
  node_profiles["Category profiles"]
end

subgraph group_evidence["Evidence and data"]
  node_ontology["Ingredient ontology"]
  node_databases[("Ingredient databases")]
  node_interactions["Interaction rules"]
  node_classification["Problem classification<br/>[framework-full.md]"]
  node_claims["Claim extraction"]
  node_routing["Evidence routing"]
  node_ranking["Evidence ranking"]
end

subgraph group_outputs["Evaluation outputs"]
  node_confidence["Confidence engine"]
  node_scoring["Product scoring"]
  node_report["Product report"]
  node_cards["Evidence cards"]
  node_citationanswer["Five-section answer"]
end

node_user(("User question"))

node_user -->|"asks"| node_skill
node_skill -->|"selects mode"| node_mode
node_mode -->|"product analysis"| node_validation
node_validation -->|"maps ingredients"| node_ontology
node_ontology -->|"queries"| node_databases
node_databases -->|"checks interactions"| node_interactions
node_interactions -->|"informs analysis"| node_mechanisms
node_mechanisms -->|"analyzes formula"| node_architecture
node_architecture -->|"assesses risk"| node_risk
node_risk -->|"assesses fit"| node_adaptation
node_adaptation -->|"propagates uncertainty"| node_confidence
node_confidence -->|"qualifies score"| node_scoring
node_scoring -->|"produces report"| node_report
node_mode -->|"uses category weights"| node_profiles
node_mode -->|"citation mode"| node_classification
node_classification -->|"extracts claims"| node_claims
node_claims -->|"routes evidence"| node_routing
node_routing -->|"ranks evidence"| node_ranking
node_ranking -->|"formats evidence"| node_cards
node_cards -->|"supports answer"| node_citationanswer

click node_skill "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/SKILL.md"
click node_mode "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/SKILL.md"
click node_validation "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/input-parsing-spec.md"
click node_ontology "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/ingredient-ontology-map.md"
click node_databases "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/bootstrap-database.md"
click node_interactions "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/interaction-rules.md"
click node_mechanisms "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md"
click node_architecture "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md"
click node_risk "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md"
click node_adaptation "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md"
click node_profiles "https://github.com/mochenxin2025-png/skincare-products-skill/tree/master/references"
click node_confidence "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/confidence-engine-spec.md"
click node_scoring "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/scoring-algorithm.md"
click node_report "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/output-format-spec.md"
click node_classification "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md"
click node_claims "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/evidence-citation-spec.md"
click node_routing "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/evidence-citation-spec.md"
click node_ranking "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/evidence-citation-spec.md"
click node_cards "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/evidence-citation-spec.md"
click node_citationanswer "https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/output-format-spec.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_skill,node_mode,node_user toneBlue
class node_validation,node_mechanisms,node_architecture,node_risk,node_adaptation,node_profiles toneAmber
class node_ontology,node_databases,node_interactions,node_classification,node_claims,node_routing,node_ranking toneMint
class node_confidence,node_scoring,node_report,node_cards,node_citationanswer toneRose
```

## Components

### Skill entry

- [Agent workflow](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/SKILL.md): `SKILL.md`
- [Mode selection](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/SKILL.md): `SKILL.md`

### Product analysis

- [Input validation](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/input-parsing-spec.md): `references/input-parsing-spec.md`
- [Mechanism analysis](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md): `references/framework-full.md`
- [Formula architecture](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md): `references/framework-full.md`
- [Risk analysis](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md): `references/framework-full.md`
- [Skin adaptation](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md): `references/framework-full.md`
- [Category profiles](https://github.com/mochenxin2025-png/skincare-products-skill/tree/master/references): `references`

### Evidence and data

- [Ingredient ontology](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/ingredient-ontology-map.md): `references/ingredient-ontology-map.md`
- [Ingredient databases](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/bootstrap-database.md): `references/bootstrap-database.md`
- [Interaction rules](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/interaction-rules.md): `references/interaction-rules.md`
- [Problem classification](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/framework-full.md): `references/framework-full.md`
- [Claim extraction](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/evidence-citation-spec.md): `references/evidence-citation-spec.md`
- [Evidence routing](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/evidence-citation-spec.md): `references/evidence-citation-spec.md`
- [Evidence ranking](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/evidence-citation-spec.md): `references/evidence-citation-spec.md`

### Evaluation outputs

- [Confidence engine](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/confidence-engine-spec.md): `references/confidence-engine-spec.md`
- [Product scoring](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/scoring-algorithm.md): `references/scoring-algorithm.md`
- [Product report](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/output-format-spec.md): `references/output-format-spec.md`
- [Evidence cards](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/evidence-citation-spec.md): `references/evidence-citation-spec.md`
- [Five-section answer](https://github.com/mochenxin2025-png/skincare-products-skill/blob/master/references/output-format-spec.md): `references/output-format-spec.md`

### Other components

- **User question**

## Connections

- User question → Agent workflow: asks (evidence: `README.md`)
- Agent workflow → Mode selection: selects mode (evidence: `README.md`)
- Mode selection → Input validation: product analysis (evidence: `README.md`)
- Input validation → Ingredient ontology: maps ingredients (evidence: `README.md`)
- Ingredient ontology → Ingredient databases: queries (evidence: `README.md`)
- Ingredient databases → Interaction rules: checks interactions (evidence: `README.md`)
- Interaction rules → Mechanism analysis: informs analysis (evidence: `README.md`)
- Mechanism analysis → Formula architecture: analyzes formula (evidence: `README.md`)
- Formula architecture → Risk analysis: assesses risk (evidence: `README.md`)
- Risk analysis → Skin adaptation: assesses fit (evidence: `README.md`)
- Skin adaptation → Confidence engine: propagates uncertainty (evidence: `README.md`)
- Confidence engine → Product scoring: qualifies score (evidence: `README.md`)
- Product scoring → Product report: produces report (evidence: `README.md`)
- Mode selection → Category profiles: uses category weights (evidence: `README.md`)
- Mode selection → Problem classification: citation mode (evidence: `README.md`)
- Problem classification → Claim extraction: extracts claims (evidence: `README.md`)
- Claim extraction → Evidence routing: routes evidence (evidence: `README.md`)
- Evidence routing → Evidence ranking: ranks evidence (evidence: `README.md`)
- Evidence ranking → Evidence cards: formats evidence (evidence: `README.md`)
- Evidence cards → Five-section answer: supports answer (evidence: `README.md`)
