Repository navigation
Compact the generated agent-docs block - #7124
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
488ff42 to
cc307d6
Compare
cc307d6 to
4cef3dc
Compare
4cef3dc to
ca870a6
Compare
ca870a6 to
2239b34
Compare
bc5c46e to
aa709d6
Compare
aa709d6 to
06ac6af
Compare
06ac6af to
ed90847
Compare
ed90847 to
77cc279
Compare
77cc279 to
f825169
Compare
f825169 to
4f885c9
Compare
Tighten the block that init and upgrade write into consumer agent files. 29 lines / ~1.8 KB, was 32 lines / ~3 KB (39% smaller). - Workflow steps shorter; step 2 keeps frame/gap/padding; step 3 keeps block route - Existing-page rule preserved: skip scaffolding, add inside sections - Dense-data rule kept compact (Table/List, Badge = counts) - Per-system self-check with imported .css/@apply in all variants - CSS variant warns no StyleX/Tailwind compiler - Theme rule points at astryx docs theme - Command list: astryx help pointer + key commands No-context eval: 13/13 on CSS, 13/13 on Tailwind (original 7/8). CSS agent refused Tailwind classes, raw divs, and kept an existing page. Tailwind agent caught style={{}}, bg-[#fff], and kept an existing page.
4f885c9 to
440c34a
Compare
There was a problem hiding this comment.
This looks good to land. The compact block keeps the setup imports, template-first workflow, styling guidance, theme guard, and self-check intact while pointing at astryx help and astryx docs for the full command and topic lists, and the updated agent-docs and docs-graph tests pass — including the checks that every command the block shows is real.
One tiny description nit: the summary table says the dense-data rule was removed and lists five key topics, but the code keeps a shortened dense-data row and names four key topics. Worth tidying the description when convenient; it doesn't affect the change itself.
[Automated review]
Summary
The block that
initandupgrade --applywrite into consumer agent files (AGENTS.md, CLAUDE.md, etc.) is ~34% smaller: 27 lines / ~2 KB instead of 32 lines / ~3 KB.Consumer projects see the smaller block the next time they run
astryx initorastryx upgrade --from <version> --apply.What changed
astryx docs layoutand build outputastryx helppointerastryx docspointerastryx docs layoutbuild, template and component remain intentionally omitted from the command list — the workflow section covers them.
What is unchanged
agentDocs.appendlinesNo-context agent evaluation
4 agents (Sonnet, no CLI access, block as only context), 8 tasks each:
Q6 (Table vs Card): passed on all 4 runs — the dense-data rule was redundant; agents already know Table fits tabular data.
Q8 (find all commands): the old block had no
helpentry, so agents guesseddocs cli. The compact block saysastryx helpexplicitly.Writing rubric results
Not applicable — no spec records changed.
Test results
agent-docs.test.mjs: 98/98 ✅docs-graph.test.mjs: 10/10 ✅