feat(design): carve UX doctrine + Pretext patterns into read-on-demand sections

design-html 57→49KB, design-shotgun 53→50KB. Sections wrap
{{UX_PRINCIPLES}} so scripts/resolvers/design.ts stays the source of
truth; the pretext-patterns STOP sits at the top of Step 3 so the read
provably precedes the Write.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-08-25 18:05:54 +00:00
co-authored by Claude Fable 5
parent eae484c0f7
commit 4fce22d708
12 changed files with 566 additions and 478 deletions
+20
View File
@@ -0,0 +1,20 @@
{
"$schema": "https://gstack.dev/schemas/section-manifest.json",
"skill": "design-html",
"version": 1,
"note": "PASSIVE registry (v2 plan T9 / CM2). Fields are IDs, file paths, human titles, and human-readable trigger text ONLY. The skeleton's decision-tree prose is the ONLY place that decides WHEN to read a section; required-reads live in the E2E fixtures. No machine predicate here — see docs/designs/v2_PLAN.md:663.",
"sections": [
{
"id": "doctrine",
"file": "doctrine.md",
"title": "UX principles doctrine (how users actually behave)",
"trigger": "analyzing the design or making any layout/visual decision (Step 1 onward) — the UX-principles doctrine governs every design choice"
},
{
"id": "pretext-patterns",
"file": "pretext-patterns.md",
"title": "Pretext wiring patterns + API reference",
"trigger": "writing the finalized HTML in Step 3 — the Pretext wiring patterns and API cheatsheet are the required reference for all text-layout code"
}
]
}