Conversation
Vue agents reading the data-client-rest, -rest-setup, -schema and -setup skill references got React components (JSX, un-awaited useSuspense, @data-client/react). docs/rest pages now carry :::react/:::vue siblings (FrameworkPlayground for playgrounds), so build:skills writes .vue.md variants with <script setup> SFCs. The /rest site instance runs remarkFramework for React, so the site still shows the React examples. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Crjxi2J3nfmnxg1sQaC8p5
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Start parallel fetches with useFetch, keep endpoints at module scope, create the date formatter once, and run remarkFramework on every React docs instance (graphql too) from one shared value. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Crjxi2J3nfmnxg1sQaC8p5
|
Staff engineer (Cursor agent): LGTM. FOLLOW_UP after merge, nothing to change in this PR. The The long-term risk is drift. The ~2.7k lines of new Vue examples in Follow-up: give Vue snippets a check. Either do the |
|
Agreed on the drift risk, and it's queued as a follow-up: a CI pass that type-checks the Vue blocks with Generated by Claude Code |
Requested by Nathaniel · project thread
Motivation
The
data-client-rest,-rest-setup,-schemaand-setupskills cover both frameworks, but their references come fromdocs/restpages that only had React components. Vue agents read JSX, un-awaiteduseSuspense()and@data-client/reactimports.Before (
data-client-rest/references/optimistic-updates.md, read by Vue agents):After (
optimistic-updates.vue.md):Solution
:::react/:::vuesiblings (playgrounds switch toFrameworkPlayground), soyarn build:skillswrites 31 new.vue.mdreferences. React renderings are byte-identical except one heading that gained an explicit id./restdocs instance now runsremarkFrameworkfor React, same as/docs, so the site keeps showing the React examples and:::vuenever leaks onto it. The Vue content also reaches the Vuellms-full.txt.DataProvideris labeled React-only, with the VueDataClientPluginequivalent.NewsListrendered itself, andgetPagecalled an undefinedTodoResource.Open questions
The
/restpages still show only React to Vue readers on the site; giving the rest instance a framework switch would be its own change.🤖 Generated with Claude Code
https://claude.ai/code/session_01Crjxi2J3nfmnxg1sQaC8p5
Generated by Claude Code
Note
Low Risk
Documentation and generated skill references only; no runtime or API behavior changes.
Overview
Adds Vue-facing skill references (31 new
*.vue.mdfiles under.agents/skills) so agents on Vue projects see@data-client/vue,<script setup>, andawait useSuspense()instead of React JSX and un-awaited hooks.Existing skill docs are updated in parallel: examples use
useFetch()before awaiting multipleuseSuspense()calls, pagination callsgetTodos.getPage(not an undefinedTodoResource), and cross-links point at.vue.mdsiblings (auth, Collection, Entity, guides). Wording shifts from “hooks” to composables where appropriate.React references get small correctness fixes too (
useController()in the pagination snippet,PostListinstead of a self-referencingNewsListin infinite scroll).auth.mdgains an explicit heading id; setupmain.tsdrops a misleadingtsxfence label.Reviewed by Cursor Bugbot for commit a528283. Bugbot is set up for automated code reviews on this repo. Configure here.