docs: Generate DevTools MCP and Vue testing skill references from docs - #4181
Conversation
The devtools-debugging skill reference (copied byte for byte into the React and Vue skills) and vue-test-utilities (a copy of packages/vue/src/test/README.md) were hand-written, so the build:skills drift check never covered them. - Move the DevTools MCP recipe to docs/core/guides/devtools-debugging.md (framework-aware) and generate both skills' copies from it - Add Vue "Unit testing components" (mountDataClient) and "Unit testing composables" (renderDataCompose) guides as .vue.md overrides of the React pages, and generate the vue-testing skill's references from them - Fix renderDataCompose examples in the vue-testing skill: it is async and `result` is the composable's return value (there is no `result.current`) - Point the test README and JSDoc @see links at the new guides Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcBpA1YWwvXC94QHnzQG1H
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcBpA1YWwvXC94QHnzQG1H
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Staff engineer (Cursor agent): LGTM. This is the right direction: the three hand-copied references now come from docs, so FOLLOW_UP (after merge, not for this PR): the new docs now steer people away from |
|
Agreed on the Generated by Claude Code |
|
Size Change: 0 B Total Size: 103 kB ℹ️ View Unchanged
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4181 +/- ##
=======================================
Coverage 98.09% 98.09%
=======================================
Files 165 165
Lines 3145 3145
Branches 626 626
=======================================
Hits 3085 3085
Misses 18 18
Partials 42 42 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcBpA1YWwvXC94QHnzQG1H
|
…ion rows #4179 changed set() row types after #4189 started checking that the playground editor types are current, so the editor-types check is red on master. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcBpA1YWwvXC94QHnzQG1H
|
Generated by Claude Code |
Move the DevTools MCP page into getting-started (it is listed there), link it from the framework skill bullets instead of a second "Debugging with agents" section, link DataClientPlugin to its API page, and drop examples the Vue testing skill repeated. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcBpA1YWwvXC94QHnzQG1H
…g-composables The Vue page keeps its unit-testing-hooks.vue.md filename so it shares the React page's doc id (sidebar and framework switcher), and sets a slug so its URL says composables. routeOf now honors absolute slugs so generated skill references link to the same URL. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EcBpA1YWwvXC94QHnzQG1H
|
Staff engineer (Cursor agent): Reviewed 8943675 (Vue composables guide served at Checked: the framework switcher maps by doc id and uses each doc's own FOLLOW_UP (after merge): this is the first slugged page shared by both frameworks, and the two link resolvers now disagree. |
Requested by Nathaniel · project thread
Motivation
Follow-up from the Staff reviews on #4153 and #4126. Three skill references were hand-written copies, so the
yarn build:skillsdrift check never covered them:data-client-reactanddata-client-vuereferences/devtools-debugging.md(byte-identical copies)data-client-vue-testing/references/vue-test-utilities.md(a copy ofpackages/vue/src/test/README.md)The Vue copy was also wrong:
renderDataCompose()is async andresultis the composable's return value, but the README and skill taughtrenderDataCompose(...)withoutawaitandresult.current.Solution
docs/core/getting-started/devtools-debugging.md), listed in Getting Started right after Agent Skills and linked from the Agent Skills page's React/Vue skill entries and from the Debugging page. Both skills list it inreferences.json, so each gets its own framework's version.unit-testing-components.vue.md(mountDataClient()) andunit-testing-hooks.vue.md(renderDataCompose(), titled "Unit testing composables") as Vue overrides of the React pages, so they share routes and the framework switcher. Every example was run as a real Vue test.data-client-vue-testinggeneratesunit-testing-components.mdandunit-testing-composables.mdfrom them.data-client-vue-testing/SKILL.mdexamples fixed to match the real API, with duplicated sections trimmed in favor of the generated references.packages/vue/src/test/README.mdnow links to the guides; the dead@seeinrenderDataComposepoints at the new page. Vue pages (core README, Controller, Fixtures) now link to the guides instead of plain text.No changeset: docs and JSDoc only.
Open questions
The drift check still can't tell when a hand-written reference duplicates a doc (
data-client-rest-setup/references/axios-migration.mdvsdocs/rest/guides/axios-migration.mdis one); that's queued as its own follow-up, as is deprecating or hardeningwaitForNextUpdate().🤖 Generated with Claude Code
https://claude.ai/code/session_01EcBpA1YWwvXC94QHnzQG1H
Note
Low Risk
Documentation, generated skill references, and JSDoc only—no runtime or API behavior changes.
Overview
Moves hand-written agent skill references onto the
yarn build:skillspipeline so drift checks cover them, and adds first-class Vue unit-testing documentation.Chrome DevTools MCP: New Getting Started page
devtools-debugging.mdholds the full MCP debugging recipe (controller discovery, action log shim, state reads). React and Vue skills each get a generatedreferences/devtools-debugging.md(framework-specific links/prereqs) via newreferences.jsonentries; Agent Skills, Debugging, and the sidebar link to the canonical doc.Vue testing: New Vue overrides
unit-testing-components.vue.mdandunit-testing-hooks.vue.md(composables slug/guides/unit-testing-composables) documentmountDataClient()and asyncrenderDataCompose(). Thedata-client-vue-testingskill is rewritten to match the real API (await renderDataCompose,result/await result, simplifiedflushUntil) and points at generatedunit-testing-components.md/unit-testing-composables.mdinstead of the removedvue-test-utilities.md. PackageREADMEand JSDoc@seeURLs now link to those guides;docsToMarkdown.mjsrespects absoluteslugfront matter for routes.Cross-links (Controller, Fixtures, core README) and fixture docs now point at the composables/components testing guides and
getInitialInterceptorDataoptions.Reviewed by Cursor Bugbot for commit 8943675. Bugbot is set up for automated code reviews on this repo. Configure here.