Skill · Published 2026-08-11

system-map

Download system-map.zip 100% test coverage Ported from none — composed, see README's Provenance

A Claude Skill for the first afternoon in an unfamiliar monorepo: instead of opening a dozen manifest files and infra stacks by hand to piece together the system’s real shape, get it in one picture.

Renamed from monorepo-map — same skill, further along. It stopped being just about packages once it grew contracts, technology tags, and real infrastructure; “system” says what it actually maps now.

What it does

Discovers every real workspace member across five ecosystems, each from that ecosystem’s own real manifest:

Ecosystem Workspace manifest Cross-package edge
npm/yarn/pnpm package.json workspaces, or pnpm-workspace.yaml a dependency entry naming another discovered package
Cargo Cargo.toml [workspace] members a real path = "..." dependency
Python pyproject.toml [tool.uv.workspace] (uv) a real path = "..." source
Go go.work use directives a replace ... => ../path directive
Gradle (Java/Kotlin) settings.gradle/.kts include(...) a project(':path') reference
python3 system_map.py <repo-root>                        # Mermaid flowchart (default)
python3 system_map.py <repo-root> --json                  # everything, structured, incl. gRPC methods + infra
python3 system_map.py <repo-root> --focus data-access      # one package's direct neighborhood only
python3 system_map.py <repo-root> --commons-threshold 3    # raise the fan-in bar for "commons"

Five things land in one picture: real edges (never a guess at what might call what over the network), commons (any package 2 or more others actually depend on — measured, not a name pattern), contracts (.proto, OpenAPI/Swagger, GraphQL, Thrift, WSDL, Avro, AsyncAPI — with a .proto’s real service/rpc blocks genuinely parsed into gRPC service and method names), technology tags (which known queue/database/transport libraries a package’s own manifest already declares), and infrastructure (real CDK TypeScript Queue/Topic/Table/Bucket/… resource declarations, scoped to packages that actually depend on aws-cdk-lib).

Where this came from

Unlike most of this bundle, not a port of an existing PinkyAI engine module — there’s no cross-package system-mapper in the engine to port from (repo-map and dependency-graph both work inside a single directory or crate, by design). Built directly from a user’s request to see a whole monorepo’s shape in one picture, then extended twice more on direct follow-up requests: first to cover five real package-manager ecosystems and real gRPC parsing, then to add technology tags and real infrastructure detection after a research pass (queues, live API traffic, and database schemas were researched and deliberately left out — see the source’s own README for why).

Why five ecosystems, not repo-map’s fifty languages? repo-map answers “what symbols does this file define” — every language has an answer. This skill answers “does this ecosystem have a real, tool-enforced concept of one repo with declared cross-package dependencies” — most languages don’t. Five is the current honest count.

Real bugs this caught, dogfooding it on PinkyAI’s own monorepo

Run for real against this repo at every stage, not just synthetic test fixtures — real bugs surfaced by that, not by review: a cross-manager name collision (an npm package and a Cargo crate in the same monorepo both legitimately publishing under one name) that silently dropped a real package until identity got keyed on (kind, name) instead of bare name; a TOML sub-table’s own path =/version = attributes leaking in as if they were sibling dependencies named “path” and “version”; and a lazy array-parsing regex that broke the moment a dependency string contained Python’s own "uvicorn[standard]" extras syntax, fixed with a real bracket-depth scanner.

Honest scope

Declared, static structure only — never a runtime call graph. No HTTP/gRPC traffic, no queue message flow, is inspected or guessed at. Technology tags come from a curated, deliberately non-exhaustive lookup table. Infrastructure resources are CDK TypeScript only today — Terraform/CloudFormation are a real, documented gap, not silently unsupported by oversight. Every manifest reader is a small heuristic extractor, not a real parser — see the source’s own README for exactly what each one does and doesn’t cover.

Verification

238 tests, 100% statement coverage, run for real with coverage measured — plus dogfooding against this repo’s own real npm+Cargo workspace and real CDK infrastructure (12 resources across 6 stack files), and a hand-built five-ecosystem polyglot fixture exercised end to end through the CLI.

Preview the real source

Read straight out of this skill's own source directory, unedited — the exact bytes that ship inside system-map.zip, not a rewritten excerpt. Switch tabs to read a file before downloading, or use Copy to paste it somewhere else.

Choose a file to preview

← Back to skills