# youmind-openlab/ai-image-prompts-skill architecture

> Architecture diagram of the GitHub repository youmind-openlab/ai-image-prompts-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/youmind-openlab/ai-image-prompts-skill
- Repository: https://github.com/youmind-openlab/ai-image-prompts-skill

## Overview

This repository packages an AI-assistant skill for finding and adapting curated image-generation prompts. A user describes an image need or supplies content; the assistant uses the skill instructions and categorized prompt references to recommend prompt matches, then can tailor a selected prompt. Separately, a generator refreshes categorized data and the skill’s reference listing from a CMS, while setup downloads the manifest and prompt files from GitHub. README documents the assistant capabilities; sampled source shows the data-refresh and download mechanics, not the skill’s search implementation.

Main entry points: [`scripts/generate-references.ts`](https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/scripts/generate-references.ts) (Reference generator), [`scripts/setup.js`](https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/scripts/setup.js) (Library setup), [`SKILL.md`](https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/SKILL.md) (Skill instructions), [`references`](https://github.com/youmind-openlab/ai-image-prompts-skill/tree/main/references) (Prompt categories)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_skill["Assistant Skill"]
  node_skill_instructions["Skill instructions<br/>[SKILL.md]"]
end

subgraph group_library["Prompt Library"]
  node_prompt_categories[("Prompt categories")]
  node_manifest["Category manifest<br/>[manifest.json]"]
end

subgraph group_refresh["Data Refresh"]
  node_generator["Reference generator"]
  node_setup["Library setup<br/>[setup.js]"]
end

node_user(("User"))
node_assistant(("AI assistant"))
node_cms[("Prompt CMS")]
node_github["GitHub raw files"]

node_user -->|"describes need"| node_assistant
node_assistant -->|"uses skill"| node_skill_instructions
node_skill_instructions -->|"searches prompts"| node_prompt_categories
node_assistant -->|"recommends prompts"| node_user
node_assistant -->|"remixes prompt"| node_user
node_generator -->|"fetches prompts"| node_cms
node_generator -->|"writes categories"| node_prompt_categories
node_generator -->|"writes manifest"| node_manifest
node_generator -->|"updates listing"| node_skill_instructions
node_setup -->|"downloads files"| node_github
node_setup -->|"saves manifest"| node_manifest
node_setup -->|"saves categories"| node_prompt_categories

click node_skill_instructions "https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/SKILL.md"
click node_prompt_categories "https://github.com/youmind-openlab/ai-image-prompts-skill/tree/main/references"
click node_manifest "https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/references/manifest.json"
click node_generator "https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/scripts/generate-references.ts"
click node_setup "https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/scripts/setup.js"

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_instructions,node_user toneBlue
class node_prompt_categories,node_manifest,node_cms toneAmber
class node_generator,node_setup toneMint
class node_assistant,node_github toneIndigo
```

## Components

### Assistant Skill

- [Skill instructions](https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/SKILL.md): `SKILL.md`

### Prompt Library

- [Prompt categories](https://github.com/youmind-openlab/ai-image-prompts-skill/tree/main/references): `references`
- [Category manifest](https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/references/manifest.json): `references/manifest.json`

### Data Refresh

- [Reference generator](https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/scripts/generate-references.ts): `scripts/generate-references.ts`
- [Library setup](https://github.com/youmind-openlab/ai-image-prompts-skill/blob/main/scripts/setup.js): `scripts/setup.js`

### Other components

- **User**
- **AI assistant**
- **Prompt CMS**
- **GitHub raw files**

## Connections

- User → AI assistant: describes need (evidence: `README.md`)
- AI assistant → Skill instructions: uses skill (evidence: `README.md`)
- Skill instructions → Prompt categories: searches prompts (evidence: `README.md`)
- AI assistant → User: recommends prompts (evidence: `README.md`)
- AI assistant → User: remixes prompt (evidence: `README.md`)
- Reference generator → Prompt CMS: fetches prompts (evidence: `scripts/generate-references.ts`)
- Reference generator → Prompt categories: writes categories (evidence: `scripts/generate-references.ts`)
- Reference generator → Category manifest: writes manifest (evidence: `scripts/generate-references.ts`)
- Reference generator → Skill instructions: updates listing (evidence: `scripts/generate-references.ts`)
- Library setup → GitHub raw files: downloads files (evidence: `scripts/setup.js`)
- Library setup → Category manifest: saves manifest (evidence: `scripts/setup.js`)
- Library setup → Prompt categories: saves categories (evidence: `scripts/setup.js`)
