# instructa/ai-prompts architecture

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

- Interactive diagram: https://gitdiagram.com/instructa/ai-prompts
- Repository: https://github.com/instructa/ai-prompts

## Overview

Instructa AI Prompts is a curated content repository, not an application service. The main workflow is that developers find a prompt or rule for a framework, integration, or coding task and include it in their AI coding tool; the documented tool-specific configuration is performed by the user. The repository also has a supporting index-generation path that reads prompt metadata and Markdown, parses front matter, and writes a consolidated JSON index. The README and sampled scripts support these relationships; individual prompt contents were not inspected.

Main entry points: [`scripts/build-index.js`](https://github.com/instructa/ai-prompts/blob/main/scripts/build-index.js) (Index builder), [`prompts`](https://github.com/instructa/ai-prompts/tree/main/prompts) (Framework prompts), [`scripts/parse-mdc.js`](https://github.com/instructa/ai-prompts/blob/main/scripts/parse-mdc.js) (Front-matter parser), [`prompt-template`](https://github.com/instructa/ai-prompts/tree/main/prompt-template) (Prompt template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Prompt catalog"]
  node_frameworks["Framework prompts"]
  node_integrations["Service integrations"]
  node_coding_rules["Coding rules"]
  node_feature_guides["Feature guides"]
  node_starter_guides["Setup guides"]
  node_template["Prompt template"]
end

subgraph group_indexing["Index generation"]
  node_builder["Index builder<br/>[build-index.js]"]
  node_metadata["Prompt metadata"]
  node_parser["Front-matter parser<br/>[parse-mdc.js]"]
  node_index["Prompt index<br/>[index.json]"]
end

subgraph group_tooling["AI coding tools"]
  node_ai_tools(("AI coding tools"))
end

node_developer(("Developer"))

node_developer -->|"chooses prompt"| node_frameworks
node_developer -->|"chooses prompt"| node_integrations
node_developer -->|"chooses rules"| node_coding_rules
node_developer -->|"chooses guide"| node_feature_guides
node_developer -->|"chooses guide"| node_starter_guides
node_developer -->|"uses example"| node_template
node_developer -->|"configures"| node_ai_tools
node_frameworks -->|"informs"| node_ai_tools
node_integrations -->|"informs"| node_ai_tools
node_coding_rules -->|"guides"| node_ai_tools
node_feature_guides -->|"guides"| node_ai_tools
node_starter_guides -->|"guides"| node_ai_tools
node_builder -->|"reads"| node_metadata
node_builder -->|"calls"| node_parser
node_parser -->|"returns parsed data"| node_builder
node_builder -->|"writes"| node_index

click node_frameworks "https://github.com/instructa/ai-prompts/tree/main/prompts"
click node_integrations "https://github.com/instructa/ai-prompts/tree/main/prompts"
click node_coding_rules "https://github.com/instructa/ai-prompts/tree/main/prompts"
click node_feature_guides "https://github.com/instructa/ai-prompts/tree/main/prompts"
click node_starter_guides "https://github.com/instructa/ai-prompts/tree/main/prompts"
click node_template "https://github.com/instructa/ai-prompts/tree/main/prompt-template"
click node_builder "https://github.com/instructa/ai-prompts/blob/main/scripts/build-index.js"
click node_metadata "https://github.com/instructa/ai-prompts/tree/main/prompts"
click node_parser "https://github.com/instructa/ai-prompts/blob/main/scripts/parse-mdc.js"
click node_index "https://github.com/instructa/ai-prompts/blob/main/data/index.json"

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_frameworks,node_integrations,node_coding_rules,node_feature_guides,node_starter_guides,node_template toneBlue
class node_builder,node_metadata,node_parser,node_index toneAmber
class node_ai_tools toneMint
class node_developer toneIndigo
```

## Components

### Prompt catalog

- [Framework prompts](https://github.com/instructa/ai-prompts/tree/main/prompts): `prompts`
- [Service integrations](https://github.com/instructa/ai-prompts/tree/main/prompts): `prompts`
- [Coding rules](https://github.com/instructa/ai-prompts/tree/main/prompts): `prompts`
- [Feature guides](https://github.com/instructa/ai-prompts/tree/main/prompts): `prompts`
- [Setup guides](https://github.com/instructa/ai-prompts/tree/main/prompts): `prompts`
- [Prompt template](https://github.com/instructa/ai-prompts/tree/main/prompt-template): `prompt-template`

### Index generation

- [Index builder](https://github.com/instructa/ai-prompts/blob/main/scripts/build-index.js): `scripts/build-index.js`
- [Prompt metadata](https://github.com/instructa/ai-prompts/tree/main/prompts): `prompts`
- [Front-matter parser](https://github.com/instructa/ai-prompts/blob/main/scripts/parse-mdc.js): `scripts/parse-mdc.js`
- [Prompt index](https://github.com/instructa/ai-prompts/blob/main/data/index.json): `data/index.json`

### AI coding tools

- **AI coding tools**

### Other components

- **Developer**

## Connections

- Developer → Framework prompts: chooses prompt (evidence: `README.md`)
- Developer → Service integrations: chooses prompt (evidence: `README.md`)
- Developer → Coding rules: chooses rules (evidence: `README.md`)
- Developer → Feature guides: chooses guide (evidence: `README.md`)
- Developer → Setup guides: chooses guide (evidence: `README.md`)
- Developer → Prompt template: uses example (evidence: `README.md`)
- Developer → AI coding tools: configures (evidence: `README.md`)
- Framework prompts → AI coding tools: informs (evidence: `README.md`)
- Service integrations → AI coding tools: informs (evidence: `README.md`)
- Coding rules → AI coding tools: guides (evidence: `README.md`)
- Feature guides → AI coding tools: guides (evidence: `README.md`)
- Setup guides → AI coding tools: guides (evidence: `README.md`)
- Index builder → Prompt metadata: reads (evidence: `scripts/build-index.js`)
- Index builder → Front-matter parser: calls (evidence: `scripts/build-index.js`)
- Front-matter parser → Index builder: returns parsed data (evidence: `scripts/parse-mdc.js`)
- Index builder → Prompt index: writes (evidence: `scripts/build-index.js`)
