Repository navigation
feat(cli): frame-first layout guidance — new docs layout topic, agent rules, principles anti-patterns - #3315
Merged
Merged
Conversation
…es, principles anti-patterns Adds the layout knowledge that steers generation away from card-soup output and toward product-grade app frames: - New `astryx docs layout` topic (+ dense variant): frame-first workflow, region px budgets, app-archetype table (frame + container policy per archetype), cards-vs-rows do/dont, inspector-panel pattern, responsive-contract convention. - Agent cheat sheet (astryx init --features agents): three new RULES lines — frame first, dense data = rows not Card-wrapped items, StatusDot/Token over decorative Badge. - Principles doc: frame-first + rows rules and two new anti-patterns (Card-wrapped lists, decorative Badge), with dense and zh translations kept aligned. Patterns distilled from an analysis of six product-scale demo apps built on the design system, where container choice consistently tracked the product archetype (dense tools used zero Cards) and layout quality came from frame-first structure with explicit region budgets.
thedjpetersen
requested review from
cixzhang,
ejhammond,
imdreamrunner,
josephfarina,
marie-lucas and
nynexman4464
as code owners
July 1, 2026 20:45
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
This was referenced Jul 1, 2026
Contributor
|
This seems pretty good. Were you able to vibe test these docs to show some improvements to layouts? |
cixzhang
approved these changes
Jul 4, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
An analysis of six product-scale demo apps built on the design system (popular app inspired) showed that layout quality — real app frames instead of "card soup" (a padded scroll column of Card-wrapped sections with decorative Badges) — came from three things the apps encoded themselves: frame-first structure with explicit region budgets, a container policy where dense data renders as rows (the Linear- and Slack-style apps used zero Cards), and written responsive contracts. None of that knowledge existed in astryx's guidance surfaces: the principles anti-patterns were all token/styling rules, and the agent cheat sheet said nothing about page structure.
This PR moves that layout knowledge into the design system's guidance pipeline so every consumer inherits it.
What
astryx docs layouttopic (+ dense variant, auto-discovered by the docs command and the agent cheat sheet topic list):astryx init --features agents): three new RULES lines — frame first, dense data = rows not Card-wrapped items, StatusDot/Token over decorative Badgedocs principles: frame-first + rows rules and two new anti-patterns (Card-wrapped list items, Badge as decoration), with dense and zh translations kept positionally alignedTesting
astryx docs layout/--denserender correctly; topic auto-appears indocslisting and the generated cheat sheetastryx init --features agentsoutput includes the new rulesvitest run packages/cli: all agent-docs (48), docs (7), and detail-level (12) tests pass; the 6 failures in the full sweep are pre-existing on main (verified via stash)Companion PR: the
incident-consoletemplate demonstrates these rules in a full page.