Repository navigation
docs: AI agent checklist for upgrading an app to 1.8; ship MIGRATION-1.8.md; fix flex padding rules - #94
Merged
Conversation
… rules docs/AI_UPGRADE_1.8.md (new) walks an agent through the 1.7 -> 1.8 changes an app can hit, from MIGRATION-1.8.md: each step gives an rg search, what a match means and what to change, and says to list unclear matches for the developer instead of changing them. The searches were checked against a sample file of matches and near-misses. - package.json: the package ships docs/AI_UPGRADE_1.8.md and MIGRATION-1.8.md next to docs/AI_CODING_GUIDELINES.md, so an agent in an app finds them under node_modules/@solidtv/solid. - docs/_sidebar.md: links both upgrade guides (MIGRATION-1.8.md on GitHub, as the docs site serves docs/ only). - AI_CODING_GUIDELINES.md and essentials/ai_context.md: link the checklist. Padding takes a number, a CSS-style array or per-side props, and margin the same, with one flex engine; both said only a single padding number worked and listed paddingLeft under "do not use". The item flex props add flexShrink, flexBasis, flexOrder and margin. - CLAUDE.md: the same padding rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds an upgrade guide for AI agents moving an app from 1.7.x to 1.8, ships it and
MIGRATION-1.8.mdin the npm package, and corrects the flex padding rules in the AI docs. Docs andpackage.jsononly.Why
Before this,
mainhad no guide an agent working in an app could find or act on:MIGRATION-1.8.mdis written for people, and the npm package didn't include it. An agent readingnode_modules/@solidtv/solidnever saw it.docs/AI_CODING_GUIDELINES.md) said flex supports "ONLY a single overallpaddingnumber" and listedpaddingLeftunder "DO NOT USE". With the single flex engine (perf: one flex engine, flex text measured before the frame, draw order follows children (1.8 streams L, T, N) #89), per-side padding and padding arrays both work. An agent following the guidelines would avoid them or flag them as errors.What's in it
docs/AI_UPGRADE_1.8.md(new): a checklist an agent can run on an app.rgsearch, what a match means, and what to change.el.lng.x =andstates.remove('$focus')do not match).MIGRATION-1.8.mdfor the full description of each change.Shipping and links
package.jsonfiles: addsMIGRATION-1.8.mdanddocs/AI_UPGRADE_1.8.md.npm pack --dry-runlists both.docs/_sidebar.md: links both guides.MIGRATION-1.8.mdis linked on GitHub, since the docs site serves onlydocs/.docs/AI_CODING_GUIDELINES.mdanddocs/essentials/ai_context.md: link the checklist near the top.Padding rules corrected in
AI_CODING_GUIDELINES.md,ai_context.mdandCLAUDE.md:paddingtakes a number, a 2-, 3- or 4-value array, or per-side props. A per-side prop overrides that side.margintakes the same forms.flexShrink,flexBasis,flexOrderandmargin.These were checked against
flexLayout.ts(getArrayValue, andnode.paddingLeft ?? …).Not changed
The
solidtvClaude skill is not in this repository. ItsSKILL.mdand the referenceslayout/flex.md,core/gotchas.mdandcore/configuration.mdstill describe the legacy engine andVITE_USE_NEW_FLEX, so it needs the same padding update separately.Testing
npm run lintpasses.npm pack --dry-run --ignore-scriptsincludes both new files.🤖 Generated with Claude Code