# Diagnosing projects

> Diagnosing projects is an open-source agent skill for developer tools. Diagnoses broken tycoon projects: failing commands, dbt profile and DuckDB lock errors. 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/diagnosing-projects
- **Repository:** https://github.com/database-tycoon/tycoon-cli
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** diagnosing-projects
- **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 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.

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

## Features

- **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

## 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/diagnosing-projects`:

```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/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.

### Codex

Copy the skill folder to `~/.agents/skills/diagnosing-projects` 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/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.

### Cursor

Copy the skill folder to `~/.cursor/skills/diagnosing-projects` 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/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.

### 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/diagnosing-projects
```

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

### VS Code

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

```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/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.

### 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/diagnosing-projects` into your agent's skills folder as `diagnosing-projects`. Agents that support SKILL.md read one folder per skill.

## 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.

## Alternatives

- [Reading project state](https://ai-powered.com/skills/reading-project-state): Reading project state is an open-source agent skill for developer tools.
- [Debugging and error recovery](https://ai-powered.com/skills/debugging-and-error-recovery): Debugging and error recovery 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.
- [Test driven development](https://ai-powered.com/skills/test-driven-development-addyosmani): Test driven development 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.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Go troubleshooting](https://ai-powered.com/skills/go-troubleshooting): Go troubleshooting is an open-source agent skill for developer tools.
- [Test driven development](https://ai-powered.com/skills/test-driven-development-ajyadav013-2): Test driven development is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/diagnosing-projects
