Skip to content

docs: AI agent checklist for upgrading an app to 1.8; ship MIGRATION-1.8.md; fix flex padding rules - #94

Merged
chiefcll merged 1 commit into
mainfrom
docs/ai-upgrade-1.8
Nov 20, 2026
Merged

chiefcll merged 1 commit into
mainfrom
docs/ai-upgrade-1.8

Conversation

@chiefcll

Copy link
Copy Markdown
Contributor

Adds an upgrade guide for AI agents moving an app from 1.7.x to 1.8, ships it and MIGRATION-1.8.md in the npm package, and corrects the flex padding rules in the AI docs. Docs and package.json only.

Why

Before this, main had no guide an agent working in an app could find or act on:

  • MIGRATION-1.8.md is written for people, and the npm package didn't include it. An agent reading node_modules/@solidtv/solid never saw it.
  • The AI docs the package does ship (docs/AI_CODING_GUIDELINES.md) said flex supports "ONLY a single overall padding number" and listed paddingLeft under "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.

  • Ten steps in order: dependencies, the flex engine switch, the flex fixes that move layouts, text in flex containers, states and style objects, focus callbacks, draw order, removed writes, the terser build setting, and verification.
  • Each step gives an rg search, what a match means, and what to change.
  • It tells the agent not to touch code no step points to, and to list unclear matches for the developer instead of changing them.
  • Every search pattern was checked against a sample file of matches and near-misses (for example, el.lng.x = and states.remove('$focus') do not match).
  • It points to MIGRATION-1.8.md for the full description of each change.

Shipping and links

  • package.json files: adds MIGRATION-1.8.md and docs/AI_UPGRADE_1.8.md. npm pack --dry-run lists both.
  • docs/_sidebar.md: links both guides. MIGRATION-1.8.md is linked on GitHub, since the docs site serves only docs/.
  • docs/AI_CODING_GUIDELINES.md and docs/essentials/ai_context.md: link the checklist near the top.

Padding rules corrected in AI_CODING_GUIDELINES.md, ai_context.md and CLAUDE.md:

  • padding takes a number, a 2-, 3- or 4-value array, or per-side props. A per-side prop overrides that side.
  • margin takes the same forms.
  • The item property list gains flexShrink, flexBasis, flexOrder and margin.
  • "Directional paddings" is dropped from "DO NOT USE".

These were checked against flexLayout.ts (getArrayValue, and node.paddingLeft ?? …).

Not changed

The solidtv Claude skill is not in this repository. Its SKILL.md and the references layout/flex.md, core/gotchas.md and core/configuration.md still describe the legacy engine and VITE_USE_NEW_FLEX, so it needs the same padding update separately.

Testing

  • npm run lint passes.
  • The checklist's searches were run against a sample file.
  • npm pack --dry-run --ignore-scripts includes both new files.

🤖 Generated with Claude Code

… 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>
@chiefcll
chiefcll merged commit 8690e01 into main Nov 20, 2026
1 check passed
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