# pnp/sharepoint-skills architecture

> Architecture diagram of the GitHub repository pnp/sharepoint-skills, 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/pnp/sharepoint-skills
- Repository: https://github.com/pnp/sharepoint-skills

## Overview

This repository is a curated library of Microsoft 365 SharePoint Copilot skills, with a generated web gallery for discovery and downloads. The documented user workflow is to browse the gallery, review a skill, upload its package to the site’s Agent Assets library, then invoke it in Copilot against SharePoint content. The graph also reflects the gallery’s catalog, preview, and ZIP generation. Skill families are grouped from the repository tree; unsampled page implementations and individual skill instructions are not inferred.

Main entry points: [`Skills`](https://github.com/pnp/sharepoint-skills/tree/main/Skills) (Installable skill packages), [`site/src/pages`](https://github.com/pnp/sharepoint-skills/tree/main/site/src/pages) (Skills gallery), [`site/scripts/gallery-model.mjs`](https://github.com/pnp/sharepoint-skills/blob/main/site/scripts/gallery-model.mjs) (Gallery generator), [`site/scripts/generate-gallery.mjs`](https://github.com/pnp/sharepoint-skills/blob/main/site/scripts/generate-gallery.mjs) (Generation entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Skill discovery"]
  node_gallery_site["Skills gallery"]
end

subgraph group_gallery["Gallery generation"]
  node_gallery_model["Gallery generator<br/>[gallery-model.mjs]"]
  node_catalog_data["Catalog access<br/>[catalog.ts]"]
  node_generator_cli["Generation entry"]
end

subgraph group_skillsets["Skill library"]
  node_skill_library["Installable skill packages"]
  node_document_work["Document workflows"]
  node_library_work["Library workflows"]
  node_governance_work["SharePoint governance"]
  node_project_work["Project intelligence"]
  node_rfp_work["RFP response workflows"]
end

subgraph group_execution["SharePoint execution"]
  node_agent_assets[("Agent Assets library")]
  node_copilot["Copilot in SharePoint"]
  node_sharepoint_content[("SharePoint content")]
  node_task_result["Task result"]
end

node_user(("Skill user"))

node_user -->|"browses"| node_gallery_site
node_gallery_model -->|"provides catalog"| node_catalog_data
node_generator_cli -->|"calls generator"| node_gallery_model
node_gallery_site -.->|"offers skills"| node_skill_library
node_user -->|"reviews skill"| node_skill_library
node_user -->|"uploads package"| node_agent_assets
node_skill_library -->|"installs package"| node_agent_assets
node_user -->|"invokes skill"| node_copilot
node_copilot -->|"uses site context"| node_sharepoint_content
node_copilot -->|"performs task"| node_task_result
node_document_work -.->|"supports tasks"| node_task_result
node_library_work -.->|"supports tasks"| node_task_result
node_governance_work -.->|"supports tasks"| node_task_result
node_project_work -.->|"supports tasks"| node_task_result
node_rfp_work -.->|"supports tasks"| node_task_result

click node_gallery_site "https://github.com/pnp/sharepoint-skills/tree/main/site/src/pages"
click node_gallery_model "https://github.com/pnp/sharepoint-skills/blob/main/site/scripts/gallery-model.mjs"
click node_catalog_data "https://github.com/pnp/sharepoint-skills/blob/main/site/src/lib/catalog.ts"
click node_generator_cli "https://github.com/pnp/sharepoint-skills/blob/main/site/scripts/generate-gallery.mjs"
click node_skill_library "https://github.com/pnp/sharepoint-skills/tree/main/Skills"
click node_document_work "https://github.com/pnp/sharepoint-skills/tree/main/Skills"
click node_library_work "https://github.com/pnp/sharepoint-skills/tree/main/Skills"
click node_governance_work "https://github.com/pnp/sharepoint-skills/tree/main/Skills"
click node_project_work "https://github.com/pnp/sharepoint-skills/tree/main/Skills"
click node_rfp_work "https://github.com/pnp/sharepoint-skills/tree/main/Skills"

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_gallery_site,node_user toneBlue
class node_gallery_model,node_catalog_data,node_generator_cli toneAmber
class node_skill_library,node_document_work,node_library_work,node_governance_work,node_project_work,node_rfp_work toneMint
class node_agent_assets,node_copilot,node_sharepoint_content,node_task_result toneRose
```

## Components

### Skill discovery

- [Skills gallery](https://github.com/pnp/sharepoint-skills/tree/main/site/src/pages): `site/src/pages`

### Gallery generation

- [Gallery generator](https://github.com/pnp/sharepoint-skills/blob/main/site/scripts/gallery-model.mjs): `site/scripts/gallery-model.mjs`
- [Catalog access](https://github.com/pnp/sharepoint-skills/blob/main/site/src/lib/catalog.ts): `site/src/lib/catalog.ts`
- [Generation entry](https://github.com/pnp/sharepoint-skills/blob/main/site/scripts/generate-gallery.mjs): `site/scripts/generate-gallery.mjs`

### Skill library

- [Installable skill packages](https://github.com/pnp/sharepoint-skills/tree/main/Skills): `Skills`
- [Document workflows](https://github.com/pnp/sharepoint-skills/tree/main/Skills): `Skills`
- [Library workflows](https://github.com/pnp/sharepoint-skills/tree/main/Skills): `Skills`
- [SharePoint governance](https://github.com/pnp/sharepoint-skills/tree/main/Skills): `Skills`
- [Project intelligence](https://github.com/pnp/sharepoint-skills/tree/main/Skills): `Skills`
- [RFP response workflows](https://github.com/pnp/sharepoint-skills/tree/main/Skills): `Skills`

### SharePoint execution

- **Agent Assets library**
- **Copilot in SharePoint**
- **SharePoint content**
- **Task result**

### Other components

- **Skill user**

## Connections

- Skill user → Skills gallery: browses (evidence: `README.md`)
- Gallery generator → Catalog access: provides catalog (evidence: `site/src/lib/catalog.ts`)
- Generation entry → Gallery generator: calls generator (evidence: `site/scripts/generate-gallery.mjs`)
- Skills gallery → Installable skill packages: offers skills
- Skill user → Installable skill packages: reviews skill (evidence: `README.md`)
- Skill user → Agent Assets library: uploads package (evidence: `README.md`)
- Installable skill packages → Agent Assets library: installs package (evidence: `README.md`)
- Skill user → Copilot in SharePoint: invokes skill (evidence: `README.md`)
- Copilot in SharePoint → SharePoint content: uses site context (evidence: `README.md`)
- Copilot in SharePoint → Task result: performs task (evidence: `README.md`)
- Document workflows → Task result: supports tasks
- Library workflows → Task result: supports tasks
- SharePoint governance → Task result: supports tasks
- Project intelligence → Task result: supports tasks
- RFP response workflows → Task result: supports tasks
