gadget-best-practices
Installation
SKILL.md
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