agentleFS
garavitgabrielgaravitgabriel/clay-backend-plugin/skills/import-data/SKILL.md

import-data

Skill1 starsChanged 4 months agoMITView on GitHub

Import Clay data into the backend plugin. Use when the user wants to import CSV exports, paste JSON records, or load data from Clay tables into the plugin for analysis.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask the user what they have:

    line 13
  2. Distinctive:

    Ask for the file path (or have them drag the file into the chat)

    line 20
  3. Distinctive:

    Read the first few lines to understand the columns

    line 21
  4. Very specific:

    Call the ingest_csv tool with the mapping

    line 28
  5. Very specific:

    Ensure each record has at minimum: record_id, analysis_type, and data

    line 34
  6. Very specific:

    Call the ingest_records tool

    line 36
  7. Very specific:

    Call list_analysis_types to show what's stored

    line 42
  8. Very specific:

    Call get_analytics for a summary

    line 43
  9. Very specific:

    If the user has multiple Clay tables (e.g., call analyses AND email analyses), import each with a different analysis_type value

    line 51
  10. Very specific:

    If records share an entity (like a deal or company), use entity_id so cross-record joins work later

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Import Clay Data

Help the user import their Clay data into the Clay Backend Plugin for cross-record analysis.

Step 1: Determine the data format

Ask the user what they have:

  • CSV file — a Clay table export (most common)
  • JSON records — copied from Clay's AI analysis output or API
  • Pasted data — raw text they want you to structure

Step 2: For CSV imports

  1. Ask for the file path (or have them drag the file into the chat)
  2. Read the first few lines to understand the columns
  3. Ask the user:
    • Which column contains the unique row ID (e.g., "Row ID", "Record ID")
    • What analysis type name to use (e.g., "call_analysis", "lead_scoring")
    • Which columns contain the analysis data to store
    • Optionally: which column is the entity ID (for cross-record joins, e.g., "Deal ID", "Company Domain")
    • Optionally: which column is the entity name (human-readable label)
  4. Call the ingest_csv tool with the mapping
  5. Report results

Step 3: For JSON imports

  1. Have the user paste their JSON or point to a file
  2. Ensure each record has at minimum: record_id, analysis_type, and data
  3. Help structure the data if needed — the data field is flexible JSON
  4. Call the ingest_records tool
  5. Report results

Step 4: Confirm and suggest next steps

After import, always:

  1. Call list_analysis_types to show what's stored
  2. Call get_analytics for a summary
  3. Suggest what they can do next:
    • "Ask me to find patterns across your [analysis_type] records"
    • "Search for specific topics: 'show me records about budget objections'"
    • "Compare records by entity: 'how do analyses differ for deal X vs deal Y'"

Tips

  • If the user has multiple Clay tables (e.g., call analyses AND email analyses), import each with a different analysis_type value
  • If records share an entity (like a deal or company), use entity_id so cross-record joins work later
  • The embed_fields parameter controls which data fields get embedded for semantic search. If omitted, all fields are embedded.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.