NL2SQL Core Engine — 6 Pillars

Community

Stabilize NL2SQL with repair, trace, and eval

Authorductoanoxo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you keep an NL2SQL multi-agent pipeline accurate and safe as your database schema, prompts, and LLM models evolve.

Core Features & Use Cases

  • Schema Linking & Value Profiling: Maps user intent to the correct tables/columns and injects value profiles so generated SQL uses exact enum values.
  • Ambiguity Detection: Tunes the Gatekeeper rules to correctly classify valid analytical questions vs unsafe/invalid requests.
  • Generation Trace: Extends intermediate outputs so you can understand why the pipeline chose a specific query plan and SQL.
  • Retry & Repair: Recovers from SQL dialect issues using a centralized repair/patch mechanism.
  • Evaluation Suite (23-case): Runs an automated regression test set and produces a test_report.json to prevent prompt/schema regressions.

Quick Start

Use the NL2SQL Core Engine — 6 Pillars Skill when you change schema, prompts, synonyms, or the LLM, then run the evaluation suite to confirm 23/23 PASS and catch regressions early.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: NL2SQL Core Engine — 6 Pillars
Download link: https://github.com/ductoanoxo/Agent_SQL/archive/main.zip#nl2sql-core-engine-6-pillars

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.