Skip to content
Agentmart
Submit a tool

writing-cli-skills

Use when authoring an agent skill that wraps a command-line interface (CLI) tool or terminal binary.

Skill by TheCheepeer

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/thecheepeer-writing-cli-skills

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when authoring an agent skill that wraps a command-line interface (CLI) tool or terminal binary. Guides hands-on tool exploration, installation and usage structures, trigger-rich descriptions for semantic activation, task-oriented command grouping, progressive disclosure, and pre-publish checklists.

Use cases: writing, productivity, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/writing-cli-skills

What's inside

Skill name
writing-cli-skills
Description
Use when authoring an agent skill that wraps a command-line interface (CLI) tool or terminal binary. Guides hands-on tool exploration, installation and usage structures, trigger-rich descriptions for semantic activation, task-oriented command grouping, progressive disclosure, and pre-publish checklists.
License
Apache-2.0
Instructions
99 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • template.md · references/

SKILL.md (first lines)

# Authoring Skills for CLI Tools (Writing CLI Skills)

How to build high-quality skills that package and teach command-line interface (CLI) tools to AI agents.

## Quickstart

1. **Install and run the tool hands-on** — do not just read docs. Testing real commands uncovers real behaviors, undocumented gotchas, and defaults that reference manuals omit.
2. Run `--help` across each primary subcommand.
3. Test the most frequent day-to-day operations.
4. Note counterintuitive behaviors or surprises.
5. Copy the template in `references/template.md` into the new skill directory.
6. Populate sections based on real terminal findings.
7. Strip irrelevant sections.

```bash
# 1. Test tool in the terminal
my-cli --help
my-cli subcommand --help

# 2. Skill placement in Gemini/Antigravity:
# Project-level: .agents/skills/my-cli/SKILL.md
# Global-level: ~/.gemini/config/skills/my-cli/SKILL.md
```

## What NOT to Do

- Do not dump unfiltered `--help` output — extract only actionable flags.
- Do not document dozens of obscure flags — cover the 80% daily use cases.
- Do not include commands you have not verified yourself.
- Keep the root `SKILL.md` under 500 lines to preserve context window tokens.

## Skill Sections

### Mandatory

| Section              | Purpose                                                               |
| -------------------- | --------------------------------------------------------------------- |
| **YAML Frontmatter** | `name` and trigger-rich `description` enabling semantic matching      |
| **Installation**     | How to install or build the binary across supported operating systems |
| **Primary Usage**    | The 80% highest-frequency commands and workflows                      |

### Recommended

| Section                | When to Include                                                   |
| ---------------------- | ----------------------------------------------------------------- |
| Prerequisites          | Tool requires API tokens, cloud accounts, or runtime dependencies |
| Output Formats         | Tool supports flags like `--json` that simplify agent parsing     |
| Tips and Gotchas       | Interactive prompts that block the terminal and must be bypassed  |
| Troubleshooting        | How to enable verbose debugging (`--verbose`, `--debug`)          |
| Uninstall / Data paths | Where the tool persists state, cache, or configuration files      |

## Frontmatter Descriptions

Include explicit intent phrases so the agent knows precisely when to load the skill:

```yaml
# Good: descriptive with concrete scenarios
description: Monitors RSS feeds for updates. Use when following technical blogs, checking new releases, or building feed-reading pipelines.

# Bad: overly generic
description: RSS tool.
```

## Organizing Commands

Group commands by **user task** rather than CLI command hierarchy:

- View / List
- Create / Add
- Update / Edit
- Delete / Remove
- Search / Filter

## Progressive Disclosure

Keep `SKILL.md` lean. Move comprehensive reference material to `references/`:

```text
my-cli/
├── SKILL.md                 # Fast, essential everyday workflows
├── references/
│   ├── advanced-config.md   # Complex configuration options
│   └── api-reference.md     # Full catalog of flags and subcommands
└── scripts/
    └── helper.sh            # Deterministic automation scripts
```

## Publication Checklist

- [ ] Frontmatter includes kebab-case `name` and trigger-rich `description`.
- [ ] Installation instructions verified.
- [ ] Includes verification check (`tool --version`).
- [ ] Config file paths and environment variables documented.
- [ ] Realistic examples with sample command and output formats.
- [ ] JSON output flags highlighted (preferred for agents).
- [ ] Warnings against interactive commands that hang terminals.
- [ ] Lean main file with deep reference manuals moved to `references/`.

From TheCheepeer/omni-agents, Apache-2.0.

More from TheCheepeer/omni-agents

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from TheCheepeer

Cite this page

writing-cli-skills. Agent Mart. https://agentmart.dev/skills/thecheepeer-writing-cli-skills (last updated 2026-10-24)