# Domain CLI

> Domain CLI is an open-source agent skill for developer tools. Guides an agent through building Rust command-line tools with clap, config layers. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/k1-c/linear-tui/tree/main/.claude/skills/domain-cli
- **Repository:** https://github.com/k1-c/linear-tui
- **GitHub stars:** 21
- **License:** MIT
- **Skill name:** domain-cli
- **Collection:** https://github.com/k1-c/linear-tui
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill gives an AI coding agent a set of design rules for building command-line applications, focused on Rust. It lays out constraints such as sending errors to stderr and data to stdout, layering configuration so command-line arguments override environment variables, which override a config file, and returning non-zero exit codes on failure.

The skill maps these rules to concrete Rust choices. It points the agent toward derive-based argument parsing with clap, layered configuration loading, and progress bars with indicatif, and it lists crates for prompts, colored output, and terminal UIs such as ratatui and crossterm. It includes a small clap example showing subcommands and optional flags, plus a table of common mistakes and the crates that address them.

It expects a Rust project with a Cargo.toml, and it cross-references related guidance on error handling, type-driven design, lifecycle and async concurrency.

## When your agent uses it

> Use when building CLI tools. Keywords: CLI, command line, terminal, clap, structopt, argument parsing, subcommand, interactive, TUI, ratatui, crossterm, indicatif, progress bar, colored output, shell completion, config file, environment variable, 命令行, 终端应用, 参数解析

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/k1-c/linear-tui/tree/HEAD/.claude/skills/domain-cli)
- [License: MIT](https://github.com/k1-c/linear-tui/tree/HEAD/.claude/skills/domain-cli)

## Features

- **Configuration precedence rules:** Defines the order in which command-line arguments, environment variables, config files and defaults apply.
- **Clap argument parsing patterns:** Shows derive-based argument structs and subcommand enums for type-safe parsing.
- **Output and exit code guidance:** Explains separating error output from data output and returning proper non-zero exit codes.
- **Progress and terminal UI crates:** Lists crates for progress bars, prompts, colored output and terminal interfaces.
- **Common CLI mistakes table:** Summarizes frequent pitfalls such as printing errors to stdout or missing help text, with fixes.

## Good for

- Scaffold a Rust CLI with subcommands and flags
- Add layered config from flags, env vars and a file
- Show progress bars for long-running tasks in a terminal app
- Review a command-line tool for proper error and exit handling
- Add shell completion and colored output to a Rust binary

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/domain-cli` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/domain-cli &&
cp -R "$tmp/.claude/skills/domain-cli" ~/.claude/skills/domain-cli &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/domain-cli` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/domain-cli &&
cp -R "$tmp/.claude/skills/domain-cli" ~/.agents/skills/domain-cli &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/domain-cli` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/domain-cli &&
cp -R "$tmp/.claude/skills/domain-cli" ~/.cursor/skills/domain-cli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/domain-cli` 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/k1-c/linear-tui.git --path .claude/skills/domain-cli
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/domain-cli &&
cp -R "$tmp/.claude/skills/domain-cli" ~/.copilot/skills/domain-cli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/domain-cli` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/k1-c/linear-tui.git
```

Then copy `linear-tui/.claude/skills/domain-cli` into your agent's skills folder as `domain-cli`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Domain CLI need to work?

It is written for Rust projects, and its trigger globs match Cargo.toml files, so it applies when building CLI tools in Rust.

### Does Domain CLI change any files or run scripts?

It contains no scripts. It only provides guidance and code patterns that the agent can follow.

### When does the agent load Domain CLI?

It is meant to load when the task involves building a command-line tool, using keywords such as CLI, clap, argument parsing, or progress bars.

### How do I install Domain CLI in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/domain-cli to use it in all your projects, or to .claude/skills/domain-cli in one project.

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

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Domain CLI?

The closest alternatives to Domain CLI are CLI creator, CLI build, Go CLI, Agent CLI and CLI audit.

## Where this comes from

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

## Alternatives

- [CLI creator](https://ai-powered.com/skills/cli-creator): CLI creator is a free agent skill for developer tools.
- [CLI build](https://ai-powered.com/skills/cli-build): CLI build is an open-source agent skill for developer tools.
- [Go CLI](https://ai-powered.com/skills/go-cli): Go CLI is an open-source agent skill for developer tools.
- [Agent CLI](https://ai-powered.com/skills/agent-cli): Agent CLI is an open-source agent skill for developer tools.
- [CLI audit](https://ai-powered.com/skills/cli-audit): CLI audit is an open-source agent skill for developer tools.
- [Coding guidelines](https://ai-powered.com/skills/coding-guidelines): Coding guidelines is an open-source agent skill for developer tools.
- [M11 ecosystem](https://ai-powered.com/skills/m11-ecosystem): M11 ecosystem is an open-source agent skill for developer tools.
- [System commandline CLI](https://ai-powered.com/skills/system-commandline-cli): System commandline CLI is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/domain-cli
