Skip to content

build(llms): add llms-small.txt, the agent primer plus one line per export - #1656

Merged
ryansolid merged 1 commit into
v2-rebuildfrom
claude/llms-small
Oct 15, 2026
Merged

ryansolid merged 1 commit into
v2-rebuildfrom
claude/llms-small

Conversation

@ryansolid

Copy link
Copy Markdown
Member

Before: the 2.0 site serves llms.txt (an index) and llms-full.txt (1.4 MB). A tool with a small context budget has nothing between the two, so it either reads the index and guesses from 1.x priors or cannot fit the corpus.

After: pnpm build:llms also writes llms-small.txt (about 12 KB): the Solid 2.0 agent primer (the rules that differ from React and 1.x, the 1.x to 2.0 corrections, the primitives to reach for) followed by a table with one line per public solid-js export. llms.txt links it beside llms-full.txt.

How: the primer body is checked in as scripts/llms-small/primer.md, copied from packages/solid/skills/solid-2.0/SKILL.md in solidjs/solid (solidjs/solid#4098) without its frontmatter, with a source comment saying to re-copy when the skill changes. The export table is scripts/llms-small/api.mjs, 63 names checked against packages/solid/src/index.ts; the nine exports left out are the ones the reference generator already hides ($PROXY, createComponent, enableHydration, and so on). The build strips prettier's table padding from the primer so the file stays within budget.

Local build output:

Generated llms.txt and llms-full.txt from 200 documents, and llms-small.txt from the primer and 63 exports.
  12157 dist/llms-small.txt
  44545 dist/llms.txt
1447768 dist/llms-full.txt

The AI tools page in #1654 should link this file once both land.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ka6h98478umeFadcRV1KLY


Generated by Claude Code

…xport

An agent with a small context budget should get the Solid 2.0 corrections
before anything else. `pnpm build:llms` now also writes `llms-small.txt`
(about 12 KB): the body of the solid-2.0 skill from the solidjs/solid
repository (checked in as scripts/llms-small/primer.md, copied without its
frontmatter) followed by a table with one line per public `solid-js`
export (scripts/llms-small/api.mjs, 63 names checked against
packages/solid/src/index.ts; compiler and renderer ABI and `@internal`
exports stay out). The primer's tables lose prettier's column padding at
build time so the file stays within budget; the checked-in copy is
verbatim. llms.txt links the new file beside llms-full.txt.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ka6h98478umeFadcRV1KLY
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify

netlify Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for solid-docs-v2 ready!

Name Link
🔨 Latest commit 6f2b7c6
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs-v2/deploys/6ad0fc4d97414beac5e3f59e
😎 Deploy Preview https://deploy-preview-1656--solid-docs-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ryansolid
ryansolid marked this pull request as ready for review October 15, 2026 19:32
@ryansolid
ryansolid merged commit b2165f7 into v2-rebuild Oct 15, 2026
8 checks passed
@ryansolid
ryansolid deleted the claude/llms-small branch October 15, 2026 19:32
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.

2 participants