# agricidaniel/claude-prompts architecture

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

- Interactive diagram: https://gitdiagram.com/agricidaniel/claude-prompts
- Repository: https://github.com/agricidaniel/claude-prompts

## Overview

Claude Prompts is a prompt library and Claude Code skill set for searching, building, enhancing, and adapting AI prompts. The user-facing workflow starts with a command routed by the prompt engine to a skill or the search script, which queries the curated JSON library and returns prompt results. A separate maintenance workflow gathers Airtable data, extracts and categorizes prompts, and produces the library. The README documents the skill capabilities; sampled scripts show search and ingestion behavior, but do not expose the prompt engine’s routing implementation.

Main entry points: [`prompt-engine/SKILL.md`](https://github.com/agricidaniel/claude-prompts/blob/main/prompt-engine/SKILL.md) (Prompt engine), [`scripts/search_prompts.py`](https://github.com/agricidaniel/claude-prompts/blob/main/scripts/search_prompts.py) (Search and filter), [`scripts/scrape_airtable.py`](https://github.com/agricidaniel/claude-prompts/blob/main/scripts/scrape_airtable.py) (Airtable scraper), [`skills/prompt-library/SKILL.md`](https://github.com/agricidaniel/claude-prompts/blob/main/skills/prompt-library/SKILL.md) (Prompt search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Claude Code experience"]
  node_engine["Prompt engine<br/>[SKILL.md]"]
end

subgraph group_prompt_ops["Prompt workflows"]
  node_search_skill["Prompt search<br/>[SKILL.md]"]
  node_build["Prompt builder<br/>[SKILL.md]"]
  node_enhance["Prompt enhancer<br/>[SKILL.md]"]
  node_adapt["Model adapter<br/>[SKILL.md]"]
  node_model_guide["Model guidance<br/>[model-guide.md]"]
  node_patterns["Prompt patterns<br/>[prompt-patterns.md]"]
end

subgraph group_library["Prompt library"]
  node_search_script["Search and filter<br/>[search_prompts.py]"]
  node_prompt_db[("Prompt database<br/>[all_prompts.json]")]
  node_stats[("Prompt statistics<br/>[stats.json]")]
  node_category_data[("Categorized prompt files")]
end

subgraph group_ingestion["Data ingestion"]
  node_scraper["Airtable scraper<br/>[scrape_airtable.py]"]
  node_raw_data["Captured source data"]
  node_extractor["Prompt extraction<br/>[extract_prompts.py]"]
end

node_user(("Claude Code user"))
node_airtable["Airtable views"]

node_user -->|"invokes command"| node_engine
node_engine -->|"routes search"| node_search_skill
node_engine -->|"routes build"| node_build
node_engine -->|"routes enhance"| node_enhance
node_engine -->|"routes adapt"| node_adapt
node_search_skill -->|"runs search"| node_search_script
node_search_script -->|"loads prompts"| node_prompt_db
node_search_script -->|"loads statistics"| node_stats
node_search_script -->|"returns results"| node_user
node_scraper -->|"captures views"| node_airtable
node_scraper -->|"saves capture"| node_raw_data
node_raw_data -->|"provides input"| node_extractor
node_extractor -->|"writes categories"| node_category_data

click node_engine "https://github.com/agricidaniel/claude-prompts/blob/main/prompt-engine/SKILL.md"
click node_search_skill "https://github.com/agricidaniel/claude-prompts/blob/main/skills/prompt-library/SKILL.md"
click node_build "https://github.com/agricidaniel/claude-prompts/blob/main/skills/prompt-build/SKILL.md"
click node_enhance "https://github.com/agricidaniel/claude-prompts/blob/main/skills/prompt-enhance/SKILL.md"
click node_adapt "https://github.com/agricidaniel/claude-prompts/blob/main/skills/prompt-adapt/SKILL.md"
click node_search_script "https://github.com/agricidaniel/claude-prompts/blob/main/scripts/search_prompts.py"
click node_prompt_db "https://github.com/agricidaniel/claude-prompts/blob/main/prompts/all_prompts.json"
click node_stats "https://github.com/agricidaniel/claude-prompts/blob/main/prompts/stats.json"
click node_model_guide "https://github.com/agricidaniel/claude-prompts/blob/main/references/model-guide.md"
click node_patterns "https://github.com/agricidaniel/claude-prompts/blob/main/references/prompt-patterns.md"
click node_scraper "https://github.com/agricidaniel/claude-prompts/blob/main/scripts/scrape_airtable.py"
click node_extractor "https://github.com/agricidaniel/claude-prompts/blob/main/scripts/extract_prompts.py"
click node_category_data "https://github.com/agricidaniel/claude-prompts/tree/main/prompts"

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_engine,node_user,node_airtable toneBlue
class node_search_skill,node_build,node_enhance,node_adapt,node_model_guide,node_patterns toneAmber
class node_search_script,node_prompt_db,node_stats,node_category_data toneMint
class node_scraper,node_raw_data,node_extractor toneRose
```

## Components

### Claude Code experience

- [Prompt engine](https://github.com/agricidaniel/claude-prompts/blob/main/prompt-engine/SKILL.md): `prompt-engine/SKILL.md`

### Prompt workflows

- [Prompt search](https://github.com/agricidaniel/claude-prompts/blob/main/skills/prompt-library/SKILL.md): `skills/prompt-library/SKILL.md`
- [Prompt builder](https://github.com/agricidaniel/claude-prompts/blob/main/skills/prompt-build/SKILL.md): `skills/prompt-build/SKILL.md`
- [Prompt enhancer](https://github.com/agricidaniel/claude-prompts/blob/main/skills/prompt-enhance/SKILL.md): `skills/prompt-enhance/SKILL.md`
- [Model adapter](https://github.com/agricidaniel/claude-prompts/blob/main/skills/prompt-adapt/SKILL.md): `skills/prompt-adapt/SKILL.md`
- [Model guidance](https://github.com/agricidaniel/claude-prompts/blob/main/references/model-guide.md): `references/model-guide.md`
- [Prompt patterns](https://github.com/agricidaniel/claude-prompts/blob/main/references/prompt-patterns.md): `references/prompt-patterns.md`

### Prompt library

- [Search and filter](https://github.com/agricidaniel/claude-prompts/blob/main/scripts/search_prompts.py): `scripts/search_prompts.py`
- [Prompt database](https://github.com/agricidaniel/claude-prompts/blob/main/prompts/all_prompts.json): `prompts/all_prompts.json`
- [Prompt statistics](https://github.com/agricidaniel/claude-prompts/blob/main/prompts/stats.json): `prompts/stats.json`
- [Categorized prompt files](https://github.com/agricidaniel/claude-prompts/tree/main/prompts): `prompts`

### Data ingestion

- [Airtable scraper](https://github.com/agricidaniel/claude-prompts/blob/main/scripts/scrape_airtable.py): `scripts/scrape_airtable.py`
- **Captured source data**
- [Prompt extraction](https://github.com/agricidaniel/claude-prompts/blob/main/scripts/extract_prompts.py): `scripts/extract_prompts.py`

### Other components

- **Claude Code user**
- **Airtable views**

## Connections

- Claude Code user → Prompt engine: invokes command (evidence: `README.md`)
- Prompt engine → Prompt search: routes search (evidence: `README.md`)
- Prompt engine → Prompt builder: routes build (evidence: `README.md`)
- Prompt engine → Prompt enhancer: routes enhance (evidence: `README.md`)
- Prompt engine → Model adapter: routes adapt (evidence: `README.md`)
- Prompt search → Search and filter: runs search (evidence: `README.md`)
- Search and filter → Prompt database: loads prompts (evidence: `scripts/search_prompts.py`)
- Search and filter → Prompt statistics: loads statistics (evidence: `scripts/search_prompts.py`)
- Search and filter → Claude Code user: returns results (evidence: `README.md`)
- Airtable scraper → Airtable views: captures views (evidence: `scripts/scrape_airtable.py`)
- Airtable scraper → Captured source data: saves capture (evidence: `scripts/scrape_airtable.py`)
- Captured source data → Prompt extraction: provides input (evidence: `README.md`)
- Prompt extraction → Categorized prompt files: writes categories (evidence: `README.md`)
