Data Extraction Pro
Paste the following prompt into your AI chat to install this skill:
Please install @user_ceacef9a/data-extract-by-text2sql using the official guide at https://skillhub.cn/install/skillhub.md.
About this skill
When SQL code, business definitions, and warehouse table structures are already scattered across analysts and product ops, the problem is less about whether SQL can be written and more about how to reproduce data requests, evidence checks, generation, and review reliably. data-extract organizes this workflow into a portable bundled skill package: the root SKILL.md acts as the controller, while skills/ contains sub-skills for routing, generation, review, and wiki maintenance. Execution requires reading the relevant files instead of relying on conversational memory.
Core Workflow
- Routing first: each task starts by reading
references/exec-runbook.md, thenskills/skill-router/SKILL.mdproducesRouterInputandRouterDecisionto select the nextnext_skill. - SQL main chain: extraction SQL work covers
sql-generatorandsql-review-controller, separating generated SQL from review JSON. - Knowledge-base gate: steps that depend on
{{WIKI_ROOT}}require an explicit knowledge-base root. If the host has not configured it and the context cannot infer it uniquely, the user must confirm the path before read/write access. For extraction SQL, once the path is ready, the flow normally fillsraw/and runs/ingestcompilation before enteringinitial_sql. - State loop: after a sub-skill finishes, state is updated and routing is re-evaluated until
next_skill: noneand the output is deliverable.
Fit and Caveats
This bundle fits data analysis and product ops workflows that already have SQL and need evidence gates plus review chains. It does not include the double-layer-memory write/retrieval chain and does not bind a warehouse brand; {{SQL_ENGINE}} is project-specific. Before external distribution, review skills/ for example business definitions, table names, and internal paths to avoid leaking environment details into a public registry.
Use Cases
- Existing SQL needs evidence checks before review.
- Route new data requests to generator or review skills.
- Confirm WIKI_ROOT before running extraction SQL.
- Audit skills for example tables and internal paths.
Best For
- Data analysts with SQL who need evidence and review gates.
- Product ops routing data requests to generation or review.
- Technical authors auditing skill bundles before release.
- Engineers maintaining a WIKI_ROOT for extraction SQL.
Related Skills
Fetches Baidu Hot Search Top 10 titles using web_fetch first, validates same-day data, and falls back to browser automation when stale.
Generates an evening A-share policy and trading opportunity daily report by collecting same-day index, policy, and capital data, then applying a fixed template to highlight beneficiary sectors, drivers, and price directions.
Maps natural-language TikTok requests to KeyAPI REST scenarios, validates endpoints against docs, and executes data queries and analysis.
Extract city-specified AI jobs from BOSS Zhipin, save CSV/table data, mark new postings, and summarize salary trends, application advice, and HTML reports.