Skip to content

feat: Add SQL Query Generator AgentKit#159

Open
aakritipp wants to merge 1 commit into
Lamatic:mainfrom
aakritipp:feat/sql-query-generator
Open

feat: Add SQL Query Generator AgentKit#159
aakritipp wants to merge 1 commit into
Lamatic:mainfrom
aakritipp:feat/sql-query-generator

Conversation

@aakritipp
Copy link
Copy Markdown

What This Kit Does

An AI-powered agent that converts natural language questions into optimized SQL queries. Users paste their database schema and ask questions in plain English. The agent returns production-ready SELECT queries with explanations, confidence scores, and assumption tracking.

Problem It Solves

Writing SQL from scratch is time-consuming, especially for complex joins and aggregations. This tool lets developers and analysts quickly get a working query by describing what they need in plain English.

Key Features

  • Generates read-only SELECT queries only (never INSERT/UPDATE/DELETE/DROP)
  • Returns structured output: SQL, explanation, tables used, assumptions, confidence
  • Cross-database compatible (PostgreSQL, MySQL, SQLite)
  • Handles ambiguous questions gracefully

Providers & Prerequisites

  • Any LLM provider configured in Lamatic (e.g., Anthropic, OpenAI, Google)

How to Run Locally

  1. cd kits/sql-query-generator/apps
  2. npm install
  3. cp .env.example .env.local and fill in values
  4. npm run dev

Live Preview

https://agent-kit-git-vercel-react-server-co-47ca9a-aakritipps-projects.vercel.app

Lamatic Flow

Flow ID: 26053fbe-e183-48b9-a6a1-a2eb14dac2aa

Checklist

  • Kit runs locally with npm run dev
  • .env.example has no secrets, only placeholders
  • README.md documents setup and usage
  • Folder structure follows kits/sql-query-generator/
  • lamatic.config.ts is present and valid
  • All flows exported in flows/ folder
  • Vercel deployment works
  • Live preview URL works end-to-end

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 16, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • agentkit-challenge

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: b65becfc-2cf0-44e8-9c1f-e44a180a51fc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

PR Validation Results

New Contributions Detected

  • Kit: kits/sql-query-generator/constitutions
  • Kit: kits/sql-query-generator/flows
  • Kit: kits/sql-query-generator/README.md
  • Kit: kits/sql-query-generator/model-configs
  • Kit: kits/sql-query-generator/lamatic.config.ts
  • Kit: kits/sql-query-generator/prompts
  • Kit: kits/sql-query-generator/agent.md
  • Kit: kits/sql-query-generator/apps

Check Results

Check Status
No edits to existing projects ✅ Pass
Required root files present ❌ Fail
Flow folder structure valid ✅ Pass
No changes outside contribution dirs ✅ Pass

Errors

  • ❌ Missing config.json in kits/sql-query-generator/constitutions
  • ❌ Missing README.md in kits/sql-query-generator/constitutions
  • ❌ Missing flows/ directory in kits/sql-query-generator/constitutions
  • ❌ Missing config.json in kits/sql-query-generator/flows
  • ❌ Missing README.md in kits/sql-query-generator/flows
  • ❌ Missing flows/ directory in kits/sql-query-generator/flows
  • ❌ Missing config.json in kits/sql-query-generator/README.md
  • ❌ Missing README.md in kits/sql-query-generator/README.md
  • ❌ Missing flows/ directory in kits/sql-query-generator/README.md
  • ❌ Missing config.json in kits/sql-query-generator/model-configs
  • ❌ Missing README.md in kits/sql-query-generator/model-configs
  • ❌ Missing flows/ directory in kits/sql-query-generator/model-configs
  • ❌ Missing config.json in kits/sql-query-generator/lamatic.config.ts
  • ❌ Missing README.md in kits/sql-query-generator/lamatic.config.ts
  • ❌ Missing flows/ directory in kits/sql-query-generator/lamatic.config.ts
  • ❌ Missing config.json in kits/sql-query-generator/prompts
  • ❌ Missing README.md in kits/sql-query-generator/prompts
  • ❌ Missing flows/ directory in kits/sql-query-generator/prompts
  • ❌ Missing config.json in kits/sql-query-generator/agent.md
  • ❌ Missing README.md in kits/sql-query-generator/agent.md
  • ❌ Missing flows/ directory in kits/sql-query-generator/agent.md
  • ❌ Missing config.json in kits/sql-query-generator/apps
  • ❌ Missing README.md in kits/sql-query-generator/apps
  • ❌ Missing flows/ directory in kits/sql-query-generator/apps

🛑 Please fix the errors above before this PR can be merged.

Refer to CONTRIBUTING.md and CLAUDE.md for the expected folder structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant