Skip to content

docs: a reference page per diagnostic code, generated from the repair skill - #1658

Merged
ryansolid merged 2 commits into
v2-rebuildfrom
claude/diagnostics-pages
Oct 16, 2026
Merged

ryansolid merged 2 commits into
v2-rebuildfrom
claude/diagnostics-pages

Conversation

@ryansolid

Copy link
Copy Markdown
Member

Before: a dev console warning's only guidance was the agent repair skill (node_modules/solid-js/skills/reactivity-diagnostics/SKILL.md) and its GitHub URL, and the docs site had no page per diagnostic code.

After: every one of the 66 diagnostic codes has a page at /reference/solid-js/diagnostics/<slug> (e.g. /reference/solid-js/diagnostics/strict-read-untracked) written for a human: what you saw, why it fires, how to fix it, how to assert it in tests. An index page lists every code with its kind, severity and trigger. The companion runtime change (solidjs/solid, sourceNames.locations) points the console footer's first line at these pages, and the dev/observe reference pages, the vite plugin options page and the debugging guides describe the new at src/App.tsx:18:3 line and loc field.

The pages are generated: pnpm sync:diagnostics --source <solid checkout> (scripts/extract-diagnostics.mjs) reads the skill's per-code sections and packages/solid/diagnostics.json, like sync:ref does for the API reference. The generator is idempotent, fails if a hand-picked split marker stops matching, and rewrites three skill sentences for the tone lint. FLUSH_IN_ACTION has a skill section but no diagnostics.json entry (it is thrown, not emitted), so it gets no page.

How: new generator script wired into package.json; 67 generated pages under src/routes/reference/(1)solid-js/(8)diagnostics/; hand edits to dev.mdx, observe.mdx, the vite plugin options page, the AI tools, debugging and observability guides, the solid-js reference index, the sidebar config (group collapsed) and build-llms.mjs (small corpus links the index only). pnpm build, lint:tone, prettier, eslint and check:types pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ka6h98478umeFadcRV1KLY


Generated by Claude Code

… skill

One page per diagnostic code under /reference/solid-js/diagnostics, plus an
index with the console report explained (the message, the `in` line, the
`at` line, the element argument) and a table of every code. The pages are
written by scripts/extract-diagnostics.mjs from the reactivity-diagnostics
skill and diagnostics.json in a solidjs/solid checkout, for a person: what
you saw, why it fires, how to fix it, and the @solidjs/diagnostics
assertion that guards it. The console footer links these pages.

DEV/OBSERVE reference pages document DiagnosticEvent.loc and the `at`
line; the vite-plugin options page gains the `locations` sourceNames kind
and the root it is relative to; the guides link the index.

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 ade99c8
🔍 Latest deploy log https://app.netlify.com/projects/solid-docs-v2/deploys/6ad154bdd66c0ef697a1a860
😎 Deploy Preview https://deploy-preview-1658--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 merged commit 0b5fd4a into v2-rebuild Oct 16, 2026
8 checks passed
@ryansolid
ryansolid deleted the claude/diagnostics-pages branch October 16, 2026 04:12
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