
Testing CLI changes
Guides testing of tycoon-cli changes, from unit tests to subprocess and snapshot checks
Testing CLI changes 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 Testing CLI changes
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.
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-contributors 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-contributors@tycoon-skillsOr copy only this skill to ~/.claude/skills/testing-cli-changes:
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.
Copy the skill folder to ~/.agents/skills/testing-cli-changes 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/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.
Copy the skill folder to ~/.cursor/skills/testing-cli-changes 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/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.
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/contributors/skills/testing-cli-changesOr copy the folder to ~/.gemini/skills/testing-cli-changes yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/testing-cli-changes:
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.
Get the folder:
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.gitThen 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.
What it does
- 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
Testing CLI changes 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.
More from Database-Tycoon/tycoon-cli

Guides agents through branch targeting, PR steps and changelog updates for tycoon-cli
- Open source
- 8 GitHub stars
- Developer tools

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

Registers, configures and runs data source ingestion in a tycoon project
- Open source
- 8 GitHub stars
- Analytics and data

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

Diagnoses broken tycoon projects: failing commands, dbt profile and DuckDB lock errors
- Open source
- 8 GitHub stars
- Developer tools

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



