Ship a structural init_design scaffold separate from styling choices #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/initial-design-system"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The original
init_designMCP tool produced a three-file scaffold (oneHTML, one CSS, one markdown spec) that conflated file structure with
visual design choices. Every project that called the tool inherited a
specific palette, typography, and layout system, whether that fit the
project or not. The tool needed to teach conventions — folder layout,
file naming, the separation between styleguide and page previews —
without committing to an aesthetic.
This PR rewrites the scaffold to be structural. The output is a folder
tree under
design/with named sub-folders forspecs/,preview/,components/, andfonts/, a singlestyle.cssorganized into banner-commented bands (tokens / reset / elements / forms / components /
prototype chrome), a
theme.jsplaceholder, and README files explainingeach location. No opinionated colors, typography, or component shapes —
just the structure.
Prototype chrome namespace
Styleguide-only UI (breadcrumbs, section wrappers, nav chrome for page
previews) lives under a
.prototype-*class namespace so downstreamporting to a real web layer knows what to keep and what to strip. When a
real design system later builds on top of this scaffold, the prototype
chrome can stay in
design/and get omitted from the ported CSS.Page previews as navigation
The scaffold includes
design/preview/index.htmlas the canonical entrypoint for interactive previews, with a
.prototype-breadcrumbfornavigating between preview pages. Real dev chrome, not part of any page
being previewed.
Tests
mcp/scaffold_test.goasserts the exact folder layout and file list sothe scaffold contract is pinned against regressions.
GET /projects/{slug}/design-preview/ returned 415 because the empty path has no extension. Treat empty as index.html. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>feat: rewrite init_design scaffold with structured templatesto Ship a structural init_design scaffold separate from styling choices