Data layer

Models, the ORM, queries, migrations, seeding and search.

Stacks derives migrations from your models rather than the other way round, so the model is the source of truth for the schema. These cover that loop end to end, plus the query surface and the search indexing that hangs off it.

7 skills.

SkillWhat it is for
DatabaseConnections, raw queries, SQL helpers and the four supported engines: SQLite, MySQL, PostgreSQL and DynamoDB.
FakerFake data generation for seeders and tests, wrapping ts-mocker.
MigrationsMigrations here are derived from your models rather than hand-written.
ModelsThe defineModel() surface in full: attributes with validation and factories, relationships, the behaviour traits, computed properties, and the 50+ models the framework ships.
ORMThe ORM itself: how defineModel() becomes a queryable model, how relationships resolve, what the traits attach, which system fields appear on their own, and the naming conventions the rest of the framework infers from.
Query builderThe fluent query surface, backed by bun-query-builder. Chainable conditions, ordering, eager loading, pagination and transactions, plus the configuration in config/query-builder.ts.
Search engineFull-text search over Meilisearch or Algolia, and the useSearch trait that keeps a model indexed without a line of glue code.

Every page here describes one SKILL.md under storage/framework/defaults/ai/skills. See Using skills to wire them into your agent.