# openhands/extensions architecture

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

- Interactive diagram: https://gitdiagram.com/openhands/extensions
- Repository: https://github.com/openhands/extensions

## Overview

OpenHands Extensions is a public registry and package of reusable skills, executable plugins, Canvas apps, integrations, and automation templates. A consumer imports catalog data or installs an extension; automation templates can then run workflows such as scheduled GitHub review or news digests, using agent conversations and external services. The graph shows documented catalog exports and source-indexed calls. Individual plugin and extension internals are mostly unsampled, so their runtime links are omitted rather than inferred.

Main entry points: [`index.js`](https://github.com/openhands/extensions/blob/main/index.js) (Package exports), [`skills/github-pr-reviewer/scripts/worker.py`](https://github.com/openhands/extensions/blob/main/skills/github-pr-reviewer/scripts/worker.py) (Review worker), [`automations/index.js`](https://github.com/openhands/extensions/blob/main/automations/index.js) (Automation API), [`skills/github-pr-reviewer/scripts/main.py`](https://github.com/openhands/extensions/blob/main/skills/github-pr-reviewer/scripts/main.py) (GitHub PR review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_registry["Registry package"]
  node_package["Package exports<br/>[index.js]"]
  node_skills_api["Skills catalog API<br/>[index.js]"]
  node_apps_api["Apps catalog API<br/>[index.js]"]
  node_integrations_api["Integrations API<br/>[index.js]"]
  node_automation_api["Automation API<br/>[index.js]"]
end

subgraph group_catalogs["Catalog data"]
  node_integrations_data["Integration entries<br/>[catalog-index.js]"]
  node_automation_data["Automation manifests<br/>[catalog-index.js]"]
  node_bundle_data["Automation bundles<br/>[bundle-index.js]"]
end

subgraph group_automation["Automation workflows"]
  node_github_review["GitHub PR review<br/>[main.py]"]
  node_review_worker["Review worker<br/>[worker.py]"]
  node_github_transport["GitHub transport<br/>[github_client.py]"]
  node_conversation["Agent conversations"]
  node_news_digest["News digest<br/>[main.py]"]
end

subgraph group_artifacts["Extension artifacts"]
  node_skills["Reusable skills<br/>[main.py]"]
  node_plugins["Executable plugins<br/>[agent_script.py]"]
  node_apps["Canvas apps<br/>[extension.js]"]
end

subgraph group_python["Python catalog API"]
  node_python_api["Python integration API<br/>[integrations.py]"]
  node_python_models["Validated models"]
end

node_consumer(("Package consumer"))
node_external_services(("GitHub and agent services"))

node_consumer -->|"imports"| node_package
node_package -->|"exports"| node_integrations_api
node_package -->|"exports"| node_automation_api
node_package -->|"exports"| node_skills_api
node_package -->|"exports"| node_apps_api
node_integrations_api -->|"loads entries"| node_integrations_data
node_automation_api -->|"loads entries"| node_automation_data
node_automation_api -->|"loads bundles"| node_bundle_data
node_review_worker -->|"uses"| node_conversation
node_review_worker -->|"uses"| node_github_transport
node_review_worker -->|"uses"| node_news_digest
node_github_review -->|"references"| node_github_transport
node_github_review -.->|"requests"| node_external_services
node_news_digest -.->|"fetches feeds and agent API"| node_external_services
node_python_api -->|"validates with"| node_python_models
node_consumer -->|"uses catalog"| node_python_api

click node_package "https://github.com/openhands/extensions/blob/main/index.js"
click node_skills_api "https://github.com/openhands/extensions/blob/main/skills/index.js"
click node_apps_api "https://github.com/openhands/extensions/blob/main/apps/index.js"
click node_integrations_api "https://github.com/openhands/extensions/blob/main/integrations/index.js"
click node_automation_api "https://github.com/openhands/extensions/blob/main/automations/index.js"
click node_skills "https://github.com/openhands/extensions/blob/main/skills/github-issue-to-pr/scripts/main.py"
click node_plugins "https://github.com/openhands/extensions/blob/main/plugins/pr-review/scripts/agent_script.py"
click node_apps "https://github.com/openhands/extensions/blob/main/apps/vscode/extension.js"
click node_integrations_data "https://github.com/openhands/extensions/blob/main/integrations/catalog-index.js"
click node_automation_data "https://github.com/openhands/extensions/blob/main/automations/catalog-index.js"
click node_bundle_data "https://github.com/openhands/extensions/blob/main/automations/bundle-index.js"
click node_github_review "https://github.com/openhands/extensions/blob/main/skills/github-pr-reviewer/scripts/main.py"
click node_review_worker "https://github.com/openhands/extensions/blob/main/skills/github-pr-reviewer/scripts/worker.py"
click node_github_transport "https://github.com/openhands/extensions/blob/main/skills/github/scripts/github_client.py"
click node_conversation "https://github.com/openhands/extensions/blob/main/skills/github/scripts/agent_conversation.py"
click node_news_digest "https://github.com/openhands/extensions/blob/main/skills/news-digest/scripts/main.py"
click node_python_api "https://github.com/openhands/extensions/blob/main/python/openhands_extensions/integrations.py"
click node_python_models "https://github.com/openhands/extensions/blob/main/python/openhands_extensions/integration_models.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_package,node_skills_api,node_apps_api,node_integrations_api,node_automation_api toneBlue
class node_integrations_data,node_automation_data,node_bundle_data toneAmber
class node_github_review,node_review_worker,node_github_transport,node_conversation,node_news_digest toneMint
class node_skills,node_plugins,node_apps toneRose
class node_python_api,node_python_models,node_consumer,node_external_services toneIndigo
```

## Components

### Registry package

- [Package exports](https://github.com/openhands/extensions/blob/main/index.js): `index.js`
- [Skills catalog API](https://github.com/openhands/extensions/blob/main/skills/index.js): `skills/index.js`
- [Apps catalog API](https://github.com/openhands/extensions/blob/main/apps/index.js): `apps/index.js`
- [Integrations API](https://github.com/openhands/extensions/blob/main/integrations/index.js): `integrations/index.js`
- [Automation API](https://github.com/openhands/extensions/blob/main/automations/index.js): `automations/index.js`

### Catalog data

- [Integration entries](https://github.com/openhands/extensions/blob/main/integrations/catalog-index.js): `integrations/catalog-index.js`
- [Automation manifests](https://github.com/openhands/extensions/blob/main/automations/catalog-index.js): `automations/catalog-index.js`
- [Automation bundles](https://github.com/openhands/extensions/blob/main/automations/bundle-index.js): `automations/bundle-index.js`

### Automation workflows

- [GitHub PR review](https://github.com/openhands/extensions/blob/main/skills/github-pr-reviewer/scripts/main.py): `skills/github-pr-reviewer/scripts/main.py`
- [Review worker](https://github.com/openhands/extensions/blob/main/skills/github-pr-reviewer/scripts/worker.py): `skills/github-pr-reviewer/scripts/worker.py`
- [GitHub transport](https://github.com/openhands/extensions/blob/main/skills/github/scripts/github_client.py): `skills/github/scripts/github_client.py`
- [Agent conversations](https://github.com/openhands/extensions/blob/main/skills/github/scripts/agent_conversation.py): `skills/github/scripts/agent_conversation.py`
- [News digest](https://github.com/openhands/extensions/blob/main/skills/news-digest/scripts/main.py): `skills/news-digest/scripts/main.py`

### Extension artifacts

- [Reusable skills](https://github.com/openhands/extensions/blob/main/skills/github-issue-to-pr/scripts/main.py): `skills/github-issue-to-pr/scripts/main.py`
- [Executable plugins](https://github.com/openhands/extensions/blob/main/plugins/pr-review/scripts/agent_script.py): `plugins/pr-review/scripts/agent_script.py`
- [Canvas apps](https://github.com/openhands/extensions/blob/main/apps/vscode/extension.js): `apps/vscode/extension.js`

### Python catalog API

- [Python integration API](https://github.com/openhands/extensions/blob/main/python/openhands_extensions/integrations.py): `python/openhands_extensions/integrations.py`
- [Validated models](https://github.com/openhands/extensions/blob/main/python/openhands_extensions/integration_models.py): `python/openhands_extensions/integration_models.py`

### Other components

- **Package consumer**
- **GitHub and agent services**

## Connections

- Package consumer → Package exports: imports (evidence: `README.md`)
- Package exports → Integrations API: exports (evidence: `index.js`)
- Package exports → Automation API: exports (evidence: `index.js`)
- Package exports → Skills catalog API: exports (evidence: `index.js`)
- Package exports → Apps catalog API: exports (evidence: `index.js`)
- Integrations API → Integration entries: loads entries (evidence: `integrations/index.js`)
- Automation API → Automation manifests: loads entries (evidence: `automations/index.js`)
- Automation API → Automation bundles: loads bundles (evidence: `automations/index.js`)
- Review worker → Agent conversations: uses (evidence: `skills/github-pr-reviewer/scripts/worker.py`)
- Review worker → GitHub transport: uses (evidence: `skills/github-pr-reviewer/scripts/worker.py`)
- Review worker → News digest: uses (evidence: `skills/github-pr-reviewer/scripts/worker.py`)
- GitHub PR review → GitHub transport: references (evidence: `skills/github-pr-reviewer/scripts/main.py`)
- GitHub PR review → GitHub and agent services: requests
- News digest → GitHub and agent services: fetches feeds and agent API
- Python integration API → Validated models: validates with (evidence: `python/openhands_extensions/integrations.py`)
- Package consumer → Python integration API: uses catalog (evidence: `README.md`)
