How amarins008/aipass-auto-router-skill works
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: aipass_bridge.py AIPass bridge · SKILL.md SKILL.md · verify.py Workflow verification · check_models.py Model checks
Components 13
Skill Contract
- SKILL.md · Defines the skill behavior and operating workflow.
SKILL.md - requirements.txt
requirements.txt
Host Integration
- AIPass bridge · Isolates host protocol from local automation logic.
scripts/aipass_bridge.py - Slash command registration
scripts/register_slash_commands.py - Desktop shortcut
scripts/make_desktop_shortcut.ps1 - AIPass host
Automation Knowledge
- Routing guide
references/routing.md - DOM selector guide
references/dom-selectors.md - Browser/UI target
Validation
- Workflow verification
scripts/verify.py - Class verification
scripts/verify_all_classes.py - Model checks
scripts/check_models.py
Other components
- Runtime state
state/.gitkeep
Connections 16
- 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