# seif29/engineering architecture

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

## Overview

This repository is an IDE-agent code-review playbook, not an executable review service. A developer supplies a PR/MR URL; the agent follows the prompt, retrieves review context through GitHub or GitLab APIs, applies shared and selected project rules, and prepares a draft for explicit human approval before publication. The README documents these relationships, but no source excerpts are available, so the graph represents documented responsibilities rather than verified runtime calls.

Main entry points: [`review/project.yml`](https://github.com/seif29/engineering/blob/main/review/project.yml) (Project config), [`review/prompts/short.md`](https://github.com/seif29/engineering/blob/main/review/prompts/short.md) (Short prompt), [`review/provider.md`](https://github.com/seif29/engineering/blob/main/review/provider.md) (Provider rules), [`review/core.md`](https://github.com/seif29/engineering/blob/main/review/core.md) (Core rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Review workflow"]
  node_ide_agent["IDE agent"]
  node_prompt["Short prompt<br/>[short.md]"]
  node_draft["Review draft"]
end

subgraph group_guidance["Review guidance"]
  node_provider["Provider rules<br/>[provider.md]"]
  node_core_rules["Core rules<br/>[core.md]"]
  node_output_rules["Output format<br/>[output.md]"]
  node_generic_profile["Generic profile<br/>[generic.md]"]
  node_php_profile["PHP Symfony profile<br/>[php-symfony.md]"]
  node_frontend_profile["JS/TS profile<br/>[js-ts-frontend.md]"]
end

subgraph group_configuration["Project configuration"]
  node_project_config["Project config<br/>[project.yml]"]
end

node_developer(("Developer"))
node_github{{"GitHub API"}}
node_gitlab{{"GitLab API"}}
node_pr_mr["PR / MR"]
node_reviewer(("Human reviewer"))

node_developer -->|"starts review"| node_ide_agent
node_developer -->|"follows prompt"| node_prompt
node_prompt -->|"guides review"| node_ide_agent
node_ide_agent -->|"follows API rules"| node_provider
node_ide_agent -.->|"retrieves context"| node_github
node_ide_agent -.->|"retrieves context"| node_gitlab
node_github -.->|"returns PR data"| node_pr_mr
node_gitlab -.->|"returns MR data"| node_pr_mr
node_project_config -->|"selects profile"| node_generic_profile
node_project_config -->|"selects profile"| node_php_profile
node_project_config -->|"selects profile"| node_frontend_profile
node_ide_agent -->|"applies rules"| node_core_rules
node_ide_agent -->|"reads settings"| node_project_config
node_ide_agent -->|"formats review"| node_output_rules
node_ide_agent -->|"generates draft"| node_draft
node_reviewer -->|"validates draft"| node_draft
node_reviewer -->|"approves publication"| node_pr_mr

click node_prompt "https://github.com/seif29/engineering/blob/main/review/prompts/short.md"
click node_provider "https://github.com/seif29/engineering/blob/main/review/provider.md"
click node_project_config "https://github.com/seif29/engineering/blob/main/review/project.yml"
click node_core_rules "https://github.com/seif29/engineering/blob/main/review/core.md"
click node_output_rules "https://github.com/seif29/engineering/blob/main/review/output.md"
click node_generic_profile "https://github.com/seif29/engineering/blob/main/review/profiles/generic.md"
click node_php_profile "https://github.com/seif29/engineering/blob/main/review/profiles/php-symfony.md"
click node_frontend_profile "https://github.com/seif29/engineering/blob/main/review/profiles/js-ts-frontend.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_ide_agent,node_prompt,node_draft,node_reviewer toneBlue
class node_provider,node_core_rules,node_output_rules,node_generic_profile,node_php_profile,node_frontend_profile toneAmber
class node_project_config,node_github,node_gitlab toneMint
class node_developer,node_pr_mr toneIndigo
```

## Components

### Review workflow

- **IDE agent**
- [Short prompt](https://github.com/seif29/engineering/blob/main/review/prompts/short.md): `review/prompts/short.md`
- **Review draft**

### Review guidance

- [Provider rules](https://github.com/seif29/engineering/blob/main/review/provider.md): `review/provider.md`
- [Core rules](https://github.com/seif29/engineering/blob/main/review/core.md): `review/core.md`
- [Output format](https://github.com/seif29/engineering/blob/main/review/output.md): `review/output.md`
- [Generic profile](https://github.com/seif29/engineering/blob/main/review/profiles/generic.md): `review/profiles/generic.md`
- [PHP Symfony profile](https://github.com/seif29/engineering/blob/main/review/profiles/php-symfony.md): `review/profiles/php-symfony.md`
- [JS/TS profile](https://github.com/seif29/engineering/blob/main/review/profiles/js-ts-frontend.md): `review/profiles/js-ts-frontend.md`

### Project configuration

- [Project config](https://github.com/seif29/engineering/blob/main/review/project.yml): `review/project.yml`

### Other components

- **Developer**
- **GitHub API**
- **GitLab API**
- **PR / MR**
- **Human reviewer**

## Connections

- Developer → IDE agent: starts review (evidence: `README.md`)
- Developer → Short prompt: follows prompt (evidence: `README.md`)
- Short prompt → IDE agent: guides review (evidence: `README.md`)
- IDE agent → Provider rules: follows API rules (evidence: `README.md`)
- IDE agent → GitHub API: retrieves context (evidence: `README.md`)
- IDE agent → GitLab API: retrieves context (evidence: `README.md`)
- GitHub API → PR / MR: returns PR data (evidence: `README.md`)
- GitLab API → PR / MR: returns MR data (evidence: `README.md`)
- Project config → Generic profile: selects profile (evidence: `README.md`)
- Project config → PHP Symfony profile: selects profile (evidence: `README.md`)
- Project config → JS/TS profile: selects profile (evidence: `README.md`)
- IDE agent → Core rules: applies rules (evidence: `README.md`)
- IDE agent → Project config: reads settings (evidence: `README.md`)
- IDE agent → Output format: formats review (evidence: `README.md`)
- IDE agent → Review draft: generates draft (evidence: `README.md`)
- Human reviewer → Review draft: validates draft (evidence: `README.md`)
- Human reviewer → PR / MR: approves publication (evidence: `README.md`)
