ArtisanPack UI
DocsSpecificationUsage Overview

Usage Overview

Specification v1.0.0

Everything in the package is reachable from the helper or the facade. Both resolve the same singleton. Each specification.website page is a topic with a...

Everything in the package is reachable from the specification() helper or the Specification facade. Both resolve the same singleton.

use ArtisanPackUI\Specification\Facades\Specification;

specification()->sync();
Specification::search( 'content security policy' );

Core Concepts

Topics and slugs

Each specification.website page is a topic with a category/topic slug such as foundations/doctype or security/x-xss-protection. Topics carry one of four status tiers:

Status Conformance Meaning
Required MUST The platform contract breaks, or a clear group of users is harmed, without it.
Recommended SHOULD A modern site should do it.
Optional MAY Depends on context.
Avoid MUST NOT Outdated, harmful, or superseded.

The snapshot is authoritative

Topics come from the OKF bundle, which is vendored to disk and copied into the database. Checks, search, and rendering work offline from that snapshot. The MCP client only tells you how fresh the snapshot is.

Checks live in owner packages

This package defines the SpecCheck contract and runs whatever checks are registered. Domain checks belong to the packages that can enforce them.

Guides

Stay in the Loop

Monthly tips, tutorials and package updates — plus a free Quick Start cheat sheet.

Subscribe
Edit this page on GitHub