agentleFS
ai-analyst-labai-analyst-lab/ai-analyst/.claude/skills/datasets/SKILL.md

datasets

Skill304 starsChanged 2 months agoMITView on GitHub

List all connected datasets with their status, table counts, and last analysis date. Use this skill whenever the user invokes `/datasets`, or asks questions like "what datasets do I have?", "show me my data sources", "list datasets", "which datasets are connected?", "what data is available?", "show all datasets", "what datasets can I analyze?", "view my datasets", "what data sources are set up?", or any request to see what datasets exist in the system. Also trigger when users mention "switch dataset", "change dataset", "use a different dataset", or "what's my active dataset?" since seeing the list helps them choose. This is a foundational command that should be offered proactively whenever users seem unsure about what data they're working with or when they need to understand what datasets are available before starting analysis.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read data_sources.yaml to get the official list of registered sources

    line 21
  2. Distinctive:

    If the file exists and has entries, use this as your source of truth

    line 22
  3. Very specific:

    If data_sources.yaml is empty or missing, scan .knowledge/datasets/ directory

    line 25
  4. Very specific:

    Read each dataset's manifest.yaml to get connection details and metadata

    line 27
  5. Very specific:

    Use whichever path yields results.

    line 29
  6. Very specific:

    Read .knowledge/active.yaml to determine which dataset is currently active.

    line 33
  7. Distinctive:

    If a manifest is missing or incomplete, show what you can determine from the directory structure and note that the dataset needs profiling.

    line 46
  8. Distinctive:

    Security: Never display connection credentials (tokens, passwords, API keys) — show only connection type and database/schema names

    line 73
  9. Very specific:

    Discovery: If data_sources.yaml is empty but .knowledge/datasets/ has content, scan the directory and show what's available — this is a …

    line 74
  10. Distinctive:

    Incomplete manifests: If a dataset directory exists but has no manifest or an incomplete manifest, include it in the list with status "Not …

    line 75
  11. Distinctive:

    Duplicate detection: If you notice two datasets pointing to the same underlying data (same path or same database), mention this in a Notes …

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Skill: Datasets

Purpose

List all connected datasets with their status, table counts, and last analysis date.

When to Use

Invoke as /datasets when the user wants to see what datasets are available.

Instructions

Step 1: Discover available datasets

The system supports two discovery paths:

Path A: Registry-first (preferred)

  • Read data_sources.yaml to get the official list of registered sources
  • If the file exists and has entries, use this as your source of truth

Path B: Brain-first (fallback when registry is empty)

  • If data_sources.yaml is empty or missing, scan .knowledge/datasets/ directory
  • Each subdirectory represents a dataset (directory name = dataset ID)
  • Read each dataset's manifest.yaml to get connection details and metadata

Use whichever path yields results. Many installations have datasets in .knowledge/datasets/ but an empty data_sources.yaml registry — this is normal during initial setup or when datasets are added manually.

Step 2: Read the active pointer

Read .knowledge/active.yaml to determine which dataset is currently active.

Step 3: Enrich with manifest data

For each discovered dataset (whether from registry or directory scan), read .knowledge/datasets/{name}/manifest.yaml to get:

  • display_name — human-readable name
  • connection.type — connection type (csv, duckdb, postgres, snowflake, bigquery, databricks, redshift, mssql, mysql)
  • connection.database or other connection-specific fields
  • summary.table_count — number of tables
  • summary.date_range — temporal coverage (if available)
  • summary.row_counts — per-table row counts (if profiled)
  • summary.last_updated — when manifest was last written

If a manifest is missing or incomplete, show what you can determine from the directory structure and note that the dataset needs profiling.

Step 4: Display the list

Connected Datasets:

  * your_dataset (active)
    Your Dataset Name — {table_count} tables, {date_range}
    Connection: {type} ({database})
    Analyses: 0

  - {other_dataset}
    {display_name} — {table_count} tables, {date_range}
    Connection: {type} ({details})
    Analyses: {count}

Commands:
  /switch-dataset {name}  — switch active dataset
  /connect-data           — connect a new dataset
  /data                   — inspect active dataset schema

Mark the active dataset with *. Mark others with -.

Important Notes

  1. Security: Never display connection credentials (tokens, passwords, API keys) — show only connection type and database/schema names
  2. Discovery: If data_sources.yaml is empty but .knowledge/datasets/ has content, scan the directory and show what's available — this is a normal state during development or manual dataset setup
  3. Incomplete manifests: If a dataset directory exists but has no manifest or an incomplete manifest, include it in the list with status "Not yet profiled" and show whatever metadata is available
  4. Duplicate detection: If you notice two datasets pointing to the same underlying data (same path or same database), mention this in a Notes section to help users clean up

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.