Connect Data

VerifiedSafe

Guided wizard to connect a new dataset. Walks users through selecting connection type, configuring credentials, validating connection, and profiling schema.

Sby Skills Guide Bot
Data & AIBeginner
2/28/2026
Claude Code
#data-connection#dataset-setup#schema-profiling#wizard#knowledge-base

Recommended for

Automated summary

A guided wizard that connects a new dataset (CSV, DuckDB, MotherDuck, PostgreSQL, BigQuery, or Snowflake), tests the connection, profiles the schema, and scaffolds the dataset's knowledge directory.

Strengths

  • Walks through connection type, configuration, testing, and profiling step by step with no implicit stages
  • Never asks for or stores plaintext passwords and steers users toward environment variables
  • Always generates schema.md and the full .knowledge/datasets/{id}/ tree, even when profiling fails
  • Handles common edge cases: missing directory, alternative file formats, name collisions, schemas over 100 tables

Limitations

  • Assumes the Python helpers (ConnectionManager, schema_to_markdown) and connection templates already exist in the repo
  • MotherDuck relies on a pre-configured MCP server and token outside the skill's control
  • Deep data profiling is only offered as an option, not run automatically
  • Restricted to the six listed source types, with no generic connector
When to use it

Use it when you need to hook up a new database or folder of files and get an immediately usable schema for analysis.

When not to use it

Skip it when your data source is not one of the six supported types or the helper infrastructure is not in place.

Security analysis

Safe
Quality score88/100

The skill guides users through connecting data sources and explicitly instructs against storing credentials in plain text, recommending environment variables instead. It does not include destructive commands, exfiltration, or obfuscated payloads. Database connections are for legitimate validation and profiling purposes.

No concerns found

How this analysis is made

Examples

Connect a local Postgres database
/connect-data type=postgres — connect my local Postgres database and profile its schema
Add a CSV folder
I have a bunch of CSV files in ./data/exports, can you add them as a new dataset?
Snowflake warehouse setup
/connect-data — I want to add our Snowflake warehouse as a dataset so I can query it

Skill: Connect Data

Purpose

Guided wizard to connect a new dataset. Walks the user through selecting a connection type, configuring credentials, validating the connection, profiling the schema, and setting up the knowledge brain.

When to Use

  • User says /connect-data or "connect my database" or "add a new dataset"
  • First-run welcome suggests connecting data
  • After /switch-dataset when the target dataset doesn't exist yet

Invocation

/connect-data — start the connection wizard /connect-data type=postgres — skip type selection

Instructions

Step 1: Choose Connection Type

Present options:

  1. CSV files — "I have CSV files in a local directory"
  2. DuckDB — "I have a local DuckDB database file"
  3. MotherDuck — "I have a MotherDuck cloud database"
  4. PostgreSQL — "I have a PostgreSQL database"
  5. BigQuery — "I have a Google BigQuery dataset"
  6. Snowflake — "I have a Snowflake warehouse"

Step 2: Collect Connection Details

For CSV:

  • Ask: "What's the path to your CSV directory? (relative to this repo)"
  • Verify the directory exists and contains .csv files
  • List found files and ask to confirm

For DuckDB:

  • Ask: "Path to your .duckdb file?"
  • Verify file exists
  • Test connection with SELECT 1

For MotherDuck:

  • Ask: "Database name and schema?"
  • Note: "MotherDuck connects via MCP. Make sure your token is configured."

For PostgreSQL / BigQuery / Snowflake:

  • Copy the appropriate template from connection_templates/
  • Ask user to fill in required fields
  • IMPORTANT: Never ask for or store passwords directly. Guide the user to use environment variables (e.g., $PG_PASSWORD).

Step 3: Create Dataset Brain

  1. Generate a dataset_id from the display name (lowercase, hyphens)
  2. Create .knowledge/datasets/{id}/ directory
  3. Write manifest.yaml from the connection template + user inputs
  4. Create empty quirks.md with section headers
  5. Create empty metrics/index.yaml

Step 4: Test Connection

Use ConnectionManager from helpers/connection_manager.py:

  1. Instantiate with the new config
  2. Call test_connection()
  3. If fails: show error, offer to retry or edit config
  4. If passes: proceed

Step 5: Profile Schema

  1. Call list_tables() to enumerate tables
  2. For each table: get column names and types via get_table_schema()
  3. Generate schema.md using schema_to_markdown() from helpers/data_helpers.py
  4. Write to .knowledge/datasets/{id}/schema.md
  5. Offer to run full data profiling: "Want me to deep-profile this dataset?"

Step 6: Set Active

  1. Update .knowledge/active.yaml to point to the new dataset
  2. Confirm: "Connected! {display_name} is now your active dataset."
  3. Show: table count, estimated row count, date range (if detected)
  4. Suggest next steps: /explore to browse, /metrics to define metrics, or just ask a question

Rules

  1. Never store credentials in plain text in manifest files
  2. Always test the connection before declaring success
  3. Always generate a schema.md — it's required for analysis
  4. Create the full .knowledge/datasets/{id}/ tree even if profiling fails
  5. If the user already has this dataset, ask before overwriting

Edge Cases

  • Directory doesn't exist: Offer to create it
  • No CSV files found: Check for other formats (.parquet, .json)
  • Connection fails repeatedly: Suggest checking credentials, firewall, VPN
  • Schema too large (>100 tables): Profile only, skip per-table details
  • Dataset name collision: Append a number (e.g., "mydata-2")

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/connect-data-mm5t8c3z/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/connect-data-mm5t8c3z' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/connect-data-mm5t8c3z/download' --output '.skill-downloads/connect-data-mm5t8c3z/SKILL.md.part' && mv '.skill-downloads/connect-data-mm5t8c3z/SKILL.md.part' '.skill-downloads/connect-data-mm5t8c3z/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/connect-data-mm5t8c3z/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills