Skip to content
Skill

Diagnosing projects

Diagnoses broken tycoon projects: failing commands, dbt profile and DuckDB lock errors

Diagnosing projects is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
8
Last commit
License
MIT
Listing updated

Similar skills

About Diagnosing projects

This skill guides an agent through troubleshooting a tycoon project when commands fail or behave inconsistently. It starts from the tycoon doctor report, which covers the Python interpreter, tycoon.yml, dbt and Rill projects, warehouse credentials, the dbt profile, staging coverage and the observability database.

The skill also explains the non-obvious failure modes: that tycoon doctor always exits 0 and so is unsuitable as a CI gate, while profiles doctor and semantics doctor exit 1 on failure. It describes how data run-all and data transform run resolve dbt profiles differently, the supported Python range, the schema_version upgrade path, DuckDB file-lock conflicts while the local server runs, and project-root discovery when tycoon.yml is missing.

It expects the tycoon CLI installed in a project that has a tycoon.yml file, and it works with the dbt and DuckDB setup that tycoon uses.

When your agent uses it

Use when a tycoon project misbehaves: commands fail, dbt can't find a profile, `data run-all` fails where `data transform run` works, schema_version warnings or "newer than this tycoon" errors, DuckDB "Unique file handle conflict" or file-lock errors, wrong Python version, "No tycoon.yml found"; or when wiring tycoon health checks into CI.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (3 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

Or copy only this skill to ~/.claude/skills/diagnosing-projects:

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

For one project only, put the folder in .claude/skills/diagnosing-projects inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/diagnosing-projects to use it in every repository:

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

For one repository only, put the folder in .agents/skills/diagnosing-projects inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/diagnosing-projects to use it in every project:

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

For one project only, put the folder in .cursor/skills/diagnosing-projects inside it instead.

Cursor docs on skills

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

gemini skills install https://github.com/Database-Tycoon/tycoon-cli.git --path plugins/users/skills/diagnosing-projects

Or copy the folder to ~/.gemini/skills/diagnosing-projects yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/diagnosing-projects:

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

For one project only, put the folder in .github/skills/diagnosing-projects inside it instead.

VS Code docs on skills

Get the folder:

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

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

The SKILL.md format

What it does

Health report triage
Starts troubleshooting from the tycoon doctor report covering interpreter, configs, credentials and dbt profile.
CI gating guidance
Identifies which tycoon commands exit non-zero on failure so health checks can fail a pipeline.
dbt profile resolution
Explains why run-all and transform run find different profiles and how to fix the mismatch.
Python version checks
Covers the supported interpreter range and how the project-local virtualenv is created.
Schema version fixes
Describes the warnings and hard errors for schema_version mismatches and how to resolve them.
DuckDB lock resolution
Explains file-lock and handle conflicts between the local server, dbt runs and external tools.

Good for

  • Why does my dbt run fail with a profile not found error?
  • Fix a DuckDB unique file handle conflict in my tycoon project
  • Add a tycoon health check that fails my CI pipeline
  • Upgrade a project whose schema_version is out of date
  • Find out why tycoon says no tycoon.yml was found

Diagnosing projects FAQ

What does Diagnosing projects need to run?

The tycoon CLI installed (pip install database-tycoon) and a project directory containing a tycoon.yml file.

Does tycoon doctor fail a CI job?

No. tycoon doctor always exits 0. The skill points to tycoon profiles doctor and tycoon semantics doctor for CI, since those exit 1 on failure.

Which Python versions does Diagnosing projects support?

Python 3.12 up to but not including 3.14, because dbt has no 3.14 wheels.

Does Diagnosing projects change my project files?

Its guidance may lead to running tycoon init --upgrade or tycoon setup, but it only describes the commands and does not run anything itself.

How do I install Diagnosing projects in Claude Code?

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

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 Diagnosing projects?

The closest alternatives to Diagnosing projects are Reading project state, Debugging and error recovery, Testing CLI changes, Test driven development and TDD.

Where this comes from

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

More from Database-Tycoon/tycoon-cli

  1. Guides agents through branch targeting, PR steps and changelog updates for tycoon-cli

    • Open source
    • 8 GitHub stars
    • Developer tools
  2. Guides testing of tycoon-cli changes, from unit tests to subprocess and snapshot checks

    • Open source
    • 8 GitHub stars
    • Developer tools
  3. Walks maintainers through cutting a tycoon-cli release, from changelog to PyPI publish

    • Open source
    • 8 GitHub stars
    • Developer tools
  4. Registers, configures and runs data source ingestion in a tycoon project

    • Open source
    • 8 GitHub stars
    • Analytics and data
  5. Turns raw ingested data into dbt staging models and Rill dashboards in tycoon projects

    • Open source
    • 8 GitHub stars
    • Analytics and data
  6. Runs tycoon data pipelines unattended with schedules, alerts and local snapshots

    • Open source
    • 8 GitHub stars
    • Analytics and data