# sorantis/portal-ai-plugins architecture

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

- Interactive diagram: https://gitdiagram.com/sorantis/portal-ai-plugins
- Repository: https://github.com/sorantis/portal-ai-plugins

## Overview

This repository is a coding-agent plugin that packages five Portal CLI workflows for Claude Code, Codex, and Cursor. Users enter through their host, choose a workflow, and receive setup/authentication, readiness diagnostics, catalog or documentation search, service briefings, or guarded action invocation. The README documents the shared CLI handoff and setup’s command checks; no source excerpts were provided, so finer-grained internal calls are not asserted.

Main entry points: [`skills/setup/SKILL.md`](https://github.com/sorantis/portal-ai-plugins/blob/main/skills/setup/SKILL.md) (CLI setup), [`skills/doctor/SKILL.md`](https://github.com/sorantis/portal-ai-plugins/blob/main/skills/doctor/SKILL.md) (Readiness diagnostics), [`skills/search/SKILL.md`](https://github.com/sorantis/portal-ai-plugins/blob/main/skills/search/SKILL.md) (Catalog search), [`skills/service/SKILL.md`](https://github.com/sorantis/portal-ai-plugins/blob/main/skills/service/SKILL.md) (Service briefing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hosts["Agent hosts"]
  node_claude(("Claude Code"))
  node_codex(("Codex"))
  node_cursor(("Cursor"))
end

subgraph group_workflows["Portal workflows"]
  node_setup["CLI setup<br/>[SKILL.md]"]
  node_doctor["Readiness diagnostics<br/>[SKILL.md]"]
  node_search["Catalog search<br/>[SKILL.md]"]
  node_service["Service briefing<br/>[SKILL.md]"]
  node_actions["Safe actions<br/>[SKILL.md]"]
end

subgraph group_portal["Portal CLI"]
  node_cli["Portal CLI"]
  node_backend["Spotify Portal"]
end

node_claude -->|"exposes workflows"| node_setup
node_claude -->|"exposes workflows"| node_doctor
node_claude -->|"exposes workflows"| node_search
node_claude -->|"exposes workflows"| node_service
node_claude -->|"exposes workflows"| node_actions
node_codex -->|"discovers workflows"| node_setup
node_codex -->|"discovers workflows"| node_doctor
node_codex -->|"discovers workflows"| node_search
node_codex -->|"discovers workflows"| node_service
node_codex -->|"discovers workflows"| node_actions
node_cursor -->|"discovers workflows"| node_setup
node_cursor -->|"discovers workflows"| node_doctor
node_cursor -->|"discovers workflows"| node_search
node_cursor -->|"discovers workflows"| node_service
node_cursor -->|"discovers workflows"| node_actions
node_setup -->|"invokes commands"| node_cli
node_doctor -->|"invokes commands"| node_cli
node_search -->|"invokes commands"| node_cli
node_service -->|"invokes commands"| node_cli
node_actions -->|"invokes commands"| node_cli
node_cli -.->|"accesses portal"| node_backend

click node_setup "https://github.com/sorantis/portal-ai-plugins/blob/main/skills/setup/SKILL.md"
click node_doctor "https://github.com/sorantis/portal-ai-plugins/blob/main/skills/doctor/SKILL.md"
click node_search "https://github.com/sorantis/portal-ai-plugins/blob/main/skills/search/SKILL.md"
click node_service "https://github.com/sorantis/portal-ai-plugins/blob/main/skills/service/SKILL.md"
click node_actions "https://github.com/sorantis/portal-ai-plugins/blob/main/skills/actions/SKILL.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_claude,node_codex,node_cursor toneBlue
class node_setup,node_doctor,node_search,node_service,node_actions toneAmber
class node_cli,node_backend toneMint
```

## Components

### Agent hosts

- **Claude Code**
- **Codex**
- **Cursor**

### Portal workflows

- [CLI setup](https://github.com/sorantis/portal-ai-plugins/blob/main/skills/setup/SKILL.md): `skills/setup/SKILL.md`
- [Readiness diagnostics](https://github.com/sorantis/portal-ai-plugins/blob/main/skills/doctor/SKILL.md): `skills/doctor/SKILL.md`
- [Catalog search](https://github.com/sorantis/portal-ai-plugins/blob/main/skills/search/SKILL.md): `skills/search/SKILL.md`
- [Service briefing](https://github.com/sorantis/portal-ai-plugins/blob/main/skills/service/SKILL.md): `skills/service/SKILL.md`
- [Safe actions](https://github.com/sorantis/portal-ai-plugins/blob/main/skills/actions/SKILL.md): `skills/actions/SKILL.md`

### Portal CLI

- **Portal CLI**
- **Spotify Portal**

## Connections

- Claude Code → CLI setup: exposes workflows (evidence: `README.md`)
- Claude Code → Readiness diagnostics: exposes workflows (evidence: `README.md`)
- Claude Code → Catalog search: exposes workflows (evidence: `README.md`)
- Claude Code → Service briefing: exposes workflows (evidence: `README.md`)
- Claude Code → Safe actions: exposes workflows (evidence: `README.md`)
- Codex → CLI setup: discovers workflows (evidence: `README.md`)
- Codex → Readiness diagnostics: discovers workflows (evidence: `README.md`)
- Codex → Catalog search: discovers workflows (evidence: `README.md`)
- Codex → Service briefing: discovers workflows (evidence: `README.md`)
- Codex → Safe actions: discovers workflows (evidence: `README.md`)
- Cursor → CLI setup: discovers workflows (evidence: `README.md`)
- Cursor → Readiness diagnostics: discovers workflows (evidence: `README.md`)
- Cursor → Catalog search: discovers workflows (evidence: `README.md`)
- Cursor → Service briefing: discovers workflows (evidence: `README.md`)
- Cursor → Safe actions: discovers workflows (evidence: `README.md`)
- CLI setup → Portal CLI: invokes commands (evidence: `README.md`)
- Readiness diagnostics → Portal CLI: invokes commands (evidence: `README.md`)
- Catalog search → Portal CLI: invokes commands (evidence: `README.md`)
- Service briefing → Portal CLI: invokes commands (evidence: `README.md`)
- Safe actions → Portal CLI: invokes commands (evidence: `README.md`)
- Portal CLI → Spotify Portal: accesses portal
