discover-source

discover-source is a skill for Claude Code, Codex from EliBarak12/Elliot. It costs 46 tokens per session (3,076 once invoked), scanned A, original, MIT.

A source-discovery workflow registers a REST API, PostgreSQL or MySQL database, or local CSV, JSON, or JSONL file with Elliot. Elliot is a platform that makes data sources available for building tools for AI agents.

In plain words
What is it for?
Use it as the first step when building a new Elliot connector. It helps set the product context, identify the source type, import API descriptions when available, and discover the source schema.
Why use it?
It turns an unfamiliar data source into a known set of tables or endpoints that later connector work can use. It also ensures the source type and product context are identified first.

Skill for Claude CodeCodex

Part of the elliot plugin — 10 skills, 2 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/elibarak12/elliot/discover-source
Any agent
npx skills add EliBarak12/Elliot --skill discover-source
Clone the repo
git clone --depth 1 https://github.com/EliBarak12/Elliot

Made for: Claude Code, Codex.

Or install elliot, the plugin that ships this one along with the rest of its 10 skills, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for discover-source

README.md
[![agentmods](https://agentmods.dev/badge/skills/elibarak12/elliot/discover-source.svg)](https://agentmods.dev/skills/elibarak12/elliot/discover-source)
Your own site
<a href="https://agentmods.dev/skills/elibarak12/elliot/discover-source"><img src="https://agentmods.dev/badge/skills/elibarak12/elliot/discover-source.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,076 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.03076
Opus 5 $0.00023 $0.01538
Sonnet 5 $0.00009 $0.00615
Haiku 4.5 $0.00005 $0.00308

Measured 5d ago against content hash 760fe79bb3a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

discover-source scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/discover-source/SKILL.md · 252 lines

How it starts

The opening of the file, as written. The whole thing — 252 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Discover Source Workflow

You are identifying the user's data source and registering it with Elliot. The goal is to land at a state where elliot_discover_source has succeeded and the next skill (build-connector) can draft tools against the discovered schema.

Step 0 — Set context if not already set

If elliot_get_session_state shows no product_context, call:

  • elliot_set_context with name (slug-style, e.g. acme-crm) and a one-sentence description.

If the user hasn't told you these yet, ask in one combined question. Don't ask two separate questions.

Step 1 — Identify the source type

Ask the user (one question, listing the options):

"What kind of source is this? REST API, Postgres, MySQL, or a file (CSV / JSON / JSONL)?"

Map their answer to a source_type:

User says source_type arg
"REST", "API", URL ending in /api rest (aliases: api, http)
"Postgres", "PG", postgres:// postgres (alias: db, postgresql)
"MySQL", mysql:// mysql
"CSV", "JSON", "JSONL", a .csv / .json file file (aliases: csv, json)

If the user has an OpenAPI spec or Postman collection, this is the wrong skill — switch to onboard-product and call elliot_import_api_collection instead. elliot_discover_source does not ingest OpenAPI/Postman.

If the user wants to wrap a SQLite database, Elliot does not support it as a source today; ask them to export the relevant tables to CSV or JSON first.

Step 2 — Collect the right config fields for that source type

elliot_discover_source takes exactly three arguments:

elliot_discover_source(source_type=<one of above>, config=<dict>, name=<table name>)

Everything that varies by source type goes inside the config dict. Ask in one batched message — never field-by-field, it wastes turns.

REST

{
  "url": "https://api.acme.com/v1/customers",
  "method": "GET",
  "auth": {
    "type": "bearer",
    "secret_key": "{{ env:ACME_API_TOKEN }}"
  },
  "data_path": "data",
  "pagination": {"strategy": "offset", "page_size": 50, "max_pages": 10}
}

Read the full file on GitHub · 252 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 252 lines · 46 tokens per session scan A 760fe79bb3a6

Subscribe to this mod's changes

discover-source is a skill published in the GitHub repository EliBarak12/Elliot (11 stars, last pushed 5d ago), licensed MIT. It adds 46 tokens to every session and 3,076 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.