Harness Intelligence Wiki
Domains

Frontend Composition Layer Glossary

Canonical terms from the closed frontend composition layer grill

Frontend Composition Layer Glossary

Superseded by the Entities Layer Model Glossary (2026-10-30).

These terms define the layer model of the frontend-domain-structure skill and its frontend-layers lint plugin.

  • Composition: the top frontend layer. It combines features and modules into providers, surface shells, page templates and registries. Avoid "abstractions", "root", "templates" and "shell layer".
  • Surface: one part of an app that a distinct user group sees through its own shell, such as a public site or an admin panel. Avoid "area", "portal", "section" and "sub-app".
  • Feature: a user-facing capability with its own workflow, policy or state. Avoid "page", "screen" and "widget".
  • Module: an app-local capability that several features use. It owns no user workflow. Avoid "shared", "lib", "utils" and "common".
  • Integration: an adapter to an outside system, client setup, or a fake or mock runtime. Avoid "infra", "adapters", "mock" and "prototype".
  • UI: primitives and shadcn components. In a monorepo it is only the shared UI package; in a single-package repository it is src/ui/.

Relationships

  • A Surface is a subfolder of Composition.
  • Composition imports Feature and Module.

Axioms

  • Each layer imports only lower layers: app or routes → composition → features → modules → integrations → ui.
  • A Feature never imports another Feature.
  • In a monorepo, primitives and shadcn components live only in the shared UI package.

Source: grill status and decision log.

On this page