원클릭으로
collect-component-architectures
// Collect and organize GENERATED_ARCHITECTURE.md files from checkouts into a structured architecture directory by platform, version, and component name.
// Collect and organize GENERATED_ARCHITECTURE.md files from checkouts into a structured architecture directory by platform, version, and component name.
Analyze a component repository and generate comprehensive architecture summary with structured markdown tables. Use when analyzing ODH/RHOAI components, documenting architecture, or creating security diagrams.
Discover platform components by exploring breadcrumbs (installers, operators, dependencies) in checkouts directory. Outputs component-map.json for platforms without manifest scripts.
Generate architecture diagrams (Mermaid, C4, security network diagrams) from GENERATED_ARCHITECTURE.md. Creates visual representations for different audiences - developers, architects, security teams.
Generate diagrams for all component architecture files in an organized architecture directory. Processes each component sequentially ONE AT A TIME by reading the .md file and extracting data from tables. Creates Mermaid, C4, and security diagrams. Skips components that already have diagrams by default.
Generate platform-level diagrams (dependency graphs, network topology, cross-component workflows) from aggregated PLATFORM.md file. Creates visualizations for architects, security teams, and platform engineers.
Combine multiple component architecture summaries into a platform-level architecture document. Use after generating component summaries to create a wholistic platform view.
| name | collect-component-architectures |
| description | Collect and organize GENERATED_ARCHITECTURE.md files from checkouts into a structured architecture directory by platform, version, and component name. |
| allowed-tools | Bash(python *) |
Collect GENERATED_ARCHITECTURE.md files from repository checkouts and organize them into a structured directory hierarchy: ./architecture/$PLATFORM-$VERSION/$COMPONENTNAME.md
Optional arguments:
--checkouts-dir=<path> (default: ./checkouts)--output-dir=<path> (default: ./architecture)Examples:
/collect-component-architectures # collect all from default locations
/collect-component-architectures --checkouts-dir=./repos --output-dir=./docs/arch
This skill uses a robust Python script to handle all collection logic.
Platform is determined by checkout directory structure:
checkouts/opendatahub-io/* → ODH componentscheckouts/red-hat-data-services/* → RHOAI componentsVersion is derived from operator repositories (priority order):
VERSION variable (primary - developer intent)All components in a platform's checkout inherit that platform's version from the operator.
This skill uses a Python script (scripts/collect_architectures.py) to handle all the collection logic robustly.
Extract arguments from the skill invocation:
--checkouts-dir=<path> (default: ./checkouts)--output-dir=<path> (default: ./architecture)Execute the Python script with the parsed arguments:
python scripts/collect_architectures.py --checkouts-dir={checkouts-dir} --output-dir={output-dir}
The script will:
opendatahub-io for ODH, red-hat-data-services for RHOAI)GENERATED_ARCHITECTURE.md files in each platform checkout{output-dir}/{platform}-{version}/{component}.mdThe Python script outputs its own summary. Simply let it run and display the output to the user.
The script returns:
Detecting ODH version from checkouts/opendatahub-io/opendatahub-operator
✓ Found version in Makefile: 3.3.0
Found 1 platform(s):
- ODH 3.3.0
Processing ODH 3.3.0...
Output directory: architecture/odh-3.3.0
Found 5 component(s)
✓ kserve.md
✓ model-registry.md
✓ odh-dashboard.md
...
Created index: architecture/odh-3.3.0/README.md
================================================================================
✅ Component architectures collected!
================================================================================
Checkouts directory: checkouts
Output directory: architecture
Platform versions detected:
- ODH: 3.3.0 (5 components)
Components collected: 5
Directory structure created:
- architecture/odh-3.3.0/
README.md
kserve.md
model-registry.md
odh-dashboard.md
...
Next steps:
1. Review collected architectures in architecture/
2. Generate platform-level view: /aggregate-platform-architecture --distribution=odh --version=3.3.0
3. Generate diagrams: /generate-architecture-diagrams --architecture=architecture/odh-3.3.0/kserve.md
The original bash-based version detection was fragile with multiple fallback paths. The Python script provides:
/repo-to-architecture-summary on each component repositoryarchitecture/{platform}-{version}/ structure/aggregate-platform-architecture to create platform-level viewarchitecture/
├── odh-3.3.0/
│ ├── README.md # Index of all ODH 3.3.0 components
│ ├── kserve.md # Individual component architectures
│ ├── model-registry.md
│ └── odh-dashboard.md
└── rhoai-2.19/
├── README.md # Index of all RHOAI 2.19 components
├── kserve.md
└── model-registry.md
The Python script implements this priority order:
VERSION = 3.3.0 (most authoritative - developer intent)This ensures reliable version detection even on development branches where git tags may not reflect the intended version.