# supabase/agent-skills architecture

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

- Interactive diagram: https://gitdiagram.com/supabase/agent-skills
- Repository: https://github.com/supabase/agent-skills

## Overview

This repository distributes two Agent Skills: broad guidance for developing with Supabase and a focused collection of PostgreSQL best practices. The principal workflow is an AI agent discovering an installed skill, consulting its instructions, and using relevant guidance for a developer task. The README documents the skills and PostgreSQL topic categories, but no skill source content was sampled, so internal routing between instructions and individual references is not asserted.

Main entry points: [`skills/supabase-postgres-best-practices/SKILL.md`](https://github.com/supabase/agent-skills/blob/main/skills/supabase-postgres-best-practices/SKILL.md) (Postgres skill), [`skills/supabase/SKILL.md`](https://github.com/supabase/agent-skills/blob/main/skills/supabase/SKILL.md) (Supabase skill), [`skills/supabase/references`](https://github.com/supabase/agent-skills/tree/main/skills/supabase/references) (Supplementary reference), [`skills/supabase-postgres-best-practices/references`](https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references) (Query performance)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_supabase["Supabase guidance"]
  node_supabase_skill["Supabase skill<br/>[SKILL.md]"]
  node_supabase_refs["Supplementary reference"]
end

subgraph group_postgres["Postgres guidance"]
  node_postgres_skill["Postgres skill<br/>[SKILL.md]"]
end

subgraph group_references["Postgres topics"]
  node_query["Query performance"]
  node_connections["Connection management"]
  node_schema["Schema design"]
  node_locking["Concurrency and locking"]
  node_security["Security and RLS"]
  node_data_access["Data access patterns"]
  node_monitoring["Monitoring and diagnostics"]
  node_advanced["Advanced features"]
end

node_agent(("AI agent"))

node_agent -->|"uses for Supabase"| node_supabase_skill
node_agent -->|"uses for Postgres"| node_postgres_skill
node_postgres_skill -->|"covers"| node_query
node_postgres_skill -->|"covers"| node_connections
node_postgres_skill -->|"covers"| node_schema
node_postgres_skill -->|"covers"| node_locking
node_postgres_skill -->|"covers"| node_security
node_postgres_skill -->|"covers"| node_data_access
node_postgres_skill -->|"covers"| node_monitoring
node_postgres_skill -->|"covers"| node_advanced
node_supabase_skill -->|"has references"| node_supabase_refs

click node_supabase_skill "https://github.com/supabase/agent-skills/blob/main/skills/supabase/SKILL.md"
click node_supabase_refs "https://github.com/supabase/agent-skills/tree/main/skills/supabase/references"
click node_postgres_skill "https://github.com/supabase/agent-skills/blob/main/skills/supabase-postgres-best-practices/SKILL.md"
click node_query "https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references"
click node_connections "https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references"
click node_schema "https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references"
click node_locking "https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references"
click node_security "https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references"
click node_data_access "https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references"
click node_monitoring "https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references"
click node_advanced "https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references"

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_supabase_skill,node_supabase_refs toneBlue
class node_postgres_skill toneAmber
class node_query,node_connections,node_schema,node_locking,node_security,node_data_access,node_monitoring,node_advanced toneMint
class node_agent toneIndigo
```

## Components

### Supabase guidance

- [Supabase skill](https://github.com/supabase/agent-skills/blob/main/skills/supabase/SKILL.md): `skills/supabase/SKILL.md`
- [Supplementary reference](https://github.com/supabase/agent-skills/tree/main/skills/supabase/references): `skills/supabase/references`

### Postgres guidance

- [Postgres skill](https://github.com/supabase/agent-skills/blob/main/skills/supabase-postgres-best-practices/SKILL.md): `skills/supabase-postgres-best-practices/SKILL.md`

### Postgres topics

- [Query performance](https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references): `skills/supabase-postgres-best-practices/references`
- [Connection management](https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references): `skills/supabase-postgres-best-practices/references`
- [Schema design](https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references): `skills/supabase-postgres-best-practices/references`
- [Concurrency and locking](https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references): `skills/supabase-postgres-best-practices/references`
- [Security and RLS](https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references): `skills/supabase-postgres-best-practices/references`
- [Data access patterns](https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references): `skills/supabase-postgres-best-practices/references`
- [Monitoring and diagnostics](https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references): `skills/supabase-postgres-best-practices/references`
- [Advanced features](https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/references): `skills/supabase-postgres-best-practices/references`

### Other components

- **AI agent**

## Connections

- AI agent → Supabase skill: uses for Supabase (evidence: `README.md`)
- AI agent → Postgres skill: uses for Postgres (evidence: `README.md`)
- Postgres skill → Query performance: covers (evidence: `README.md`)
- Postgres skill → Connection management: covers (evidence: `README.md`)
- Postgres skill → Schema design: covers (evidence: `README.md`)
- Postgres skill → Concurrency and locking: covers (evidence: `README.md`)
- Postgres skill → Security and RLS: covers (evidence: `README.md`)
- Postgres skill → Data access patterns: covers (evidence: `README.md`)
- Postgres skill → Monitoring and diagnostics: covers (evidence: `README.md`)
- Postgres skill → Advanced features: covers (evidence: `README.md`)
- Supabase skill → Supplementary reference: has references (evidence: `README.md`)
