check-architecture

command
v0.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Command check-architecture validates the vertical slice architecture of the Supermodel CLI using the Supermodel static analysis API.

Rules enforced:

  1. Slice packages must not import other slice packages.
  2. Slice packages may only import the shared kernel or external dependencies.

A "slice" is any package under internal/ that is NOT listed in sharedKernel.

Usage:

SUPERMODEL_API_KEY=<key> go run ./scripts/check-architecture

Environment:

SUPERMODEL_API_KEY   required — API key issued by api.supermodeltools.com
SUPERMODEL_API_BASE  optional — override the API base URL (default: https://api.supermodeltools.com)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL