Chravel Code Patterns Reference

Provide canonical React, Supabase, and Google Maps code patterns for Chravel.

2|1|Updated Jun 21, 2025
One-click install
npx skills add https://github.com/MeechYourGoals/Chravel --skill chravel-code-patterns-reference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Chravel Code Patterns Reference
Source: https://github.com/MeechYourGoals/Chravel/tree/main/.claude/skills/chravel-code-patterns
Command: npx skills add https://github.com/MeechYourGoals/Chravel --skill chravel-code-patterns-reference

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides clear, canonical examples of correct and incorrect coding patterns specific to the Chravel project, ensuring consistency and maintainability.

Core Features & Use Cases

  • React Patterns: Demonstrates best practices for component structure, state management, effects, and event handling.
  • Supabase Patterns: Illustrates standard query patterns, optimistic updates, and realtime subscriptions.
  • Google Maps Patterns: Shows how to initialize maps, perform guarded operations, handle debounced events, and manage markers.
  • Error Patterns: Highlights common pitfalls like unclosed brackets and missing returns.
  • UI Layout: Provides a visual guide for the typical Chravel UI structure.

Quick Start

Show me the correct way to handle state updates in a React useEffect hook within Chravel.

Frequently Asked Questions about Chravel Code Patterns Reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle state updates in a React useEffect hook correctly?

To handle state updates in a React useEffect hook correctly, you should follow established React patterns for component structure and event handling. This ensures proper asynchronous operations, state management, and adherence to coding standards.

What is the best way to implement realtime subscriptions and optimistic updates with Supabase?

The best way to implement realtime subscriptions and optimistic updates with Supabase is by using standard query patterns. Following canonical code examples ensures data consistency and proper handling of asynchronous operations during UI state changes.

How do I initialize Google Maps and manage markers without running into errors?

To initialize Google Maps and manage markers safely, perform guarded operations and handle debounced events. Using established code patterns for map initialization prevents common pitfalls and ensures stable UI layout integration.

Why does my React component fail to render due to missing returns or unclosed brackets?

Your React component fails to render due to missing returns or unclosed brackets, which are common error patterns. Reviewing canonical code examples helps identify these structural mistakes and ensures correct component layout and syntax.

Can I use these React and Supabase code patterns for my frontend TypeScript project?

Yes, you can use these React and Supabase code patterns for your frontend TypeScript project. They provide canonical examples for component structure, state management, and asynchronous operations, ensuring maintainability and consistency across your codebase.

What is the typical UI layout structure for a Chravel application?

The typical UI layout structure for a Chravel application follows a specific visual guide that integrates React components, Supabase queries, and Google Maps. Adhering to this layout ensures consistency and proper UI component arrangement.