一键导入
semantic-sql-history-profiler
Optional semantic-model profiling workflow that mines historical SQL and bounded column distributions before YAML authoring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Optional semantic-model profiling workflow that mines historical SQL and bounded column distributions before YAML authoring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate MetricFlow metrics from natural language business descriptions
Author MetricFlow semantic model YAML from database tables with validation and Knowledge Base publishing
Build the project's vector-indexed knowledge base from files plus database metadata — optionally scoped to specific files / tables / datasources / domains. Scan the in-scope material, classify it into business domains, explore each domain's tables and docs in parallel with explore subagents (the validated-query SQL corpus is enumerated directly, no explore needed), then (after the user confirms a generation manifest — or directly, in the same turn, when the user has waived confirmation) route every artifact to its store via storage-classify, generating semantic_models / metrics / reference_sql (and mining any extra knowledge), and refresh AGENTS.md's KB index. The lightweight /init handles the AGENTS.md inventory plus file-based knowledge/memory; this skill owns the heavy vector-store generation.
Create new Datus skills from scratch. Use when users want to build a new skill, scaffold a skill directory, or capture a workflow as a reusable skill. Trigger phrases include "create a skill", "make a skill for", "turn this into a skill", "new skill".
Activate when the gen_job agent detects that the source and target databases differ. Covers cross-database transfer lifecycle - type mapping via adapter Mixin hints, DDL generation, data transfer via transfer_query_result, and lightweight reconciliation.
Mine shortest atomic facts from (question + gold_sql) pairs into ./knowledge/*.md; either by simulating SQL drafting (lite) or by driving the gen_sql subagent in blind iteration (deep)
| name | semantic-sql-history-profiler |
| description | Optional semantic-model profiling workflow that mines historical SQL and bounded column distributions before YAML authoring |
| tags | ["semantic-model","sql-history","profiling"] |
| version | 1.0.0 |
| user_invocable | false |
| disable_model_invocation | false |
| allowed_agents | ["gen_semantic_model"] |
Use this workflow when the skill is loaded because the user provided historical SQL, success-story SQL, or explicitly asked for profiling. Once loaded, run the profiler before semantic YAML authoring.
Call profile_semantic_model_evidence before writing semantic model YAML.
sql_entries_json or sql_queries; do not choose only representative examples.query_text only when direct SQL text is unavailable and existing reference SQL must be searched.profile_mode="sql_only" when the user wants quick generation.profile_mode="lightweight" when sampled field distributions are helpful.profile_mode="deep" only when the user explicitly allows a slower exploration.max_tables, max_columns_per_table, top_n, and max_profile_seconds.Use the evidence to decide the model shape:
Put useful distribution evidence into YAML descriptions while keeping them readable:
Treat profiling evidence as non-exhaustive.
Validate and publish exactly as in the active semantic-model authoring workflow.