// React + GraphQL (Apollo Client) .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-react-graphql-apollo-clientCovers React+Apollo basics but lacks actionable trigger conditions and concrete examples
1// React + GraphQL (Apollo Client) .cursorrules23// Prefer functional components with hooks45const preferFunctionalComponents = true;67// GraphQL and Apollo Client best practices89const graphqlBestPractices = [10 "Use Apollo Client for state management and data fetching",11 "Implement query components for data fetching",12 "Utilize mutations for data modifications",13 "Use fragments for reusable query parts",14 "Implement proper error handling and loading states",15];1617// Folder structure1819const folderStructure = `20src/21 components/22 graphql/23 queries/24 mutations/25 fragments/26 hooks/27 pages/28 utils/29`;3031// Additional instructions3233const additionalInstructions = `341. Use Apollo Provider at the root of your app352. Implement custom hooks for Apollo operations363. Use TypeScript for type safety with GraphQL operations374. Utilize Apollo Client's caching capabilities385. Implement proper error boundaries for GraphQL errors396. Use Apollo Client DevTools for debugging407. Follow naming conventions for queries, mutations, and fragments41`;4243
Full transparency — inspect the skill content before installing.