# snarktank/ai-dev-tasks architecture

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

- Interactive diagram: https://gitdiagram.com/snarktank/ai-dev-tasks
- Repository: https://github.com/snarktank/ai-dev-tasks

## Overview

AI Dev Tasks is a pair of reusable Markdown prompt templates for guiding AI-assisted feature work. A user starts with a feature idea; an AI uses the PRD prompt to produce a requirements document, then uses the task-generation prompt with that PRD to create an implementation plan. The AI works through tasks incrementally, with the user reviewing changes. The README documents this workflow; source excerpts were not provided, so relationships below rely on that documentation.

Main entry points: [`generate-tasks.md`](https://github.com/snarktank/ai-dev-tasks/blob/main/generate-tasks.md) (Task prompt), [`create-prd.md`](https://github.com/snarktank/ai-dev-tasks/blob/main/create-prd.md) (PRD prompt)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Feature planning"]
  node_prd_prompt["PRD prompt<br/>[create-prd.md]"]
  node_prd["Requirements document"]
  node_task_prompt["Task prompt<br/>[generate-tasks.md]"]
end

subgraph group_execution["Task execution"]
  node_task_list["Task list"]
  node_implementation["Task implementation"]
  node_review["User review"]
end

node_user(("User"))
node_idea["Feature idea"]
node_assistant{{"AI assistant"}}

node_user -->|"describes feature"| node_idea
node_user -->|"initiates PRD"| node_assistant
node_assistant -->|"uses prompt"| node_prd_prompt
node_prd_prompt -->|"generates PRD"| node_prd
node_user -->|"requests tasks"| node_assistant
node_assistant -->|"uses prompt"| node_task_prompt
node_prd -->|"provides input"| node_task_prompt
node_task_prompt -->|"generates tasks"| node_task_list
node_assistant -->|"works through tasks"| node_implementation
node_task_list -->|"guides work"| node_implementation
node_implementation -->|"prompts review"| node_review
node_user -->|"reviews changes"| node_review

click node_prd_prompt "https://github.com/snarktank/ai-dev-tasks/blob/main/create-prd.md"
click node_task_prompt "https://github.com/snarktank/ai-dev-tasks/blob/main/generate-tasks.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_prd_prompt,node_prd,node_task_prompt,node_user toneBlue
class node_task_list,node_implementation,node_review toneAmber
class node_idea,node_assistant toneIndigo
```

## Components

### Feature planning

- [PRD prompt](https://github.com/snarktank/ai-dev-tasks/blob/main/create-prd.md): `create-prd.md`
- **Requirements document**
- [Task prompt](https://github.com/snarktank/ai-dev-tasks/blob/main/generate-tasks.md): `generate-tasks.md`

### Task execution

- **Task list**
- **Task implementation**
- **User review**

### Other components

- **User**
- **Feature idea**
- **AI assistant**

## Connections

- User → Feature idea: describes feature (evidence: `README.md`)
- User → AI assistant: initiates PRD (evidence: `README.md`)
- AI assistant → PRD prompt: uses prompt (evidence: `README.md`)
- PRD prompt → Requirements document: generates PRD (evidence: `README.md`)
- User → AI assistant: requests tasks (evidence: `README.md`)
- AI assistant → Task prompt: uses prompt (evidence: `README.md`)
- Requirements document → Task prompt: provides input (evidence: `README.md`)
- Task prompt → Task list: generates tasks (evidence: `README.md`)
- AI assistant → Task implementation: works through tasks (evidence: `README.md`)
- Task list → Task implementation: guides work (evidence: `README.md`)
- Task implementation → User review: prompts review (evidence: `README.md`)
- User → User review: reviews changes (evidence: `README.md`)
