# Testing CLI changes

> Testing CLI changes is an open-source agent skill for developer tools. Guides testing of tycoon-cli changes, from unit tests to subprocess and snapshot checks. 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/contributors/skills/testing-cli-changes
- **Repository:** https://github.com/database-tycoon/tycoon-cli
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** testing-cli-changes
- **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 is a contributor guide for changing the tycoon-cli repository. It points to the CI gates listed in CONTRIBUTING.md and walks through the pytest, ruff lint and ruff format commands to run before pushing. It also notes that changes to the web and docs folders need their own checks, such as the Playwright suite, a bundle rebuild, and a strict MkDocs build.

The skill explains the test tiers: default unit tests, offline end-to-end tests that run locally, and live e2e tests that only run in a manual workflow. It stresses that bugs in PATH resolution, Rich rendering, console-script wiring and exit codes need regression tests at the subprocess layer, since in-process Typer tests cannot observe them. It describes the doctest runner for fenced bash blocks in the README and recipes, the end-to-end test that drives the installed console script, and the command-tree test that checks help output and rejects stale strings for removed commands.

It also covers syrupy snapshot tests for Rich output, including how to regenerate them after an intended string change and why the snapshot diff must be reviewed before committing. Working on it requires a tycoon-cli checkout and uv.

## When your agent uses it

> Use when writing or fixing tests in the tycoon-cli repo, when a CLI-surface bug slipped past in-process tests (PATH resolution, Rich rendering, console-script wiring, exit codes), when snapshot tests fail after changing user-facing strings, or when adding runnable bash examples to README or docs/recipes.

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

## Features

- **Gate checklist:** Lists the pytest, ruff lint and ruff format commands that CI checks before a push.
- **Test tier overview:** Explains which test markers run by default and which need live credentials.
- **Subprocess regression tests:** Covers running CLI-surface bugs through real subprocesses instead of in-process tests.
- **Bash recipe doctests:** Describes how fenced bash blocks in the README and recipe docs are executed in a temporary directory.
- **Snapshot update workflow:** Shows how to regenerate syrupy snapshots for Rich output and review the diff.
- **Command tree checks:** Covers the help-exit-code test and the registry that rejects stale command strings.

## Good for

- Fix a bug where the installed console script behaves differently from in-process tests
- Update snapshot tests after changing a user-facing CLI message
- Add a runnable bash example to the README or a recipe doc
- Check which CI gates apply before pushing a tycoon-cli change
- Register an old command invocation after renaming a subcommand

## Install

### Claude Code

This skill ships in the `tycoon-contributors` 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-contributors@tycoon-skills
```

Or copy only this skill to `~/.claude/skills/testing-cli-changes`:

```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/testing-cli-changes &&
cp -R "$tmp/plugins/contributors/skills/testing-cli-changes" ~/.claude/skills/testing-cli-changes &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/testing-cli-changes` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/testing-cli-changes` 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/testing-cli-changes &&
cp -R "$tmp/plugins/contributors/skills/testing-cli-changes" ~/.agents/skills/testing-cli-changes &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/testing-cli-changes` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/testing-cli-changes` 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/testing-cli-changes &&
cp -R "$tmp/plugins/contributors/skills/testing-cli-changes" ~/.cursor/skills/testing-cli-changes &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/testing-cli-changes` 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/contributors/skills/testing-cli-changes
```

Or copy the folder to `~/.gemini/skills/testing-cli-changes` yourself.

### VS Code

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

```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/testing-cli-changes &&
cp -R "$tmp/plugins/contributors/skills/testing-cli-changes" ~/.copilot/skills/testing-cli-changes &&
rm -rf "$tmp"
```

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

## FAQ

### What do I need to use Testing CLI changes?

A tycoon-cli repository checkout with uv installed.

### When should I use the subprocess tests instead of in-process tests?

When a CLI-surface bug, such as PATH resolution, Rich rendering, console-script wiring or exit codes, slipped past in-process Typer tests.

### How do I update snapshot tests after changing a user-facing string?

Run uv run pytest with --snapshot-update on tests/test_snapshots.py, then review the git diff of tests/__snapshots__ before committing.

### Which checks are needed for changes to docs?

Run uv run mkdocs build --strict and scripts/check_docs_publishable.py.

### How do I install Testing CLI changes in Claude Code?

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

### Does Testing CLI changes 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 Testing CLI changes?

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 Testing CLI changes?

The closest alternatives to Testing CLI changes are Contributing changes, Test driven development, Cutting a release, Test driven development and Diagnosing projects.

## Where this comes from

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

## Alternatives

- [Contributing changes](https://ai-powered.com/skills/contributing-changes): Contributing 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.
- [Cutting a release](https://ai-powered.com/skills/cutting-a-release): Cutting a release 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.
- [Diagnosing projects](https://ai-powered.com/skills/diagnosing-projects): Diagnosing projects 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.
- [TDD workflow](https://ai-powered.com/skills/tdd-workflow-nabwinsaud): TDD workflow is an open-source agent skill for developer tools.
- [Testing assistant](https://ai-powered.com/skills/testing-assistant): Testing assistant is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/testing-cli-changes
