vercel-composition-patterns

द्वारा supabase

React संरचना पैटर्न जो स्केल करते हैं। घटकों को रीफैक्टर करते समय उपयोग करें

npx skills add https://github.com/supabase/supabase --skill vercel-composition-patterns

React Composition Patterns

Composition patterns for building flexible, maintainable React components. Avoid boolean prop proliferation by using compound components, lifting state, and composing internals. These patterns make codebases easier for both humans and AI agents to work with as they scale.

When to Apply

Reference these guidelines when:

  • Refactoring components with many boolean props
  • Building reusable component libraries
  • Designing flexible component APIs
  • Reviewing component architecture
  • Working with compound components or context providers

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Component ArchitectureHIGHarchitecture-
2State ManagementMEDIUMstate-
3Implementation PatternsMEDIUMpatterns-
4React 19 APIsMEDIUMreact19-

Quick Reference

1. Component Architecture (HIGH)

  • architecture-avoid-boolean-props - Don't add boolean props to customize behavior; use composition
  • architecture-compound-components - Structure complex components with shared context

2. State Management (MEDIUM)

  • state-decouple-implementation - Provider is the only place that knows how state is managed
  • state-context-interface - Define generic interface with state, actions, meta for dependency injection
  • state-lift-state - Move state into provider components for sibling access

3. Implementation Patterns (MEDIUM)

  • patterns-explicit-variants - Create explicit variant components instead of boolean modes
  • patterns-children-over-render-props - Use children for composition instead of renderX props

4. React 19 APIs (MEDIUM)

⚠️ React 19+ only. Skip these patterns if you're on React 18 or earlier.

  • react19-no-forwardref - Don't use forwardRef; use use() instead of useContext()

How to Use

Read individual rule files for detailed explanations and code examples:

rules/architecture-avoid-boolean-props.md
rules/state-context-interface.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

supabase की और Skills

studio-e2e-tests
supabase
Supabase Studio के लिए Playwright E2E परीक्षण लिखें और चलाएं। जब पूछा जाए तब उपयोग करें।
official
vitest
supabase
Vite द्वारा संचालित तीव्र यूनिट परीक्षण फ्रेमवर्क जिसमें Jest-संगत API है। परीक्षण लिखने, मॉकिंग करने, कवरेज कॉन्फ़िगर करने या परीक्षण के साथ काम करते समय उपयोग करें।
official
skill-creator
supabase
मॉड्यूलर स्किल बनाने के लिए व्यापक मार्गदर्शिका जो विशेष ज्ञान और वर्कफ़्लो के साथ क्लॉड की क्षमताओं का विस्तार करती है। स्किल में एक आवश्यक SKILL.md फ़ाइल होती है जिसमें YAML फ्रंटमैटर और मार्कडाउन निर्देश होते हैं, साथ ही वैकल्पिक बंडल संसाधन (स्क्रिप्ट, संदर्भ, एसेट) उद्देश्य के अनुसार व्यवस्थित होते हैं और संदर्भ को संरक्षित करने के लिए क्रमिक रूप से लोड किए जाते हैं। ठोस उपयोग उदाहरणों के आसपास
official
supabase
supabase
किसी भी Supabase से संबंधित कार्य करते समय उपयोग करें। ट्रिगर: Supabase उत्पाद (डेटाबेस, प्रमाणीकरण, एज फंक्शन्स, रियलटाइम, स्टोरेज, वेक्टर्स, क्रॉन, क्यूज़); क्लाइंट…
official
supabase-server
supabase
सुपाबेस के साथ सर्वर-साइड कोड लिखते समय उपयोग करें — एज फंक्शन, होनो ऐप्स, वेबहुक हैंडलर, या कोई भी बैकएंड जिसे सुपाबेस प्रमाणीकरण और क्लाइंट निर्माण की आवश्यकता हो।
official
clickhouse-logs-queries
supabase
Write, review, and migrate Supabase logs queries against the ClickHouse-backed `logs` table (the `logs.all.otel` analytics endpoint). Use this whenever a task…
official
dev-toolbar-review
supabase
उन PRs की समीक्षा करते समय उपयोग करें जो packages/dev-tools/, packages/common/posthog-client.ts को छूते हैं,
official
e2e-studio-tests
supabase
स्टूडियो ऐप में e2e परीक्षण चलाएँ। जब e2e परीक्षण चलाने, स्टूडियो परीक्षण चलाने, प्लेराइट परीक्षण चलाने, या फीचर का परीक्षण करने के लिए कहा जाए तो इसका उपयोग करें।
official