Inferensys

Prompts

CLI Command and Tool Reference

Prompt playbooks for generating CLI command references from source code, help text, or usage patterns. Useful for CLI tool maintainers and platform engineers because command references must document every flag, subcommand, exit code, stdin/stdout behavior, and shell completion support with realistic examples.
Developer demonstrating multi-agent tool use, agent tool selection interface on laptop, casual tech demo moment.
Prompts

CLI Command and Tool Reference

Prompt playbooks for generating CLI command references from source code, help text, or usage patterns. Useful for CLI tool maintainers and platform engineers because command references must document every flag, subcommand, exit code, stdin/stdout behavior, and shell completion support with realistic examples.

CLI Flag Extraction Prompt from Help Text

For CLI tool maintainers who need to extract every flag, option, and argument from raw --help output into a structured schema. Produces a JSON catalog with long/short flags, types, defaults, required status, and mutual exclusion groups. Harness must validate flag completeness against the original help text and flag conflicts in the extracted schema.

Subcommand Tree Generation Prompt from Source Code

For platform engineers documenting CLI tools with deep subcommand hierarchies. Produces a complete command tree with parent-child relationships, aliases, and deprecation markers by analyzing source code or binary introspection. Evaluation checks for orphaned commands, missing leaf nodes, and incorrect nesting depth.

Exit Code Documentation Prompt Template

For CLI maintainers who need to document every possible exit code with causes and recovery actions. Produces a structured exit code reference mapping numeric codes to error categories, typical causes, stderr patterns, and recommended user responses. Harness validates that all code paths in source produce documented exit codes.

Stdin/Stdout Behavior Description Prompt

For engineers documenting how CLI commands consume input and produce output across pipes, redirects, and interactive terminals. Produces per-command documentation of input expectations, output formats, encoding, and TTY vs pipe behavior differences. Eval checks for missing edge cases like empty input, binary streams, and closed pipes.

Shell Completion Script Generation Prompt

For CLI maintainers generating tab completion scripts for bash, zsh, fish, and PowerShell. Produces completion scripts that handle dynamic argument suggestions, flag completion, subcommand discovery, and file path completion. Harness tests completion output against actual command parsing behavior to catch stale or incorrect suggestions.

CLI Usage Example Generation Prompt

For documentation engineers creating realistic, copy-pasteable command examples that demonstrate common workflows. Produces annotated examples covering happy paths, error handling, piping, and scripting patterns. Evaluation verifies examples execute successfully against the current CLI version and produce expected exit codes.

Command Reference Page Assembly Prompt

For technical writers assembling complete command reference pages from disparate sources: help text, source annotations, examples, and exit code docs. Produces a unified reference page with synopsis, description, options table, examples, exit codes, and see-also links. Harness checks for internal consistency, missing sections, and broken cross-references.

Environment Variable Reference Prompt for CLI Tools

For DevOps engineers documenting every environment variable a CLI tool reads, including precedence rules and default fallbacks. Produces a reference table with variable names, descriptions, valid values, defaults, and which flags they override. Validation checks for undocumented variables found in source and incorrect precedence documentation.

Configuration File Schema Documentation Prompt

For platform engineers documenting YAML, TOML, or JSON config file schemas with all keys, types, defaults, and validation rules. Produces a complete schema reference with nested key paths, value constraints, deprecation notices, and examples. Harness validates schema completeness against actual config parsing code.

CLI Error Message Catalog Generation Prompt

For support engineers building a searchable catalog of every error message a CLI can emit. Produces a structured catalog mapping error strings to causes, affected flags, resolution steps, and related exit codes. Evaluation checks for error messages in source that are missing from the catalog and tests resolution steps for accuracy.

CLI Deprecation Notice Drafting Prompt

For product managers and CLI maintainers drafting deprecation notices for flags, subcommands, or behaviors. Produces a notice with deprecation timeline, replacement guidance, migration commands, and impact assessment. Harness validates that the notice covers all affected surfaces and that replacement commands actually work.

CLI Version Migration Guide Prompt

For release managers writing migration guides between major CLI versions. Produces a structured guide enumerating every breaking change, before/after command comparisons, deprecated flag mappings, and automated migration scripts. Evaluation verifies completeness against changelogs and tests migration commands against both versions.

CLI Output Format Description Prompt

For CLI maintainers documenting structured output formats like JSON, CSV, and table modes. Produces format-specific documentation with field schemas, type mappings, null handling, and examples for each output mode. Harness validates output examples against actual command output and checks schema completeness.

CLI Pipe and Redirection Behavior Prompt

For engineers documenting how CLI commands compose in pipelines, including stdin/stdout contracts, exit code propagation, and signal handling. Produces per-command pipeline documentation with composability notes, buffering behavior, and common pipeline patterns. Eval tests documented pipeline examples for correctness.

CLI Authentication Flag Reference Prompt

For security engineers documenting authentication mechanisms: API tokens, OAuth flows, credential files, and environment variable auth. Produces a reference covering all auth methods, precedence rules, token refresh behavior, and security considerations. Harness validates that documented auth flows match actual implementation.

CLI Plugin and Extension Reference Prompt

For CLI platform engineers documenting plugin interfaces, installation paths, API contracts, and lifecycle hooks. Produces a plugin developer reference with interface specs, version compatibility, discovery mechanisms, and example plugins. Evaluation checks interface documentation against actual plugin loading code.

CLI Exit Code Troubleshooting Guide Prompt

For support engineers creating troubleshooting guides that map exit codes and error patterns to diagnostic steps. Produces a decision-tree guide that walks users from error symptoms through diagnostic commands to resolution. Harness tests each diagnostic path against intentionally triggered error conditions.

CLI Man Page Generation Prompt

For CLI maintainers generating troff-formatted man pages from structured command documentation. Produces man pages with proper sections, formatting, and cross-references that render correctly in man viewers. Validation checks for formatting errors, missing required sections, and broken internal references.

CLI Help Text Improvement Prompt

For CLI maintainers auditing and improving existing help text for clarity, consistency, and completeness. Produces revised help text with improved descriptions, consistent formatting, added examples, and clearer error guidance. Evaluation compares before/after help text against usability heuristics and flag coverage.

CLI Command Reference QA and Consistency Check Prompt

For documentation QA engineers auditing command references for internal consistency, flag coverage, example accuracy, and cross-reference integrity. Produces a QA report flagging missing flags, contradictory descriptions, stale examples, broken links, and style violations. Harness automates checks against actual CLI behavior where possible.

CLI Documentation Drift Detection Prompt

For platform engineers detecting when CLI documentation has diverged from actual implementation. Produces a drift report comparing documented flags, subcommands, exit codes, and behaviors against current binary output. Evaluation prioritizes findings by user impact and suggests specific documentation updates.