sql-import
БесплатноБез исполняемых скриптовНе проверенSQL import workflow - connect to MySQL/Postgres/MSSQL, pick a table or write a custom query, discover schema, preview rows, and create a scheduled extract
от tekliner★ 17 звёзд на GitHubОб этом скилле
SQL Import Tools
When a user wants to import data from a SQL database (MySQL, Postgres, MSSQL, etc.) into Improvado, use these tools.
Routing rules:
- If the user mentions MySQL →
datasourceName: "mysql" - If the user mentions Postgres / PostgreSQL →
datasourceName: "postgres" - If the user mentions MSSQL / SQL Server →
datasourceName: "mssql" - If unclear which database engine, ask the user before proceeding
All 4 tools below require a data_source_name matching one of the above (same string as datasourceName in getConnectionsTool).
Available Tools
- getConnectionsTool (existing) — Get the connection_id:
getConnectionsTool({ datasourceName: "mysql" })- If no connection exists, tell the user they need to create one via the platform UI first (credentials required)
- listSqlReportTypesTool — List tables available for import on the connection
- Paginated (default page_size: 20, total count in
count) - Each result has
title,sql_name,source.{database_name, table_name}, andadditional_params additional_paramsexposes thelookback_windowoptions (e.g.live/max/default) andhistorical_data_depth_limitbounds — use these when building scheduling
- Paginated (default page_size: 20, total count in
- discoverSqlFieldsTool — Discover field definitions for a table (or custom SQL query)
- Pass
data_source_name,connection_id, andsource: { table_name, database_name }ORsource: { custom_sql_query } - Returns fields with
suggested_typeandpossible_types(often["number", "string"]or["date - %Y-%m-%d", "string"]) — agent/user picks the final type
- Pass
- generateSqlDataSampleTool — Preview sample rows with the confirmed field types
- Use after the user confirms or adjusts the discovered schema
- Pass
connection_id,source,fields,sync_historical_data(YYYY-MM-DD)
- createSqlExtractTool — Create the extract with scheduling
- Final step — persists config and schedules recurring pulls
report_typeformat:"<database_name> <table_name>"(space-separated, NOTsql_namewith underscore). Example:"testdb 500k_strok".write_policydefault:{ method: "upsert", scope: "by_date_range" }— fits tables with a date columnschedulingdefault: daily at 00:00 UTC withlookback_window.name: "default"
SQL Import Workflow (step by step — follow in order)
Identify engine. Confirm which SQL engine (mysql / postgres / mssql). Ask if ambiguous.
Get connection.
getConnectionsTool({ datasourceName: "<engine>" })→connection_id. If no connection exists, stop and tell the user to create it in the platform UI.List tables.
listSqlReportTypesTool({ data_source_name, connection_id }).- If there are many pages (
count>page_size), show the first page and ask which table they want, or page through on request. - Present as a short list:
database.table→title.
- If there are many pages (
Custom query vs table. If the user wants a custom SQL query instead of a full table, collect the SQL string and use
source: { custom_sql_query }in steps 5+. Otherwise usesource: { database_name, table_name }.Discover fields.
discoverSqlFieldsTool({ data_source_name, connection_id, source })→ list of{ name, suggested_type, possible_types, is_dimension }.Pick types. For each field, default to
suggested_type. Only surface a type choice to the user whenpossible_types.length > 1AND the suggestion is non-obvious (e.g. a numeric-looking ID that could bestring). Don't spam the user with every column.Sample.
generateSqlDataSampleTool({ connection_id, source, fields, sync_historical_data })→ preview rows. Ask the user forsync_historical_data(start date for initial backfill) if they haven't specified it.Confirm schema. Present the schema and proposed config as a table, then ask for confirmation:
| Field Name | Type | Is Key | Sample Values | |----------------|--------|--------|------------------------| | date_column | Date | Yes | 2024-01-15, 2024-01-16 | | id | Number | No | 1, 2, 3 | | string_column | Text | Yes | foo, bar, baz | Data Table Name: 500k_strok Scheduling: Daily at 00:00 UTC Historical Sync From: 2026-03-25 Write Policy: Upsert (by date range) Lookback: default (7 days)Create. After confirmation,
createSqlExtractToolwith:titleanddata_table_title— propose a name based ondatabase_name.table_name(snake_case), ask user to confirm if unclearreport_type—"<database_name> <table_name>"(space-separated, lowercase for database)fields— withis_selected: trueby default for all; setfalseif the user wants to drop a columnscheduling— default daily UTC; ask if they want a different interval/time/timezonesync_historical_data— from step 7write_policy— default `{ method: "upsert"
Установить sql-import в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sql-import?
SQL import workflow - connect to MySQL/Postgres/MSSQL, pick a table or write a custom query, discover schema, preview rows, and create a scheduled extract
Как установить скилл sql-import?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sql-import запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic