# Reading project state

> Reading project state is an open-source agent skill for developer tools. Lets an agent read tycoon project pipeline status, run history and table freshness. 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/reading-project-state
- **Repository:** https://github.com/database-tycoon/tycoon-cli
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** reading-project-state
- **Collection:** https://github.com/Database-Tycoon/tycoon-cli
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill teaches the agent which tycoon CLI commands report on a project's pipelines: source and layer status with freshness, recent dlt ingestion and dbt run history, single run details with per-table row counts, and table and file sizes. It separates the human-readable views from the programmatic route, since no tycoon command offers JSON output. Scripts and CI jobs are directed to query the observability DuckDB file at .tycoon/metadata.duckdb through tycoon data query, and the skill lists the metadata tables and shows an example join across run and row-count data.

The skill also covers reaching warehouse and raw schemas through the same query command, including per-source schemas. It explains that local DuckDB files open read-only, while MotherDuck connections are read-write and should be treated as able to change data. It also notes that warehouse queries route through Quack while tycoon start is running. For dashboards, it describes scaffolding dbt staging models over the metadata database, and it warns that clean --all keeps run history unless the metadata flag is passed.

It expects a project initialized with tycoon.yml and the tycoon CLI installed from pip as database-tycoon.

## When your agent uses it

> Use when checking what state a tycoon project is in (pipeline/source status, recent ingestion or dbt run history, row counts, table freshness) and especially when a script or CI job needs machine-readable output (no tycoon command has a --json flag).

## 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/reading-project-state)
- [License: MIT](https://github.com/Database-Tycoon/tycoon-cli/tree/HEAD/plugins/users/skills/reading-project-state)

## Features

- **Pipeline status overview:** Shows layered source, staging, intermediate and marts status with freshness.
- **Run history inspection:** Lists recent dlt and dbt runs and details of a single run with row counts.
- **Machine-readable metadata queries:** Explains querying the observability DuckDB tables for scripts and CI since no JSON flag exists.
- **Warehouse and raw queries:** Runs SQL against warehouse, raw and per-source schemas through tycoon data query.
- **Dbt observability models:** Scaffolds dbt staging models over the metadata database for pipeline health dashboards.
- **Cleanup safety notes:** Notes that clean --all preserves run history unless the metadata option is given.

## Good for

- Check whether a tycoon project's sources and tables are fresh
- Review the last dlt or dbt runs and their error messages
- Export recent run status and row counts from a CI job
- Count rows in a warehouse mart from the command line
- Build dashboards showing pipeline health from run metadata

## 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/reading-project-state`:

```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/reading-project-state &&
cp -R "$tmp/plugins/users/skills/reading-project-state" ~/.claude/skills/reading-project-state &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/reading-project-state` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/reading-project-state` 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/reading-project-state &&
cp -R "$tmp/plugins/users/skills/reading-project-state" ~/.agents/skills/reading-project-state &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/reading-project-state` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/reading-project-state` 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/reading-project-state &&
cp -R "$tmp/plugins/users/skills/reading-project-state" ~/.cursor/skills/reading-project-state &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/reading-project-state` 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/reading-project-state
```

Or copy the folder to `~/.gemini/skills/reading-project-state` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/reading-project-state`:

```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/reading-project-state &&
cp -R "$tmp/plugins/users/skills/reading-project-state" ~/.copilot/skills/reading-project-state &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/reading-project-state` 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/reading-project-state` into your agent's skills folder as `reading-project-state`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It requires the tycoon CLI installed with pip as database-tycoon and a project containing a tycoon.yml file.

### Does any tycoon command output JSON?

No. The skill states there is no --json flag, so scripts should query the metadata DuckDB file with tycoon data query.

### Can querying a MotherDuck database change data?

The skill says MotherDuck connections are read-write and the token scope decides what can change, so such queries should be treated as able to write.

### Does cleaning the project delete run history?

By default tycoon data clean --all keeps .tycoon/metadata.duckdb; run history is removed only when the metadata flag is also passed.

### How do I install Reading project state in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/reading-project-state to use it in all your projects, or to .claude/skills/reading-project-state 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 Reading project state 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 Reading project state?

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 Reading project state?

The closest alternatives to Reading project state are Diagnosing projects, Operating pipelines, Project status report, Pipelines build summary and Tdpilot brain explorer.

## Where this comes from

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

## Alternatives

- [Diagnosing projects](https://ai-powered.com/skills/diagnosing-projects): Diagnosing projects is an open-source agent skill for developer tools.
- [Operating pipelines](https://ai-powered.com/skills/operating-pipelines): Operating pipelines is an open-source agent skill for analytics and data.
- [Project status report](https://ai-powered.com/skills/project-status-report): Project status report is an open-source agent skill for developer tools.
- [Pipelines build summary](https://ai-powered.com/skills/pipelines-build-summary): Pipelines build summary is an open-source agent skill for developer tools.
- [Tdpilot brain explorer](https://ai-powered.com/skills/tdpilot-brain-explorer): Tdpilot brain explorer is an open-source agent skill for developer tools.
- [Spec driven develop](https://ai-powered.com/skills/spec-driven-develop): Spec driven develop is an open-source agent skill for developer tools.
- [Testing CLI changes](https://ai-powered.com/skills/testing-cli-changes): Testing CLI changes is an open-source agent skill for developer tools.
- [TDD](https://ai-powered.com/skills/tdd): TDD is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/reading-project-state
