What problem does it solve?
Designing PocketBase collections involves subtle pitfalls like wrong field types, unexpected zero-value defaults, and misconfigured relation cascading. This Skill provides the reference knowledge needed to create collections, choose field types, and set up relations correctly the first time.
Core Features & Use Cases
- Collection Type Guidance: Explains base, auth, and view collections, including SQL-backed view collections for aggregations and joins.
- Field Type Reference: Documents all field types with their Go types, zero-value defaults, and modifiers like required, unique, hidden, and presentable.
- Relation Patterns: Covers one-to-many, many-to-many, self-referencing relations, back-relations, and cascade delete behavior.
- Use Case: When building a blog backend, use this Skill to design a posts collection with an author relation to users, a tags many-to-many relation, proper indexes on filtered fields, and cascade delete rules.
Quick Start
Ask the AI to design a PocketBase posts collection with an author relation, tags, and appropriate indexes using this skill.