architecture.hexum

Last updated 12 September 2026

architecture.hexum
skill full

layer ui
  match src/ui/**
  match src/pages/**

layer services
  match src/services/**

layer data
  match src/data/**

rule no_ui_to_data
  from ui
  cannot use data
  severity high
  message UI must not import data access directly.
  hint Call services instead.
FieldWhat you are saying
skilllite, full, ultra, or off. Optional.
layerA named group of files.
matchGlob. Repeatable.
ruleA named forbid.
fromSource layer.
cannot useForbidden target layer.
severityhigh / error, medium / warning, low.
messageWhat to show when the rule fires.
hintOptional fix.
layer name = globOne-line layer. Repeat to add globs.
forbid src -> dstOne-line high-severity rule. Comma-separated destinations ok.

Public explainer: What is architecture.hexum?

FAQ

What is the rules file?

A file in the repo (usually architecture.hexum) that groups folders into layers and says which layer cannot import another. Guide: /architecture-hexum.

Does the architecture check use an AI?

No. It reads a rules file in your repo and reports forbidden imports. It does not call a model, so it does not guess.