Skip to content

About

Generate IT architecture roadmaps from asset inventory data and presentation templates.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

IT Architecture Roadmap Generator

Generate consistent IT roadmap views from structured asset inventory data.

The project ingests an IT asset CSV, transforms it into a validated canonical JSON database, derives presentation-specific datasets and metrics, and renders those results into reusable HTML presentation templates. The current example produces an End User Device lifecycle roadmap showing device age, capital exposure, end-of-support risk, and planned change.

Detailed architecture and design documentation is available in docs/technical.md.

How It Works

IT Asset CSV
    ↓
Core Data Model validation and transformation
    ↓
Canonical roadmap-database.json
    ↓
End User Device presentation rules and dataset
    ↓
HTML presentation template
    ↓
Generated index.html roadmap

The main layers are:

  • Source data: data/workbook/example_it_assets.csv
  • Core Data Model: data/database/core-model.schema.json
  • Canonical database: data/database/roadmap-database.json
  • Metadata and governance: data/metadata and data/governance
  • Presentation model and rules: roadmap/end-user-devices/data-model.json and data-rule.json
  • Generated presentation data: roadmap/end-user-devices/data-set.json and data-view.json
  • Presentation template and output: index.template.html and index.html

Generated files should not be edited directly. Change the source CSV, model, rules, view configuration, or template and rerun the appropriate pipeline.

Metadata and Governance

The repository includes lightweight cross-cutting contracts that document the data architecture without adding new runtime stages:

  • Core data dictionary defines important Core fields, their business meaning, source mappings, required status, classification, and known downstream use.
  • Dataset register records the purpose, producers, schemas, consumers, and lineage of the source, canonical, and presentation datasets.
  • Core data rules documents the validation and publication controls already enforced by the Core JSON Schema and Python ingestion pipeline.

Core governance is separate from view-specific rules such as roadmap/end-user-devices/data-rule.json. The governance file is documentary today; wiring it into runtime validation is a possible future enhancement and would require compatibility testing. The existing CSV-to-presentation workflow is unchanged.

Quick Start

Prerequisites

  • Python 3.9 or later
  • A terminal opened at the repository root

The default workflow uses Python's standard library and requires no database server.

1. Ingest the IT Asset CSV

Run the Core Data pipeline:

python3 scripts/run_data_pipeline.py

This reads data/workbook/example_it_assets.csv, maps every row into the Core Data Model, validates the complete dataset, and atomically writes data/database/roadmap-database.json.

To use different paths:

python3 scripts/run_data_pipeline.py \
  --input path/to/assets.csv \
  --schema data/database/core-model.schema.json \
  --output data/database/roadmap-database.json

The database is replaced only when required fields, types, dates, risk calculations, IDs, dependencies, and the complete schema pass validation.

2. Generate the End User Device Data

Transform the canonical database into presentation-ready records and metrics:

python3 roadmap/end-user-devices/generate_data.py

This reads roadmap-database.json, selects End User Device records, applies the presentation rules, and updates:

  • roadmap/end-user-devices/data-set.json
  • roadmap/end-user-devices/data-view.json

Validate that these files are current without modifying them:

python3 roadmap/end-user-devices/generate_data.py --check

3. Generate the HTML Presentation

Render the presentation data into the reusable HTML template:

python3 roadmap/end-user-devices/generate_presentation.py

This combines data-set.json, data-view.json, and index.template.html to generate roadmap/end-user-devices/index.html.

Confirm that the generated presentation is current:

python3 roadmap/end-user-devices/generate_presentation.py --check

Open roadmap/end-user-devices/index.html in a browser to view the roadmap.

Run the Complete Workflow

After changing the source CSV, choose either the manual commands or the AI-assisted prompt.

Manual workflow

Run all stages in order:

python3 scripts/run_data_pipeline.py
python3 roadmap/end-user-devices/generate_data.py
python3 roadmap/end-user-devices/generate_data.py --check
python3 roadmap/end-user-devices/generate_presentation.py
python3 roadmap/end-user-devices/generate_presentation.py --check

Each stage stops on validation failure so invalid or partial data is not published to the next layer.

AI-assisted workflow

If you are using GitHub Copilot Chat with repository prompt files enabled, run:

/generate-end-user-device-roadmap

The prompt at .github/prompts/generate-end-user-device-roadmap.prompt.md instructs the AI agent to use the generate-end-user-device-roadmap skill, execute the same five commands, stop on failure, and report the validated totals and generated presentation path.

To refresh only the canonical database from the IT Asset CSV, run:

/ingest-it-assets

This uses .github/prompts/ingest-it-assets.prompt.md. The prompt files are an AI-assisted alternative to the manual commands; the underlying Python pipelines and validation rules remain the same.

View the Presentation

After the complete workflow succeeds, open the generated presentation in a web browser:

Open the End User Device roadmap

On macOS, you can also open it from the repository root with:

open roadmap/end-user-devices/index.html

The presentation is a self-contained HTML file and does not require a web server. Do not open index.template.html; that file contains the reusable placeholders used during generation.

Repository Structure

architecture-roadmap/
├── data/
│   ├── workbook/             # Source asset CSV
│   ├── database/             # Core Model and canonical JSON database
│   ├── metadata/             # Core dictionary and dataset lineage register
│   └── governance/           # Documentary Core validation rules
├── docs/
│   └── technical.md          # Detailed architecture documentation
├── roadmap/
│   └── end-user-devices/     # Presentation data, rules, template, and output
├── scripts/                  # CSV ingestion and Core Database pipeline
└── .github/
    ├── skills/               # Reusable repository workflows
    └── prompts/              # GitHub Copilot prompt-file entry points

GitHub Skills

The repository includes:

  • it-roadmap-data-pipeline — refreshes the canonical database from the CSV.
  • generate-end-user-device-roadmap — runs and verifies the complete presentation workflow.
  • roadmap-design-workflow — plans or implements a new configuration-driven roadmap view.

For example:

Use the generate-end-user-device-roadmap skill.

Roadmap Design Workflow

Use the roadmap-design-workflow skill when designing a new roadmap view, such as Servers and Storage, Network, or Security. It treats the End User Device view as an example rather than forcing its data scope or visual design onto other domains.

The workflow defaults to Plan mode and defines:

  • The business question, audience, asset scope, exclusions, and reporting period.
  • Core Database field mappings and any missing source data.
  • Reporting grain, dimensions, measures, aggregations, and business rules.
  • Presentation components appropriate to the analytical question.
  • Required files, pipeline changes, validation checks, and acceptance criteria.

For example, run this in GitHub Copilot Chat:

/roadmap-design-workflow Plan a Servers and Storage view focused on hardware-vendor concentration for infrastructure leadership.

This invokes .github/prompts/roadmap-design-workflow.prompt.md, which uses the roadmap-design-workflow skill.

The proposed package for each view is:

roadmap/<view-id>/
├── view-plan.md
├── data-model.json
├── data-rule.json
├── data-view.json
├── data-set.json          # generated
└── index.html             # generated

Use Build mode only when you want the AI agent to implement an agreed plan, generate the dataset and presentation, and run the validation checks:

/roadmap-design-workflow Build the agreed Servers and Storage hardware-vendor view.

About

Generate IT architecture roadmaps from asset inventory data and presentation templates.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages