Skip to content

docs: add an agents page and a readme for nine packages - #347

Merged
alexgrozav merged 3 commits into
styleframe-agent-ergonomics-uxf-406from
document-for-agents-uxf-413
Oct 21, 2026
Merged

alexgrozav merged 3 commits into
styleframe-agent-ergonomics-uxf-406from
document-for-agents-uxf-413

Conversation

@alexgrozav

Copy link
Copy Markdown
Contributor

Description

Agents that write a Styleframe config keep making the same mistakes, because the traps are written down only in the contributor guides, which don't ship to consumers. This PR puts them where an agent reads.

  • A new page, "Using Styleframe with AI agents" (08.tooling/03.agents.md, at /docs/getting-started/tooling/agents and in llms.txt). It covers the loop (inspect --json, check --typecheck --json, build, strict: true) and the common mistakes: an uncalled utility creator emits nothing, the presets depend on the design-tokens preset's token names, that preset adds a dark theme with its own primary, @token against plain strings against […], registering modifiers before a recipe uses &::after, colour levels are fixed values, and utilities before recipes. Every config on the page builds against the packed packages of this branch.
  • Stale claims fixed. The design system guide showed colour levels as oklch(from var(--color--primary) …). The real output is a fixed oklch(…), so the excerpt now shows it, with a note on what that means for themes. The Tailwind comparison said mistyped styles surface as TypeScript issues. It now says what TypeScript checks, what check and the build report, and links the mistakes that still build silently. The utilities API page warns that an uncalled creator emits no CSS.
  • A README for nine packages: @styleframe/core, loader, transpiler, runtime, scanner, theme, cli, plugin and figma listed README.md in files but shipped none. Each says what the package is, how to install it, and links its docs page and the agents page.

Related issue

None in this repository.

Type of change

  • 🐞 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that changes existing behavior)
  • 📖 Documentation
  • ♻️ Refactor / internal (no functional change)
  • 🔧 Build / tooling / CI

Checklist

  • My commits follow Conventional Commits with a package scope (e.g. feat(theme): …)
  • I ran pnpm build:nodocs && pnpm lint && pnpm typecheck && pnpm test and everything passes
  • I added a changeset (pnpm changeset) for changes to publishable packages, or this change only touches docs/storybook/app/playground/tests
  • I added or updated tests where relevant
  • I updated documentation where relevant
  • I did not edit generated files (dist/, .styleframe/)
  • My PR targets main and stays focused in scope

Notes / screenshots

  • The commit has no package scope, since it touches the docs and nine packages' READMEs. The changeset is a patch for each of the nine, so the README ships with their next release.
  • The PR targets the integration branch for this work, not main, and lands with the rest of it.
  • Checked: pnpm build:docs (the page is listed in llms.txt), pnpm --filter @styleframe/docs test:build, every /docs link and anchor in the changed files against the built site, and each README listed in its packed tarball.

Agents that write a Styleframe config made the same mistakes over and
over, because the traps were written down only in the contributor
guides. Add a "Using Styleframe with AI agents" page with the inspect,
check and strict loop and the mistakes that build without a warning,
and fix two claims the output contradicts: the colour levels in the
design system guide are fixed oklch() values, and the Tailwind
comparison now says what the type checks and the build checks cover.
The utilities page warns that an uncalled creator emits no CSS.

Nine published packages listed README.md in their files but shipped
none, so their npm pages were empty. Each now says what it is, how to
install it and where its docs and the agents page are.
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
styleframe-dev Ready Ready Preview Oct 21, 2026 9:30am UTC
styleframe-dev-storybook Ready Ready Preview Oct 21, 2026 9:30am UTC

Request Review

A plain "@token" in a selector or a theme declaration still throws
when it's defined; only recipes, utility values and css template
literals report it as a diagnostic. The Tailwind comparison now says
so, in three short paragraphs, and the agents page matches it.

The scanner README says the plugin only scans once scanner.content is
set. The agents page splits its overview, says that check prints no
JSON when a config throws and that --typecheck needs typescript, and
the theme, plugin and core READMEs are more exact about runtime, Bun
and the standalone core import.
A string "@token" in a utility created with an object throws when
it is defined, like one in a selector; only the array form reports
unresolved-reference. The Tailwind comparison and the agents page
now name both forms.
@alexgrozav
alexgrozav merged commit 0aebf3c into styleframe-agent-ergonomics-uxf-406 Oct 21, 2026
2 of 3 checks passed
@alexgrozav
alexgrozav deleted the document-for-agents-uxf-413 branch October 21, 2026 09:28

This branch was successfully deployed

2 active deployments
Preview – styleframe-dev — 7493fcd9 Deployed Oct 21, 2026 by vercel[bot]
Preview – styleframe-dev-storybook — 7493fcd9 Deployed Oct 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant