# alirezarezvani/claude-code-github-workflow architecture

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

- Interactive diagram: https://gitdiagram.com/alirezarezvani/claude-code-github-workflow
- Repository: https://github.com/alirezarezvani/claude-code-github-workflow

## Overview

This repository is a copyable GitHub Actions and Claude Code automation blueprint, not a conventional application. Its principal workflow turns a Claude plan into GitHub issues, creates feature branches, gates PRs into dev, and gates releases from dev to main before closing issues. Separate command, agent, setup, security, quality, and project-board capabilities complement that path. Relationships below follow the README’s documented flow and feature descriptions; implementation-level wiring is not established by the sampled source.

Main entry points: [`.github/workflows/pr-into-dev.yml`](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/pr-into-dev.yml) (PR quality checks), [`.claude/commands/github`](https://github.com/alirezarezvani/claude-code-github-workflow/tree/main/.claude/commands/github) (Slash commands), [`setup/wizard.sh`](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/setup/wizard.sh) (Setup wizard), [`.github/workflows/claude-plan-to-issues.yml`](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/claude-plan-to-issues.yml) (Plan conversion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_commands["Slash commands<br/>[github]"]
  node_agents["Autonomous agents<br/>[agents]"]
end

subgraph group_planning["Planning and setup"]
  node_setup["Setup wizard<br/>[wizard.sh]"]
  node_templates["Setup templates"]
  node_plan["Plan conversion"]
  node_issues[("GitHub issues")]
end

subgraph group_delivery["Delivery automation"]
  node_branching["Branch creation"]
  node_branches["Feature branches"]
  node_prchecks["PR quality checks<br/>[pr-into-dev.yml]"]
  node_releasechecks["Release gates<br/>[dev-to-main.yml]"]
  node_deployment["Production deployment"]
  node_status["Issue status sync<br/>[pr-status-sync.yml]"]
  node_release_status["Release status sync"]
end

subgraph group_shared["Shared automation"]
  node_quality["Quality gates<br/>[action.yml]"]
  node_projects["Projects v2 sync<br/>[action.yml]"]
  node_security["Security safeguards<br/>[action.yml]"]
  node_rate_limit["Rate limit guard<br/>[action.yml]"]
  node_node_setup["Node pnpm setup<br/>[action.yml]"]
end

node_developer(("Developer"))

node_developer -->|"runs commands"| node_commands
node_developer -->|"starts setup"| node_setup
node_setup -->|"selects configuration"| node_templates
node_commands -.->|"offers plan conversion"| node_plan
node_plan -->|"creates issues"| node_issues
node_issues -->|"triggers branch creation"| node_branching
node_branching -->|"creates branch"| node_branches
node_branches -->|"opens PR"| node_prchecks
node_prchecks -->|"runs quality gates"| node_quality
node_prchecks -->|"syncs PR status"| node_status
node_status -->|"updates issue status"| node_issues
node_releasechecks -->|"gates production release"| node_deployment
node_deployment -->|"triggers issue closure"| node_release_status
node_release_status -->|"closes issues"| node_issues
node_projects -.->|"syncs project status"| node_issues
node_security -.->|"protects fork PRs"| node_prchecks
node_rate_limit -.->|"guards API usage"| node_projects
node_node_setup -.->|"supports checks"| node_quality
node_agents -.->|"supports automation"| node_commands

click node_commands "https://github.com/alirezarezvani/claude-code-github-workflow/tree/main/.claude/commands/github"
click node_agents "https://github.com/alirezarezvani/claude-code-github-workflow/tree/main/.claude/agents"
click node_setup "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/setup/wizard.sh"
click node_templates "https://github.com/alirezarezvani/claude-code-github-workflow/tree/main/setup/configs"
click node_plan "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/claude-plan-to-issues.yml"
click node_branching "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/create-branch-on-issue.yml"
click node_prchecks "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/pr-into-dev.yml"
click node_quality "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/quality-gates/action.yml"
click node_releasechecks "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/dev-to-main.yml"
click node_status "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/pr-status-sync.yml"
click node_release_status "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/release-status-sync.yml"
click node_projects "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/project-sync/action.yml"
click node_security "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/fork-safety/action.yml"
click node_rate_limit "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/rate-limit-check/action.yml"
click node_node_setup "https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/setup-node-pnpm/action.yml"

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_commands,node_agents toneBlue
class node_setup,node_templates,node_plan,node_issues toneAmber
class node_branching,node_branches,node_prchecks,node_releasechecks,node_deployment,node_status,node_release_status toneMint
class node_quality,node_projects,node_security,node_rate_limit,node_node_setup toneRose
class node_developer toneIndigo
```

## Components

### User interaction

- [Slash commands](https://github.com/alirezarezvani/claude-code-github-workflow/tree/main/.claude/commands/github): `.claude/commands/github`
- [Autonomous agents](https://github.com/alirezarezvani/claude-code-github-workflow/tree/main/.claude/agents): `.claude/agents`

### Planning and setup

- [Setup wizard](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/setup/wizard.sh): `setup/wizard.sh`
- [Setup templates](https://github.com/alirezarezvani/claude-code-github-workflow/tree/main/setup/configs): `setup/configs`
- [Plan conversion](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/claude-plan-to-issues.yml): `.github/workflows/claude-plan-to-issues.yml`
- **GitHub issues**

### Delivery automation

- [Branch creation](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/create-branch-on-issue.yml): `.github/workflows/create-branch-on-issue.yml`
- **Feature branches**
- [PR quality checks](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/pr-into-dev.yml): `.github/workflows/pr-into-dev.yml`
- [Release gates](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/dev-to-main.yml): `.github/workflows/dev-to-main.yml`
- **Production deployment**
- [Issue status sync](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/pr-status-sync.yml): `.github/workflows/pr-status-sync.yml`
- [Release status sync](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/workflows/release-status-sync.yml): `.github/workflows/release-status-sync.yml`

### Shared automation

- [Quality gates](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/quality-gates/action.yml): `.github/actions/quality-gates/action.yml`
- [Projects v2 sync](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/project-sync/action.yml): `.github/actions/project-sync/action.yml`
- [Security safeguards](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/fork-safety/action.yml): `.github/actions/fork-safety/action.yml`
- [Rate limit guard](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/rate-limit-check/action.yml): `.github/actions/rate-limit-check/action.yml`
- [Node pnpm setup](https://github.com/alirezarezvani/claude-code-github-workflow/blob/main/.github/actions/setup-node-pnpm/action.yml): `.github/actions/setup-node-pnpm/action.yml`

### Other components

- **Developer**

## Connections

- Developer → Slash commands: runs commands (evidence: `README.md`)
- Developer → Setup wizard: starts setup (evidence: `README.md`)
- Setup wizard → Setup templates: selects configuration (evidence: `README.md`)
- Slash commands → Plan conversion: offers plan conversion (evidence: `README.md`)
- Plan conversion → GitHub issues: creates issues (evidence: `README.md`)
- GitHub issues → Branch creation: triggers branch creation (evidence: `README.md`)
- Branch creation → Feature branches: creates branch (evidence: `README.md`)
- Feature branches → PR quality checks: opens PR (evidence: `README.md`)
- PR quality checks → Quality gates: runs quality gates (evidence: `README.md`)
- PR quality checks → Issue status sync: syncs PR status (evidence: `README.md`)
- Issue status sync → GitHub issues: updates issue status (evidence: `README.md`)
- Release gates → Production deployment: gates production release (evidence: `README.md`)
- Production deployment → Release status sync: triggers issue closure (evidence: `README.md`)
- Release status sync → GitHub issues: closes issues (evidence: `README.md`)
- Projects v2 sync → GitHub issues: syncs project status (evidence: `README.md`)
- Security safeguards → PR quality checks: protects fork PRs (evidence: `README.md`)
- Rate limit guard → Projects v2 sync: guards API usage (evidence: `README.md`)
- Node pnpm setup → Quality gates: supports checks (evidence: `README.md`)
- Autonomous agents → Slash commands: supports automation (evidence: `README.md`)
