swifql-query-building
Skill by swiftstream
Guides an assistant to build, translate, review, and prepare SQL in Swift code that imports the SQL module. It is for developers using the SQL package who need dialect-aware output and bound runtime values.
Install swifql-query-building
Built from the published package, never by AI.
git clone --depth 1 https://github.com/swiftstream/SQL /tmp/SQL && mkdir -p ~/.claude/skills && cp -r /tmp/SQL/.agent/skills/swifql-query-building ~/.claude/skills/swifql-query-buildingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/swiftstream/SQL /tmp/SQL && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/SQL/.agent/skills/swifql-query-building ~/.gemini/antigravity-cli/skills/swifql-query-buildingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install swifql-query-building in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill gives step-by-step guidance for downstream Swift code that imports the canonical SQL module. It tells the assistant to check the resolved SQL package version, build queries in SQL-shaped DSL calls, keep runtime values on the bind path, and prepare output for a target dialect such as .psql, .mysql, or .duck. It stops at construction and preparation.
The skill covers SQL/JSON owners per dialect, aggregate argument builders, grouped operator escapes, and semantic date and interval types. It is aimed at Swift developers writing or reviewing SQL queries with the SQL package. Database execution is left to a driver or an integration layer such as Bridges.
Written from the project's SKILL.md and checked against it.
What it can do
- Version checkConfirms which SQL package version the consumer uses before choosing an API.
- Query constructionBuilds SQL with direct SQL.<fluent> calls or declarative SQL { } blocks.
- Dynamic value bindingKeeps runtime values on the bind path and out of raw SQL text.
- Dialect preparationPrepares output for .psql, .mysql, or .duck where the installed version supports them.
- SQL/JSON guidanceExplains the validated SQL/JSON function boundary for PostgreSQL, DuckDB, and MySQL.
- Aggregate buildersShows how Distinct and OrderBy sit inside aggregate function builders.
- Date and interval typesHelps choose PureDate, PureTime, DateTime, Interval, or Foundation.Date by meaning.
- Translation reviewGuides translating SQL into the DSL while preserving structure and bind order.
What you need
- A Swift project that imports the SQL module
- Package.swift or Package.resolved showing the SQL package version
Try asking
- Translate this SQL query into the SQL package DSL for PostgreSQL.
- Review my Swift query code for unsafe string interpolation of user input.
- Write an aggregate with DISTINCT and ORDER BY using the SQL package.
Good to know
- Stops after query construction and preparation and does not execute SQL.
- Available APIs depend on the resolved SQL package version.
- Raw SQL is meant only for trusted, static structure.
- SQL/JSON behavior and supported ranges differ by dialect.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agent/skills/swifql-query-building/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to swifql-query-building
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
swifql-query-building: common questions
Does this skill run queries against a database?
No. The source says it stops after construction and preparation. Execution belongs to a driver or an integration layer such as Bridges.
Which dialects does it target?
It prepares SQL for .psql, .mysql, or .duck when the installed SQL version supports them.
How does it handle user input in queries?
Ordinary runtime values stay on SQL's value and bind path. Identifiers and SQL structure are not bound as data.
How do I install swifql-query-building?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is swifql-query-building free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is swifql-query-building safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to swifql-query-building?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
