# divinity-science/platform-template architecture

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

- Interactive diagram: https://gitdiagram.com/divinity-science/platform-template
- Repository: https://github.com/divinity-science/platform-template

## Overview

This repository is a starter template for standardizing how Divinity Science projects move from specification to deployment. The documented workflow runs from a Notion spec and Linear issue through a GitHub branch and PR, required CI/security checks, and merge/deploy. The graph captures those documented handoffs and the template’s security-scanning capability; no source excerpts were provided, so relationships are evidenced by the README only.

Main entry points: [`README.md`](https://github.com/divinity-science/platform-template/blob/main/README.md) (Pull request), [`.github/branch-protection.md`](https://github.com/divinity-science/platform-template/blob/main/.github/branch-protection.md) (Branch protection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Change workflow"]
  node_branch["Work branch<br/>[README.md]"]
  node_pr["Pull request<br/>[README.md]"]
  node_merge["PR merge<br/>[README.md]"]
end

subgraph group_assurance["Checks and security"]
  node_checks["Required checks<br/>[README.md]"]
  node_secret_scan["Secret scanning<br/>[README.md]"]
  node_sast["SAST scanning<br/>[README.md]"]
  node_dependency_alerts["Dependency alerts<br/>[README.md]"]
end

subgraph group_governance["Repository governance"]
  node_branch_protection["Branch protection"]
  node_template["Repository template<br/>[README.md]"]
end

node_notion["Project spec"]
node_linear["Linear issue"]
node_contributor(("Contributor"))
node_deployment["Deployment"]

node_notion -->|"specifies work"| node_linear
node_contributor -->|"creates issue"| node_linear
node_linear -->|"guides branching"| node_branch
node_contributor -->|"creates branch"| node_branch
node_branch -->|"opens against main"| node_pr
node_pr -->|"requires passing"| node_checks
node_pr -->|"permits merge"| node_merge
node_merge -->|"precedes deploy"| node_deployment
node_checks -->|"includes"| node_secret_scan
node_checks -->|"includes"| node_sast
node_template -->|"documents"| node_dependency_alerts
node_branch_protection -->|"blocks direct pushes"| node_merge

click node_branch "https://github.com/divinity-science/platform-template/blob/main/README.md"
click node_pr "https://github.com/divinity-science/platform-template/blob/main/README.md"
click node_merge "https://github.com/divinity-science/platform-template/blob/main/README.md"
click node_checks "https://github.com/divinity-science/platform-template/blob/main/README.md"
click node_secret_scan "https://github.com/divinity-science/platform-template/blob/main/README.md"
click node_sast "https://github.com/divinity-science/platform-template/blob/main/README.md"
click node_dependency_alerts "https://github.com/divinity-science/platform-template/blob/main/README.md"
click node_branch_protection "https://github.com/divinity-science/platform-template/blob/main/.github/branch-protection.md"
click node_template "https://github.com/divinity-science/platform-template/blob/main/README.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_branch,node_pr,node_merge toneBlue
class node_checks,node_secret_scan,node_sast,node_dependency_alerts toneAmber
class node_branch_protection,node_template toneMint
class node_notion,node_linear,node_contributor,node_deployment toneIndigo
```

## Components

### Change workflow

- [Work branch](https://github.com/divinity-science/platform-template/blob/main/README.md): `README.md`
- [Pull request](https://github.com/divinity-science/platform-template/blob/main/README.md): `README.md`
- [PR merge](https://github.com/divinity-science/platform-template/blob/main/README.md): `README.md`

### Checks and security

- [Required checks](https://github.com/divinity-science/platform-template/blob/main/README.md): `README.md`
- [Secret scanning](https://github.com/divinity-science/platform-template/blob/main/README.md): `README.md`
- [SAST scanning](https://github.com/divinity-science/platform-template/blob/main/README.md): `README.md`
- [Dependency alerts](https://github.com/divinity-science/platform-template/blob/main/README.md): `README.md`

### Repository governance

- [Branch protection](https://github.com/divinity-science/platform-template/blob/main/.github/branch-protection.md): `.github/branch-protection.md`
- [Repository template](https://github.com/divinity-science/platform-template/blob/main/README.md): `README.md`

### Other components

- **Project spec**
- **Linear issue**
- **Contributor**
- **Deployment**

## Connections

- Project spec → Linear issue: specifies work (evidence: `README.md`)
- Contributor → Linear issue: creates issue (evidence: `README.md`)
- Linear issue → Work branch: guides branching (evidence: `README.md`)
- Contributor → Work branch: creates branch (evidence: `README.md`)
- Work branch → Pull request: opens against main (evidence: `README.md`)
- Pull request → Required checks: requires passing (evidence: `README.md`)
- Pull request → PR merge: permits merge (evidence: `README.md`)
- PR merge → Deployment: precedes deploy (evidence: `README.md`)
- Required checks → Secret scanning: includes (evidence: `README.md`)
- Required checks → SAST scanning: includes (evidence: `README.md`)
- Repository template → Dependency alerts: documents (evidence: `README.md`)
- Branch protection → PR merge: blocks direct pushes (evidence: `README.md`)
