byaan:learn

Extract database models, tables, and schemas to generate accurate SQL queries.

94|2|Updated May 11, 2026
One-click install
npx skills add https://github.com/byaan-ai/byaan --skill byaan-learn
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: byaan:learn
Source: https://github.com/byaan-ai/byaan/tree/main/.agents/skills/byaan%3Alearn
Command: npx skills add https://github.com/byaan-ai/byaan --skill byaan-learn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzing a project's database models and access patterns to enable reliable, accurate SQL queries against the actual database schema.

Core Features & Use Cases

  • Deep codebase analysis to extract models, tables, fields, keys, and relations.
  • Schema-aware guidance for writing correct queries across multiple databases and ORMs.
  • Onboarding and updates: rebuilds the data-agent skill when schemas change or new projects are added.

Quick Start

Analyze the project's data models and usage patterns to build or update a data-agent skill that can generate accurate SQL queries against the databases described in this codebase.

Frequently Asked Questions about byaan:learn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze a codebase schema to write accurate SQL queries?▼

Schema-aware query generation works by mapping ORM definitions and database migrations to identify every model, table, and relation, enabling precise SQL construction for complex filtering, joins, and aggregations in real-world scenarios.

How do I build a data-agent that generates correct SQL against my databases?▼

When you add new projects or database schemas change, you rebuild the data-agent skill by re-evaluating the updated ORM definitions and migrations, ensuring the agent tracks schema changes and maintains accurate SQL query generation.

Does this approach work with multiple databases and ORMs?▼

Yes, this approach handles multiple databases and ORMs by performing deep codebase analysis to extract schema definitions and providing schema-aware guidance for writing correct queries across the different data layers.

What's the best way to track schema changes from ORM definitions to migrations?▼

The best way to track schema changes from ORM definitions to migrations is to enforce schema awareness by continuously mapping the relational access patterns and updating the data-agent to reflect the actual database schema.