Repository navigation
build(llms): add llms-small.txt, the agent primer plus one line per export - #1656
Merged
Merged
Conversation
…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
|
|
✅ Deploy Preview for solid-docs-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Before: the 2.0 site serves
llms.txt(an index) andllms-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:llmsalso writesllms-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 publicsolid-jsexport.llms.txtlinks it besidellms-full.txt.How: the primer body is checked in as
scripts/llms-small/primer.md, copied frompackages/solid/skills/solid-2.0/SKILL.mdin solidjs/solid (solidjs/solid#4098) without its frontmatter, with a source comment saying to re-copy when the skill changes. The export table isscripts/llms-small/api.mjs, 63 names checked againstpackages/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:
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