Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. getConnectionsTool (existing) - Get the connection_id: getConnectionsTool({ datasourceName: "file_import" })
  2. 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
  3. 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)
  4. generateFlatDataSampleTool - Generate a data preview with confirmed field definitions
    • Use after the user confirms or adjusts the discovered schema
  5. 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.
  6. 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
  7. 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
  8. 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>" } })
  9. 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

  1. Call getConnectionsTool({ datasourceName: "file_import" }) to get the connection_id

  2. Call uploadFlatDataFileTool with fileUrl (from chat attachment) → get filepath

  3. Call discoverFileFieldsTool with connection_id + filepath → get fields + data_sample

  4. Analyze 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
  5. Call generateFlatDataSampleTool with the fields for a data preview

  6. Important: 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)
    
  7. After the user confirms (or edits), call createFlatDataExtractTool with the confirmed configuration

  8. After 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=

Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить flat-data-file-import с