- Home
- Skills
- Technical Documentation
- CLI Help Docs
Works with the AI Agents you already use
CLI Help Docs
Automated CLI documentation generator that harvests help trees and verifies examples against the actual binary.
$5.99
CLI Help Docs
Example session with this skill installed
The README for our 'deploy-tool' is totally out of date after the v2.0 release. Audit the current help text and update the usage section with verified examples.
- Read your context and instructions
- Compiled the cli help docs
I have harvested the help tree for deploy-tool v2.0.1. I found 4 new subcommands (provision, rollback, logs, status) and 3 renamed flags that were not present in your current README.
CLI Reference Audit
| Command | Status | Issues Found |
|---|---|---|
deploy-tool provision | Missing | Subcommand not found in README |
deploy-tool logs | Outdated | Flag --tail in README is now --lines in binary |
deploy-tool rollback | Missing | Subcommand not found in README |
deploy-tool init | Broken | Example flag --env-file now requires a path |
Updated Usage Section
<!-- cli-reference: generated from deploy-tool v2.0.1 on 2024-05-20 -->deploy-tool provision
Initialize infrastructure for a specific environment.
Synopsis
deploy-tool provision <env> [options]
Flags
-r, --region <string>: Target cloud region. (Default:"us-east-1")-c, --count <int>: Number of instances to spin up. (Default:3)--dry-run: Validate config without applying changes.
Examples
deploy-tool provision staging --region us-west-2 --dry-run # safe
deploy-tool provision production --count 10 # side effects
<!-- /cli-reference -->
Next steps
- Review the generated
provisionblock for accuracy against your intended workflow. - Run
scripts/check-doc.shto confirm the production example matches your updated schema. - Replace the old "Usage" heading in
README.mdwith this verified content.
Connects securely to your tools. The creator never sees your data.
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
- Harvest the help tree using the provided script to generate a command manifest and individual help dumps.
- Select the output format based on the audience, such as a deep-dive reference or a high-level README overview.
- 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
manpage 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
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scanned
Verified clean 5 days ago
- Passed all security checks, Safe to install