flat-data-file-import
БесплатноБез исполняемых скриптовНе проверенFile import workflow - upload CSV/Excel/TSV files, set up email-based, managed SFTP, or managed S3 file import into Improvado
от tekliner★ 17 звёзд на GitHubОб этом скилле
File Import Tools (Flat Data)
When a user wants to import a file (CSV, Excel, TSV, etc.) into Improvado, use these tools.
Routing rules:
- If the user mentions SFTP → use the Managed SFTP Workflow directly (datasourceName: "managed_sftp")
- If the user mentions S3 or AWS S3 → use the Managed S3 Workflow directly (datasourceName: "managed_s3")
- If the user mentions email import → use the Email Import Workflow (datasourceName: "email_file_import")
- If the user uploads a file or says file import → use the File Import Workflow (datasourceName: "file_import")
- If unclear, ask which method they prefer: file upload, email, SFTP, or S3
Available Tools
- getConnectionsTool (existing) - Get the connection_id:
getConnectionsTool({ datasourceName: "file_import" }) - uploadFlatDataFileTool - Upload the file to DTS managed storage
- ALWAYS pass the attachment URL as fileUrl — do NOT base64-encode file content
- Handles multipart upload and antivirus scanning automatically
- Returns file_path (used in all subsequent calls), file_name, and file_size
- discoverFileFieldsTool - Discover field definitions and data sample from the uploaded file
- Pass the connection_id from step 1 and file_path from step 2
- Returns inferred field names, types, and data_sample (first rows of data)
- generateFlatDataSampleTool - Generate a data preview with confirmed field definitions
- Use after the user confirms or adjusts the discovered schema
- createFlatDataExtractTool - Create the extract with the final configuration
- Creates a persistent extract that stores the imported data
- data_table_title: Propose a name based on the file name (e.g. "report.csv" → "report_csv_data"). Ask the user to confirm.
- uploadNewFileToExtractTool - Upload a new file to an existing extract/data table
- Use when the user wants to add/replace data in an existing data table
- Requires: extract_id + file details from uploadFlatDataFileTool
- Backend automatically triggers data processing
- previewEmailImportAddressTool - Preview the email address for email-based file import
- Shows what email address will be generated for a given data_table_title
- The actual email is activated after the extract is created
- createConnectionTool (existing) - Create a connection if none exists
- For managed SFTP:
createConnectionTool({ data_source_name: "managed_sftp", auth_id: "login_password", params: { connection_name: "<name>" } }) - For managed S3:
createConnectionTool({ data_source_name: "managed_s3", auth_id: "login_password", params: { connection_name: "<name>" } })
- For managed SFTP:
- getManagedConnectionCredentialsTool - Fetch credentials for a managed SFTP or S3 connection
- Returns: host, port, login, password
- Use after getting/creating a managed_sftp or managed_s3 connection to show credentials to the user
File Import Workflow
Call
getConnectionsTool({ datasourceName: "file_import" })to get the connection_idCall
uploadFlatDataFileToolwith fileUrl (from chat attachment) → get filepathCall
discoverFileFieldsToolwith connection_id + filepath → get fields + data_sampleAnalyze the data_sample and discovered fields:
- Detect the file format and encoding
- Identify if any top rows should be skipped (header offset)
- For each field, determine: Type (Text, Number, DateKey), Is key (True/False - Fields used to merge new & existing data), and any skip rules
Call
generateFlatDataSampleToolwith the fields for a data previewImportant: Present the proposed schema to the user as a table with columns: Field Name, Type, Is key (dimension or property/metric), Sample Values. Propose a Data Table name based on the file name and Write Policy, then ask for confirmation.
Example:
| Field Name | Type | Is Key | Sample Values | |----------------|--------|--------|------------------------| | date | Date | Yes | 2024-01-15, 2024-01-16 | | campaign_name | Text | Yes | Brand Campaign, Promo | | impressions | Number | No | 15234, 8921 | | spend | Number | No | 150.50, 89.20 | Data Table Name: facebook_ads_performance Write Policy: Upsert (whole data)After the user confirms (or edits), call
createFlatDataExtractToolwith the confirmed configurationAfter extract creation succeeds, provide the user with a link to the created extract:
| Resource | Link | |----------|-----------------------------------------------------------------------------------------------| | Extract | {platform_host}/info_connector/overview/{connection_id}/{extract_id}?workspace={workspace_id} |Example: `https://report.improvado.io/info_connector/overview/19417/1785798?workspace=
Установить flat-data-file-import в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл flat-data-file-import?
File import workflow - upload CSV/Excel/TSV files, set up email-based, managed SFTP, or managed S3 file import into Improvado
Как установить скилл flat-data-file-import?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flat-data-file-import запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic