# amarins008/aipass-auto-router-skill architecture

> Architecture diagram of the GitHub repository amarins008/aipass-auto-router-skill, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/amarins008/aipass-auto-router-skill
- Repository: https://github.com/amarins008/aipass-auto-router-skill

## Overview

#### Purpose and Shape
This is a small Python-based automation/skill repository centered on browser or desktop interaction workflows. The primary specification appears to be `SKILL.md`; implementation is concentrated in `scripts/`, with persistent runtime state reserved under `state/`.

#### Primary Entry Points
- `scripts/aipass_bridge.py` is the likely runtime bridge between this repository and an external “AIPass” host or automation environment.
- `scripts/register_slash_commands.py` is an installation/provisioning entry point for exposing commands to that host.
- `scripts/make_desktop_shortcut.ps1` supports Windows desktop launch integration.
- `SKILL.md` is the top-level behavior/operation contract.

#### Automation Bridge Layer
`scripts/aipass_bridge.py` is the architectural boundary between the skill’s local Python logic and its external controller. It likely receives commands or events from the host, dispatches workflow actions, and reports results back through the bridge protocol. Keep host-specific protocol concerns isolated here rather than coupling them into verification or selector documentation.

Relevant paths:
- `scripts/aipass_bridge.py`
- `SKILL.md`

#### Command Registration and Host Integration
Slash-command registration is separated from runtime execution, allowing deployment/setup to occur independently of normal use. Windows shortcut creation is similarly an optional operating-system integration rather than core workflow behavior.

Relevant paths:
- `scripts/register_slash_commands.py`
- `scripts/make_desktop_shortcut.ps1`
- `scripts/aipass_bridge.py`

#### UI Navigation and Selector Knowledge
Browser/UI interaction knowledge is documented rather than embedded in an apparent application tree. Routing behavior and DOM selectors are distinct concerns: routing determines where an automation flow should navigate; selectors determine how it locates target UI elements after arrival.

Relevant paths:
- `references/routing.md`
- `references/dom-selectors.md`
- `SKILL.md`

#### Validation and Model Checks
Verification is implemented as executable scripts, suggesting workflow correctness is checked through live or integration-oriented validation rather than a conventional test package. Model checks are isolated, implying an external AI/model dependency or compatibility constraint that should be validated before relying on automation behavior.

Relevant paths:
- `scripts/verify.py`
- `scripts/verify_all_classes.py`
- `scripts/check_models.py`

#### State and Runtime Boundaries
`state/` is the intended mutable-data boundary; source, reference material, and setup scripts should remain stateless. The repository’s material runtime is Python, declared through `requirements.txt`, with PowerShell used only for Windows shortcut provisioning. External dependencies are not enumerated in the supplied README, but the bridge and slash-command scripts indicate an AIPass-like command host, while selector/routing references indicate a browser or UI automation target.

Relevant paths:
- `requirements.txt`
- `state/.gitkeep`
- `scripts/aipass_bridge.py`

Main entry points: [`scripts/aipass_bridge.py`](https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/aipass_bridge.py) (AIPass bridge), [`SKILL.md`](https://github.com/amarins008/aipass-auto-router-skill/blob/master/SKILL.md) (SKILL.md), [`scripts/verify.py`](https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/verify.py) (Workflow verification), [`scripts/check_models.py`](https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/check_models.py) (Model checks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_contract["Skill Contract"]
  node_skill["SKILL.md<br/>operation contract<br/>[SKILL.md]"]
  node_requirements["requirements.txt<br/>Python dependencies<br/>[requirements.txt]"]
end

subgraph group_host["Host Integration"]
  node_bridge["AIPass bridge<br/>Python runtime bridge<br/>[aipass_bridge.py]"]
  node_commands["Slash command registration<br/>provisioning script"]
  node_shortcut["Desktop shortcut<br/>PowerShell provisioning"]
  node_aipass{{"AIPass host<br/>external command host"}}
end

subgraph group_automation["Automation Knowledge"]
  node_routing["Routing guide<br/>navigation reference<br/>[routing.md]"]
  node_selectors["DOM selector guide<br/>UI selector reference<br/>[dom-selectors.md]"]
  node_ui_target{{"Browser/UI target<br/>external automation target"}}
end

subgraph group_validation["Validation"]
  node_verify["Workflow verification<br/>validation script<br/>[verify.py]"]
  node_verify_classes["Class verification<br/>validation script"]
  node_models["Model checks<br/>compatibility check<br/>[check_models.py]"]
end

node_state[("Runtime state<br/>mutable data boundary<br/>[.gitkeep]")]

node_skill -->|"specifies runtime behavior"| node_bridge
node_skill -->|"documents navigation"| node_routing
node_skill -->|"documents UI targeting"| node_selectors
node_requirements -->|"provides runtime dependencies"| node_bridge
node_commands -->|"registers commands"| node_aipass
node_aipass -->|"invokes commands/events"| node_bridge
node_shortcut -.->|"provisions Windows launch"| node_aipass
node_bridge -->|"uses navigation guidance"| node_routing
node_bridge -->|"uses UI locators"| node_selectors
node_bridge -->|"automates"| node_ui_target
node_bridge -->|"reads and writes"| node_state
node_verify -->|"validates workflows"| node_bridge
node_verify_classes -->|"validates classes"| node_bridge
node_models -->|"checks model compatibility"| node_bridge
node_verify -.->|"runs live checks"| node_ui_target
node_models -.->|"validates dependency"| node_ui_target

click node_skill "https://github.com/amarins008/aipass-auto-router-skill/blob/master/SKILL.md"
click node_requirements "https://github.com/amarins008/aipass-auto-router-skill/blob/master/requirements.txt"
click node_bridge "https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/aipass_bridge.py"
click node_commands "https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/register_slash_commands.py"
click node_shortcut "https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/make_desktop_shortcut.ps1"
click node_routing "https://github.com/amarins008/aipass-auto-router-skill/blob/master/references/routing.md"
click node_selectors "https://github.com/amarins008/aipass-auto-router-skill/blob/master/references/dom-selectors.md"
click node_verify "https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/verify.py"
click node_verify_classes "https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/verify_all_classes.py"
click node_models "https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/check_models.py"
click node_state "https://github.com/amarins008/aipass-auto-router-skill/blob/master/state/.gitkeep"

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_skill,node_requirements toneBlue
class node_bridge,node_commands,node_shortcut,node_aipass toneAmber
class node_routing,node_selectors,node_ui_target toneMint
class node_verify,node_verify_classes,node_models toneRose
class node_state toneNeutral
```

## Components

### Skill Contract

- [SKILL.md](https://github.com/amarins008/aipass-auto-router-skill/blob/master/SKILL.md): operation contract · Defines the skill behavior and operating workflow. · `SKILL.md`
- [requirements.txt](https://github.com/amarins008/aipass-auto-router-skill/blob/master/requirements.txt): Python dependencies · `requirements.txt`

### Host Integration

- [AIPass bridge](https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/aipass_bridge.py): Python runtime bridge · Isolates host protocol from local automation logic. · `scripts/aipass_bridge.py`
- [Slash command registration](https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/register_slash_commands.py): provisioning script · `scripts/register_slash_commands.py`
- [Desktop shortcut](https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/make_desktop_shortcut.ps1): PowerShell provisioning · `scripts/make_desktop_shortcut.ps1`
- **AIPass host**: external command host

### Automation Knowledge

- [Routing guide](https://github.com/amarins008/aipass-auto-router-skill/blob/master/references/routing.md): navigation reference · `references/routing.md`
- [DOM selector guide](https://github.com/amarins008/aipass-auto-router-skill/blob/master/references/dom-selectors.md): UI selector reference · `references/dom-selectors.md`
- **Browser/UI target**: external automation target

### Validation

- [Workflow verification](https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/verify.py): validation script · `scripts/verify.py`
- [Class verification](https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/verify_all_classes.py): validation script · `scripts/verify_all_classes.py`
- [Model checks](https://github.com/amarins008/aipass-auto-router-skill/blob/master/scripts/check_models.py): compatibility check · `scripts/check_models.py`

### Other components

- [Runtime state](https://github.com/amarins008/aipass-auto-router-skill/blob/master/state/.gitkeep): mutable data boundary · `state/.gitkeep`

## Connections

- SKILL.md → AIPass bridge: specifies runtime behavior
- SKILL.md → Routing guide: documents navigation
- SKILL.md → DOM selector guide: documents UI targeting
- requirements.txt → AIPass bridge: provides runtime dependencies
- Slash command registration → AIPass host: registers commands
- AIPass host → AIPass bridge: invokes commands/events
- Desktop shortcut → AIPass host: provisions Windows launch
- AIPass bridge → Routing guide: uses navigation guidance
- AIPass bridge → DOM selector guide: uses UI locators
- AIPass bridge → Browser/UI target: automates
- AIPass bridge → Runtime state: reads and writes
- Workflow verification → AIPass bridge: validates workflows
- Class verification → AIPass bridge: validates classes
- Model checks → AIPass bridge: checks model compatibility
- Workflow verification → Browser/UI target: runs live checks
- Model checks → Browser/UI target: validates dependency
