# jaya-nandyala-tw/ai-dev-kit architecture

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

- Interactive diagram: https://gitdiagram.com/jaya-nandyala-tw/ai-dev-kit
- Repository: https://github.com/jaya-nandyala-tw/ai-dev-kit

## Overview

AI Starter Kit helps teams adopt a shared AI-agent harness, with a guided local dashboard for configuring files and running setup, plus optional Jira/Confluence tooling. The dashboard’s adoption flow is the main user-to-result path; its API, file-management, and context-storage layers support that workflow. The README documents additional agent, skill, prompt, and guardrail capabilities, but their source files are absent from the supplied tree, so they are not mapped here. Some dashboard connections are documented in the README rather than visible in sampled source.

Main entry points: [`onboarding-ui/lib/managedFiles.ts`](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/managedFiles.ts) (Managed configuration), [`atlassian_client/jira_client.py`](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/jira_client.py) (Jira client), [`atlassian_client/agent.py`](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/agent.py) (Natural-language CLI), [`onboarding-ui/app/page.tsx`](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/page.tsx) (Onboarding dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_onboarding["Guided onboarding"]
  node_dashboard["Onboarding dashboard<br/>[page.tsx]"]
  node_wizard["Setup wizard<br/>[page.tsx]"]
  node_recommendations_ui["Recommendations panel<br/>[page.tsx]"]
  node_api_client["API client<br/>[apiClient.ts]"]
  node_setup_api["Setup APIs"]
  node_run_api["Run APIs<br/>[route.ts]"]
  node_processes["Setup processes<br/>[processRegistry.ts]"]
end

subgraph group_files["Configuration and context"]
  node_file_config["Managed configuration<br/>[managedFiles.ts]"]
  node_diffs["Diff generation<br/>[diff.ts]"]
  node_templates["Starter templates<br/>[templates.ts]"]
  node_repo_paths["Repository path resolver<br/>[paths.ts]"]
  node_context_api["Context APIs<br/>[route.ts]"]
  node_context_store[("Context storage<br/>[contextStore.ts]")]
end

subgraph group_atlassian["Atlassian tooling"]
  node_cli_agent["Natural-language CLI<br/>[agent.py]"]
  node_jira["Jira client<br/>[jira_client.py]"]
  node_confluence["Confluence client"]
  node_http_base["HTTP auth and retries<br/>[base_client.py]"]
  node_credentials["Atlassian credentials<br/>[config.py]"]
end

node_team(("Adopting team"))
node_jira_cloud(("Jira Cloud"))
node_confluence_cloud(("Confluence Cloud"))

node_team -->|"adopts through"| node_dashboard
node_dashboard -.->|"guides setup"| node_wizard
node_dashboard -->|"offers resources"| node_recommendations_ui
node_wizard -.->|"uses"| node_api_client
node_api_client -.->|"calls"| node_setup_api
node_setup_api -.->|"previews and writes"| node_file_config
node_setup_api -.->|"starts and controls"| node_run_api
node_run_api -.->|"manages runs"| node_processes
node_file_config -->|"builds diffs"| node_diffs
node_file_config -->|"uses baselines"| node_templates
node_file_config -->|"resolves files"| node_repo_paths
node_context_api -->|"reads and saves"| node_context_store
node_context_store -->|"resolves storage"| node_repo_paths
node_cli_agent -->|"dispatches Jira requests"| node_jira
node_cli_agent -->|"dispatches Confluence requests"| node_confluence
node_cli_agent -->|"formats results"| node_jira
node_jira -->|"uses requests"| node_http_base
node_confluence -->|"uses requests"| node_http_base
node_http_base -->|"loads authentication"| node_credentials
node_jira -.->|"calls API"| node_jira_cloud
node_confluence -.->|"searches and fetches"| node_confluence_cloud

click node_dashboard "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/page.tsx"
click node_wizard "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/steps/%5BstepId%5D/page.tsx"
click node_recommendations_ui "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/recommendations/page.tsx"
click node_api_client "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/apiClient.ts"
click node_setup_api "https://github.com/jaya-nandyala-tw/ai-dev-kit/tree/main/onboarding-ui/app/api"
click node_run_api "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/api/run/%5Bid%5D/route.ts"
click node_processes "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/processRegistry.ts"
click node_file_config "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/managedFiles.ts"
click node_diffs "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/diff.ts"
click node_templates "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/templates.ts"
click node_repo_paths "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/paths.ts"
click node_context_api "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/api/context/route.ts"
click node_context_store "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/contextStore.ts"
click node_cli_agent "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/agent.py"
click node_jira "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/jira_client.py"
click node_confluence "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/confluence_client.py"
click node_http_base "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/base_client.py"
click node_credentials "https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/config.py"

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_dashboard,node_wizard,node_recommendations_ui,node_api_client,node_setup_api,node_run_api,node_processes toneBlue
class node_file_config,node_diffs,node_templates,node_repo_paths,node_context_api,node_context_store toneAmber
class node_cli_agent,node_jira,node_confluence,node_http_base,node_credentials toneMint
class node_team,node_jira_cloud,node_confluence_cloud toneIndigo
```

## Components

### Guided onboarding

- [Onboarding dashboard](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/page.tsx): `onboarding-ui/app/page.tsx`
- [Setup wizard](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/steps/%5BstepId%5D/page.tsx): `onboarding-ui/app/steps/[stepId]/page.tsx`
- [Recommendations panel](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/recommendations/page.tsx): `onboarding-ui/app/recommendations/page.tsx`
- [API client](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/apiClient.ts): `onboarding-ui/lib/apiClient.ts`
- [Setup APIs](https://github.com/jaya-nandyala-tw/ai-dev-kit/tree/main/onboarding-ui/app/api): `onboarding-ui/app/api`
- [Run APIs](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/api/run/%5Bid%5D/route.ts): `onboarding-ui/app/api/run/[id]/route.ts`
- [Setup processes](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/processRegistry.ts): `onboarding-ui/lib/processRegistry.ts`

### Configuration and context

- [Managed configuration](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/managedFiles.ts): `onboarding-ui/lib/managedFiles.ts`
- [Diff generation](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/diff.ts): `onboarding-ui/lib/diff.ts`
- [Starter templates](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/templates.ts): `onboarding-ui/lib/templates.ts`
- [Repository path resolver](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/paths.ts): `onboarding-ui/lib/paths.ts`
- [Context APIs](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/app/api/context/route.ts): `onboarding-ui/app/api/context/route.ts`
- [Context storage](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/onboarding-ui/lib/contextStore.ts): `onboarding-ui/lib/contextStore.ts`

### Atlassian tooling

- [Natural-language CLI](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/agent.py): `atlassian_client/agent.py`
- [Jira client](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/jira_client.py): `atlassian_client/jira_client.py`
- [Confluence client](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/confluence_client.py): `atlassian_client/confluence_client.py`
- [HTTP auth and retries](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/base_client.py): `atlassian_client/base_client.py`
- [Atlassian credentials](https://github.com/jaya-nandyala-tw/ai-dev-kit/blob/main/atlassian_client/config.py): `atlassian_client/config.py`

### Other components

- **Adopting team**
- **Jira Cloud**
- **Confluence Cloud**

## Connections

- Adopting team → Onboarding dashboard: adopts through (evidence: `README.md`)
- Onboarding dashboard → Setup wizard: guides setup
- Onboarding dashboard → Recommendations panel: offers resources (evidence: `README.md`)
- Setup wizard → API client: uses
- API client → Setup APIs: calls
- Setup APIs → Managed configuration: previews and writes
- Setup APIs → Run APIs: starts and controls
- Run APIs → Setup processes: manages runs
- Managed configuration → Diff generation: builds diffs (evidence: `onboarding-ui/lib/managedFiles.ts`)
- Managed configuration → Starter templates: uses baselines (evidence: `onboarding-ui/lib/managedFiles.ts`)
- Managed configuration → Repository path resolver: resolves files (evidence: `onboarding-ui/lib/managedFiles.ts`)
- Context APIs → Context storage: reads and saves (evidence: `onboarding-ui/app/api/context/route.ts`)
- Context storage → Repository path resolver: resolves storage (evidence: `onboarding-ui/lib/contextStore.ts`)
- Natural-language CLI → Jira client: dispatches Jira requests (evidence: `atlassian_client/agent.py`)
- Natural-language CLI → Confluence client: dispatches Confluence requests (evidence: `atlassian_client/agent.py`)
- Natural-language CLI → Jira client: formats results (evidence: `atlassian_client/agent.py`)
- Jira client → HTTP auth and retries: uses requests (evidence: `atlassian_client/jira_client.py`)
- Confluence client → HTTP auth and retries: uses requests (evidence: `atlassian_client/confluence_client.py`)
- HTTP auth and retries → Atlassian credentials: loads authentication (evidence: `atlassian_client/base_client.py`)
- Jira client → Jira Cloud: calls API
- Confluence client → Confluence Cloud: searches and fetches
