
Domain CLI
Guides an agent through building Rust command-line tools with clap, config layers
Domain CLI is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 21
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Domain CLI
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, 命令行, 终端应用, 参数解析
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 (4 KB) on GitHub on 3 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
Copy the skill folder to ~/.claude/skills/domain-cli to use it in all your projects:
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.
Copy the skill folder to ~/.agents/skills/domain-cli to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/domain-cli to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/k1-c/linear-tui.git --path .claude/skills/domain-cliOr copy the folder to ~/.gemini/skills/domain-cli yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/domain-cli:
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.
Get the folder:
git clone --depth 1 https://github.com/k1-c/linear-tui.gitThen 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.
What it does
- 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
Domain CLI 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.
More from k1-c/linear-tui

Gives the agent a quick reference of Rust-specific naming, error handling and async rules
- Open source
- 21 GitHub stars
- Developer tools

Guides the agent to write Conventional Commits, splitting mixed changes into several
- Open source
- 21 GitHub stars
- Developer tools

Guides the agent through Rust ownership, borrow and lifetime compiler errors
- Open source
- 21 GitHub stars
- Developer tools

Guides an agent in choosing Rust smart pointers like Box, Rc, Arc, Weak and RefCell
- Open source
- 21 GitHub stars
- Developer tools

Guides a Rust agent through E0596/E0499/E0502 borrow errors and interior mutability
- Open source
- 21 GitHub stars
- Developer tools

Guides Claude through generics, traits, static vs dynamic dispatch and related Rust
- Open source
- 21 GitHub stars
- Developer tools





