# Adding data sources

> Adding data sources is an open-source agent skill for analytics and data. Registers, configures and runs data source ingestion in a tycoon project. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Database-Tycoon/tycoon-cli/tree/main/plugins/users/skills/adding-data-sources
- **Repository:** https://github.com/database-tycoon/tycoon-cli
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** adding-data-sources
- **Collection:** https://github.com/Database-Tycoon/tycoon-cli
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-12-03

## About

This skill teaches an agent to add data sources to a tycoon project using the tycoon CLI, which registers each source in tycoon.yml and runs it through dlt. Three native source types are covered: REST APIs, SQL databases and CSV or Parquet files. Other sources such as GitHub, Stripe, Slack, Notion, Google Sheets and HubSpot come from a built-in catalog and need a one-time install before they run.

The skill documents the main commands for listing the catalog, adding, listing, running, running all and removing sources, along with record caps per resource. It includes a scripted, non-interactive REST API example that ingests data, scaffolds dbt staging models and runs a transform. It also explains where ingested data lands in a per-project DuckDB file with one schema per source.

It expects the tycoon CLI installed in a project that has a tycoon.yml file. Credentials are stored as environment variable references, so the variables must be exported before a run. The guide also flags common pitfalls, such as error messages that suggest a catalog install subcommand that does not exist.

## When your agent uses it

> Use when adding, configuring, or running a data source in a tycoon project: REST APIs, SQL databases, files (CSV/Parquet), or catalog sources like GitHub, Stripe, Slack, Notion, Google Sheets; when an ingestion run must be scripted with no prompts (CI); when credentials or record caps are involved; or when a source run fails with "not installed" or missing-config errors.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Database-Tycoon/tycoon-cli/tree/HEAD/plugins/users/skills/adding-data-sources)
- [License: MIT](https://github.com/Database-Tycoon/tycoon-cli/tree/HEAD/plugins/users/skills/adding-data-sources)

## Features

- **Native source types:** Covers adding REST API, SQL database and file-based sources with their required flags.
- **Catalog source installs:** Explains how popular services like GitHub and Stripe are installed once and where their files are kept.
- **CI-safe scripting:** Shows how to add and run sources without prompts using the no-prompt flags.
- **Credential handling:** Describes how secrets are referenced through environment variables and how to diagnose failed authentication.
- **Data landing layout:** Explains the per-project DuckDB file and the per-source schema naming convention.
- **Post-run scaffolding:** Covers automatic dbt staging model generation after a successful run and how to opt out.

## Good for

- Connect a public REST API and load selected endpoints into a local warehouse
- Script a nightly ingestion of a SQL database in CI without prompts
- Load a folder of CSV or Parquet files into a tycoon project
- Add a GitHub or Stripe source and run it with a capped record count
- Troubleshoot a source run that fails with a missing install or config error

## Install

### Claude Code

This skill ships in the `tycoon` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Database-Tycoon/tycoon-cli
/plugin install tycoon@tycoon-skills
```

Or copy only this skill to `~/.claude/skills/adding-data-sources`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/adding-data-sources &&
cp -R "$tmp/plugins/users/skills/adding-data-sources" ~/.claude/skills/adding-data-sources &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/adding-data-sources` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/adding-data-sources` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/adding-data-sources &&
cp -R "$tmp/plugins/users/skills/adding-data-sources" ~/.agents/skills/adding-data-sources &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/adding-data-sources` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/adding-data-sources` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/adding-data-sources &&
cp -R "$tmp/plugins/users/skills/adding-data-sources" ~/.cursor/skills/adding-data-sources &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/adding-data-sources` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Database-Tycoon/tycoon-cli.git --path plugins/users/skills/adding-data-sources
```

Or copy the folder to `~/.gemini/skills/adding-data-sources` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/adding-data-sources`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/adding-data-sources &&
cp -R "$tmp/plugins/users/skills/adding-data-sources" ~/.copilot/skills/adding-data-sources &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/adding-data-sources` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git
```

Then copy `tycoon-cli/plugins/users/skills/adding-data-sources` into your agent's skills folder as `adding-data-sources`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Adding data sources can be used?

The tycoon CLI installed (pip install database-tycoon) inside a project that has a tycoon.yml file.

### Where is the ingested data stored?

In one data/raw.duckdb file per project, with one DuckDB schema per source named raw_ followed by the source name, with hyphens turned into underscores.

### How are API keys handled for catalog sources?

Credential fields default to environment variable references stored in tycoon.yml, so the secret is not written to the file. The variable must be exported before running.

### Can sources be added without interactive prompts?

Yes. The source type is passed positionally with the required key flag, and --no-prompt skips questions and installs catalog sources automatically.

### Does running a source change the dbt project?

After a successful run, dbt staging models are scaffolded for the source if a dbt project exists and nothing references it yet. This can be turned off per call or in tycoon.yml.

### How do I install Adding data sources in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/adding-data-sources to use it in all your projects, or to .claude/skills/adding-data-sources in one project. Or install the tycoon plugin, which includes it: /plugin marketplace add Database-Tycoon/tycoon-cli, then /plugin install tycoon@tycoon-skills.

### Does Adding data sources run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Adding data sources?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Adding data sources?

The closest alternatives to Adding data sources are Operating pipelines, Building models and dashboards, Dbt dag modeling, Data pipeline work and Timescaledb hyperfunctions.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Operating pipelines](https://ai-powered.com/skills/operating-pipelines): Operating pipelines is an open-source agent skill for analytics and data.
- [Building models and dashboards](https://ai-powered.com/skills/building-models-and-dashboards): Building models and dashboards is an open-source agent skill for analytics and data.
- [Dbt dag modeling](https://ai-powered.com/skills/dbt-dag-modeling): Dbt dag modeling is an open-source agent skill for analytics and data.
- [Data pipeline work](https://ai-powered.com/skills/data-pipeline-work): Data pipeline work is an open-source agent skill for analytics and data.
- [Timescaledb hyperfunctions](https://ai-powered.com/skills/timescaledb-hyperfunctions): Timescaledb hyperfunctions is an open-source agent skill for analytics and data.
- [Data analysis](https://ai-powered.com/skills/data-analysis-superhero-tech): Data analysis is an open-source agent skill for analytics and data.
- [Data scientist](https://ai-powered.com/skills/data-scientist): Data scientist is an open-source agent skill for analytics and data.
- [Add resource command](https://ai-powered.com/skills/add-resource-command): Add resource command is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/adding-data-sources
