# CLI Help Docs

> Automated CLI documentation generator that harvests help trees and verifies examples against the actual binary.

CLI Help Docs is a paid AI agent skill on Agensi by Bandonker Labs., in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5.99 (one-time purchase)
- Creator: [Bandonker Labs.](https://www.agensi.io/creators/bandonkerlabs)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.1
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/cli-help-docs
- Tags: documentation, api, code-review, testing, automation

## About this skill

Documentation that relies on memory or source code comments eventually rots. A flag is renamed, a default changes, or a subcommand is added, and the README quickly becomes a liability. This skill ensures your CLI documentation is a precise reflection of the actual binary, not a guess.

### What it does
- **Help tree harvesting** scans the entire CLI command structure to capture flags, arguments, and defaults directly from the binary.
- **Drift detection** identifies gaps between the current documentation and the actual help output, flagging missing subcommands or renamed flags.
- **Example verification** runs "safe" examples against the binary to ensure they exit 0 and statically validates "side effect" examples against harvested data.
- **Multi-format generation** produces README usage sections, standalone reference pages, or POSIX-compliant man pages.
- **Automated stamping** wraps generated content in HTML comments containing version and timestamp data for clear provenance.

### How it works
1. **Harvest** the help tree using the provided script to generate a command manifest and individual help dumps.
2. **Select** the output format based on the audience, such as a deep-dive reference or a high-level README overview.
3. **Verify** every example in the document using a checker that executes safe code and audits flags against the harvest.

### Frameworks & tools
This skill utilizes shell scripts for binary interrogation, Markdown for output, and standard CLI conventions. It requires a runnable binary of the tool being documented.

### Why this beats prompting it yourself
Generic LLMs often hallucinate CLI flags or invent syntax based on common patterns that your specific tool might not follow. This skill ties every word to a physical help dump, ensuring that every default value and flag combination is verified against your actual implementation before it ships.

### Use cases
- Auditing a mature CLI to find undocumented features or deprecated flags.
- Generating a standard `man` page for a new internal tool distribution.
- Syncing a project README after a major version bump with breaking changes.
- Verifying that code examples in your documentation actually run and pass.

### Known limitations
The skill cannot document hidden flags or internal commands unless explicitly instructed. It requires the CLI binary to be accessible and runnable in the environment.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the CLI Help Docs skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill prevent documentation from becoming outdated as my CLI evolves?

This skill eliminates 'documentation rot' by directly harvesting data from your CLI binary rather than relying on memory or source code, ensuring every flag, argument, and default is 100% accurate.

### What documentation formats can this skill produce?

The tool can generate POSIX-compliant man pages, comprehensive standalone reference guides, or concise README usage sections, all including automated timestamps and version stamps for provenance.

### How does the example verification process work without accidentally executing dangerous commands?

The skill performs 'safe execution' on non-destructive examples to ensure an exit 0 status and uses static validation against the harvested help tree to audit examples that might have side effects.

### What is included in the 'cli help docs' package?

You will receive the core help tree harvesting scripts, the documentation generation engine, and the validation suite, along with a guide on integrating these into your CI/CD pipeline.

### Are there specific programming languages or CLI frameworks required for this to work?

The skill requires the target CLI binary to be runnable in the environment; it supports any CLI that follows standard help output conventions (e.g., --help) regardless of the language it was written in.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
