yujige-511/ai-analysis-confidence-platform/semantic-sql-history-profiler

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Optional semantic-model profiling workflow that mines historical SQL and bounded column distributions before YAML authoring

Install

npx vskill@latest install yujige-511/ai-analysis-confidence-platform/semantic-sql-history-profiler

SKILL.md

Semantic SQL History Profiler

Use this workflow when the skill is loaded because the user explicitly asked for profiling, statistics, data-distribution analysis, or mining/analyzing historical SQL. Providing SQL alone is not a trigger. Once loaded, run the profiler before semantic YAML authoring.

Workflow

  1. Call profile_semantic_model_evidence before writing semantic model YAML.
  • When historical SQL is provided inline, pass every provided SQL statement via sql_entries_json or sql_queries; do not choose only representative examples. Default to profile_mode="sql_only".
  • Use query_text only when direct SQL text is unavailable and existing reference SQL must be searched.
  • Use profile_mode="lightweight" with the target tables when the user asks for statistics or field distributions — this also works with no SQL at all (pure bounded distribution profiling).
  • Use profile_mode="deep" only when the user explicitly allows a slower exploration.
  • Set conservative bounds such as max_tables, max_columns_per_table, top_n, and max_profile_seconds.
  1. Use the evidence to decide the model shape:
  • Join relationships from historical SQL become relationship and candidate-key hints, not proven keys. When one JOIN clause has multiple equality predicates, keep its ordered source_columns / target_columns together as one composite relationship.
  • Before putting historical target columns in unique_keys, collect every complete ordered target list you intend to use and submit them together to validate_semantic_key_candidates. Only passing full-table results are key evidence; profiling samples are not.
  • Group-by and filter fields are dimension candidates.
  • Aggregate expressions and numeric profiles are measure candidates.
  • Min/max values, percentiles, and null/fill rates help describe numeric ranges and data quality.
  • Date spans, freshness, and duration profiles help identify usable time columns and common lifecycle intervals.
  • Top values and distinct ratios help detect enum-like categorical columns.
  • Referential coverage and join fanout hints help judge relationship reliability.
  • Common filter templates help capture reusable row-selection semantics without copying long SQL.
  1. Put useful distribution evidence into YAML descriptions while keeping them readable:
  • Start with the DDL comment or stable business meaning.
  • Add a compact distribution note when it helps downstream generation:
  • numeric fields: include observed min/max, p50/p90, or null rate when material.
  • date/time fields: include observed span, freshness, or paired duration when useful.
  • low-cardinality categorical fields: include distinct count and representative stable values.
  • enum-like fields: include the full stable code mapping when available.
  • relationship hints: mention low referential coverage or fanout only when it affects join semantics.
  • filter templates: mention common equality/range/text-search/function filters only when backed by history.
  • Convert raw evidence into concise semantic phrasing. Prefer "Order status, 4 distinct values; common values include paid/refund" over dumping profiler JSON.
  • Do not include SQL snippets longer than a short operator/function hint, and do not paste entire top-N lists or long filter examples.
  • Prefer omitting a field over writing a low-confidence or very verbose description.
  1. Treat profiling evidence as non-exhaustive.
  • Sampled top values and min/max values are hints, not hard constraints.
  • Historical JOIN frequency, referential coverage, and sampled distinct ratios do not prove uniqueness.
  • If evidence conflicts with DDL comments or validation, prefer DDL comments and validated schema.
  1. Validate and publish exactly as in the active semantic-model authoring workflow.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/yujige-511/ai-analysis-confidence-platform/semantic-sql-history-profiler/badge)](https://verified-skill.com/skills/yujige-511/ai-analysis-confidence-platform/semantic-sql-history-profiler)

Something wrong with this skill or its page? Tell us.