Query builder

On this page 2

stacks-query-builder · Native Stacks · model-invoked

Use when building database queries in a Stacks application - constructing SQL queries, using the fluent query API, or configuring the query builder. Covers @stacksjs/query-builder which wraps bun-query-builder, and config/query-builder.ts.

Read the skill for the implementation workflow and its current signatures. The Native capabilities catalog maps the package to source and retained evidence; driver limits are explicit.

Inside the skill

  • Key Paths
  • API
  • Usage
  • Configuration (config/query-builder.ts)
  • Gotchas

Using it

This skill is model-invoked. Your agent can select it for matching tasks, and you can call it directly.

/stacks-query-builder

Source: stacks-query-builder/SKILL.md.

It ships in @stacksjs/defaults with its supporting files. Run buddy setup:ai to refresh the agent setup. Override it per project with app/Skills/stacks-query-builder/SKILL.md. See Using skills.