feat(cli): onboard agents into the build-first workflow (init + agent docs)#3098
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
| lines.push(' import "@astryxdesign/core/reset.css";'); | ||
| lines.push(' import "@astryxdesign/core/astryx.css";'); |
There was a problem hiding this comment.
This is a big failing point where an agent forgets to add the required css. Adding instructions in the init output seem to solve it.
There was a problem hiding this comment.
Is it better to put it in agent docs or have it link a getting started doc?
f1855d3 to
b5357a2
Compare
d991e3f to
a552c28
Compare
cixzhang
left a comment
There was a problem hiding this comment.
Agent docs are getting a bit long. Maybe we can run it through some optimizer.
Generated CLAUDE.md now leads with the `build` workflow and a required-CSS setup note (reset.css + astryx.css) to prevent unstyled renders; `search` is reframed as a neutral universal find. `init` points at `astryx build`/`search` instead of dumping template names. Co-authored-by: Cursor <cursoragent@cursor.com>
a552c28 to
20eefba
Compare
🚀 Vercel Preview Deployment
|
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 |
Summary
CLAUDE.mdis now build-first: the workflow leads withastryx build, andsearchis reframed as a neutral universal find.reset.css+astryx.css) so components never render unstyled. Theme is noted as optional.initoutput restructured to point atastryx build/astryx searchinstead of dumping page-template names.Why
Round-3 vibe tests showed agents adopt
build10/10 when the docs lead with it. Two unstyled renders were caused purely by agents forgetting the CSS imports — the setup note targets that directly.Test plan
npx astryx init --allprints the build/search pointer (no template dump) + the SETUP blockCLAUDE.mdstep 1 isastryx build "..."npx vitest run packages/cli/src/commands/agent-docs.test.mjsMade with Cursor