# east-201/ros2-forge-skills architecture

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

- Interactive diagram: https://gitdiagram.com/east-201/ros2-forge-skills
- Repository: https://github.com/east-201/ros2-forge-skills

## Overview

ROS2 Forge Skills is an agent-oriented ROS2 engineering workflow: users move from requirements and contracts through implementation scanning, review, repair, verification, and runtime diagnosis, with run history retained between sessions. The README documents the workflow and capabilities; sampled tools show session management, fact extraction, static scanning, and local/SSH snapshot collection. The command-to-tool wiring is not shown in the sampled source, so the graph uses documented workflow relationships and avoids asserting direct tool calls.

Main entry points: [`commands/ros2-scan.md`](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-scan.md) (As-built scan), [`commands/ros2-fix.md`](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-fix.md) (Safe repair), [`commands/ros2-review.md`](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-review.md) (Contract review), [`commands/ros2-runtime.md`](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-runtime.md) (Runtime diagnosis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Engineering workflow"]
  node_router["Command router<br/>[ros2.md]"]
  node_design["Design intake<br/>[ros2-design.md]"]
  node_contract["Contract authoring<br/>[ros2-contract.md]"]
  node_scan["As-built scan<br/>[ros2-scan.md]"]
  node_review["Contract review<br/>[ros2-review.md]"]
  node_plan["Fix planning<br/>[ros2-plan.md]"]
  node_fix["Safe repair<br/>[ros2-fix.md]"]
  node_verify["V1–V5 verification<br/>[ros2-verify.md]"]
  node_runtime_cmd["Runtime diagnosis<br/>[ros2-runtime.md]"]
  node_ssh_cmd["SSH diagnosis<br/>[ros2-ssh.md]"]
end

subgraph group_analysis["Workspace analysis"]
  node_fact_extract["Fact extraction"]
  node_static_scan["Static scan"]
  node_session["Run sessions<br/>[ros2_session.py]"]
  node_history["Scan history"]
end

subgraph group_runtime["Runtime diagnosis"]
  node_snapshot["Runtime snapshot"]
  node_ssh_probe["SSH probe<br/>[ros2_ssh_probe.py]"]
  node_qos_matrix["QoS summary"]
end

subgraph group_coordination["Agent coordination"]
  node_agents["Specialist agents"]
  node_knowledge["ROS2 rule library"]
end

node_user(("ROS2 engineer"))

node_user -->|"starts"| node_router
node_router -->|"routes to"| node_design
node_design -->|"produces design"| node_contract
node_contract -->|"precedes"| node_scan
node_scan -->|"supplies facts"| node_review
node_review -->|"informs"| node_plan
node_plan -->|"guides"| node_fix
node_fix -->|"requires evidence"| node_verify
node_verify -->|"followed by"| node_runtime_cmd
node_runtime_cmd -->|"archives run"| node_history
node_ssh_cmd -.->|"documents use"| node_snapshot
node_scan -->|"extracts facts"| node_fact_extract
node_scan -.->|"scans workspace"| node_static_scan
node_scan -->|"creates run"| node_session
node_fix -->|"appends changes"| node_history
node_runtime_cmd -->|"collects snapshot"| node_snapshot
node_ssh_cmd -->|"tests connection"| node_ssh_probe
node_snapshot -.->|"summarizes QoS"| node_qos_matrix
node_review -->|"uses reviewers"| node_agents
node_fix -->|"dispatches workers"| node_agents
node_agents -.->|"consults rules"| node_knowledge

click node_router "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2.md"
click node_design "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-design.md"
click node_contract "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-contract.md"
click node_scan "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-scan.md"
click node_review "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-review.md"
click node_plan "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-plan.md"
click node_fix "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-fix.md"
click node_verify "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-verify.md"
click node_runtime_cmd "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-runtime.md"
click node_ssh_cmd "https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-ssh.md"
click node_fact_extract "https://github.com/east-201/ros2-forge-skills/blob/main/tools/extract_ros2_facts.py"
click node_static_scan "https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_quality_static_scan.py"
click node_session "https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_session.py"
click node_history "https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_scan_history.py"
click node_snapshot "https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_runtime_snapshot.py"
click node_ssh_probe "https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_ssh_probe.py"
click node_qos_matrix "https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_topic_qos_matrix.py"
click node_agents "https://github.com/east-201/ros2-forge-skills/tree/main/agents"
click node_knowledge "https://github.com/east-201/ros2-forge-skills/tree/main/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_router,node_design,node_contract,node_scan,node_review,node_plan,node_fix,node_verify,node_runtime_cmd,node_ssh_cmd toneBlue
class node_fact_extract,node_static_scan,node_session,node_history toneAmber
class node_snapshot,node_ssh_probe,node_qos_matrix toneMint
class node_agents,node_knowledge toneRose
class node_user toneIndigo
```

## Components

### Engineering workflow

- [Command router](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2.md): `commands/ros2.md`
- [Design intake](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-design.md): `commands/ros2-design.md`
- [Contract authoring](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-contract.md): `commands/ros2-contract.md`
- [As-built scan](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-scan.md): `commands/ros2-scan.md`
- [Contract review](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-review.md): `commands/ros2-review.md`
- [Fix planning](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-plan.md): `commands/ros2-plan.md`
- [Safe repair](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-fix.md): `commands/ros2-fix.md`
- [V1–V5 verification](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-verify.md): `commands/ros2-verify.md`
- [Runtime diagnosis](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-runtime.md): `commands/ros2-runtime.md`
- [SSH diagnosis](https://github.com/east-201/ros2-forge-skills/blob/main/commands/ros2-ssh.md): `commands/ros2-ssh.md`

### Workspace analysis

- [Fact extraction](https://github.com/east-201/ros2-forge-skills/blob/main/tools/extract_ros2_facts.py): `tools/extract_ros2_facts.py`
- [Static scan](https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_quality_static_scan.py): `tools/ros2_quality_static_scan.py`
- [Run sessions](https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_session.py): `tools/ros2_session.py`
- [Scan history](https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_scan_history.py): `tools/ros2_scan_history.py`

### Runtime diagnosis

- [Runtime snapshot](https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_runtime_snapshot.py): `tools/ros2_runtime_snapshot.py`
- [SSH probe](https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_ssh_probe.py): `tools/ros2_ssh_probe.py`
- [QoS summary](https://github.com/east-201/ros2-forge-skills/blob/main/tools/ros2_topic_qos_matrix.py): `tools/ros2_topic_qos_matrix.py`

### Agent coordination

- [Specialist agents](https://github.com/east-201/ros2-forge-skills/tree/main/agents): `agents`
- [ROS2 rule library](https://github.com/east-201/ros2-forge-skills/tree/main/references): `references`

### Other components

- **ROS2 engineer**

## Connections

- ROS2 engineer → Command router: starts (evidence: `README.md`)
- Command router → Design intake: routes to (evidence: `README.md`)
- Design intake → Contract authoring: produces design (evidence: `README.md`)
- Contract authoring → As-built scan: precedes (evidence: `README.md`)
- As-built scan → Contract review: supplies facts (evidence: `README.md`)
- Contract review → Fix planning: informs (evidence: `README.md`)
- Fix planning → Safe repair: guides (evidence: `README.md`)
- Safe repair → V1–V5 verification: requires evidence (evidence: `README.md`)
- V1–V5 verification → Runtime diagnosis: followed by (evidence: `README.md`)
- Runtime diagnosis → Scan history: archives run (evidence: `README.md`)
- SSH diagnosis → Runtime snapshot: documents use
- As-built scan → Fact extraction: extracts facts (evidence: `README.md`)
- As-built scan → Static scan: scans workspace
- As-built scan → Run sessions: creates run (evidence: `README.md`)
- Safe repair → Scan history: appends changes (evidence: `README.md`)
- Runtime diagnosis → Runtime snapshot: collects snapshot (evidence: `README.md`)
- SSH diagnosis → SSH probe: tests connection (evidence: `README.md`)
- Runtime snapshot → QoS summary: summarizes QoS
- Contract review → Specialist agents: uses reviewers (evidence: `README.md`)
- Safe repair → Specialist agents: dispatches workers (evidence: `README.md`)
- Specialist agents → ROS2 rule library: consults rules
