gadget-best-practices

This skill provides quick reference patterns and best practices for building with Gadget.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gadget-best-practices" with this command: npx skills add gadget-inc/skills/gadget-inc-skills-gadget-best-practices

How to use

This skill provides quick reference patterns and best practices for building with Gadget.

📖 Resources:

  • Full documentation: docs.gadget.dev

Read individual rule files for detailed explanations and code examples:

Core Data Modeling

  • references/models.md - Data model design patterns and naming conventions

  • references/fields.md - Field types, validations, and configuration

  • references/relationships.md - Relationship patterns (belongsTo, hasMany, hasManyThrough)

  • references/data-access.md - Computed views and computed fields (Gelly aggregates, group by, time-series, access control)

Backend Logic

  • references/actions.md - Model actions vs global actions, hooks, and patterns

  • references/routes.md - HTTP routes and when to use them vs actions

  • references/background-jobs.md - Enqueueing actions and scheduled tasks

Access Control & Security

  • references/access-control.md - RBAC, permission filters, and Gelly expressions

  • references/shopify-multi-tenancy.md - Shop isolation patterns for Shopify apps

Platform Integrations

  • references/shopify-integration.md - Shopify app patterns (webhooks, sync triggers, metafields)

  • references/bigcommerce-integration.md - BigCommerce app patterns

  • references/webhooks.md - Webhook handling patterns

Frontend Development

  • references/frontend-hooks.md - React hooks from @gadgetinc/react

  • references/frontend-components.md - Autocomponents and UI patterns

  • references/frontend-forms.md - Form handling and validation

Development Workflow

  • references/ggt-cli.md - Canonical ggt workflow (sync, checks, logs, envs, conflict handling, parallel worktrees)

  • references/testing.md - Framework-agnostic testing setup, scenarios, and CI gates

  • references/deployment.md - Deployment workflows and environments

  • references/environments.md - Environment variables and multi-environment strategies

  • references/project-structure.md - File organization and conventions

API & Authentication

  • references/api-client.md - Using the Gadget API client (filters, pagination, relationships)

  • references/internal-api.md - Internal API usage, atomic updates, transaction-safe writes, and admin/session context

  • references/authentication.md - User authentication patterns

  • references/error-codes.md - Common Gadget API error codes, likely causes, and triage workflow

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

OpenClaw Skill Growth

Make OpenClaw Skills observable, diagnosable, and safely improvable over time. Use this when the user wants to maintain many SKILL.md files, inspect repeated...

Registry SourceRecently Updated
171Profile unavailable
General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2871Profile unavailable
General

Skill Listing Polisher

Improve a skill's public listing before publish. Use when tightening title, description, tags, changelog, and scan-friendly packaging so the listing looks cl...

Registry SourceRecently Updated
1130Profile unavailable
General

Skill Priority Setup

Scans installed skills, suggests L0-L3 priority tiers, and auto-configures skill injection policy. Use when: setting up skill priorities, optimizing token bu...

Registry SourceRecently Updated
2510Profile unavailable