Tools: Ops Whisperer 🌩️: Speaking Infrastructure into Existence

Tools: Ops Whisperer 🌩️: Speaking Infrastructure into Existence

Source: Dev.to

What I Built ## Currently supported: ## Try It Out ## Demo Screenshot ## My Experience with GitHub Copilot CLI ## 1. Instant project scaffolding ## 2. Bullet-proof Safety Rails (the hardest part) ## 3. Debugging without leaving the terminal ## Bonus wins GitHub Copilot CLI Challenge Submission This is my submission for the GitHub Copilot CLI Challenge I created Ops Whisperer, a friendly AI-powered CLI tool that turns your natural language ideas into ready-to-use infrastructure code. Let's be real: even seasoned engineers sometimes freeze trying to recall the exact YAML structure for a Kubernetes Ingress, the right multi-stage build in a Dockerfile, or the proper Terraform resource syntax. We end up Googling, copy-pasting from old projects, or fighting mysterious indentation bugs. Ops Whisperer fixes that pain. Just describe what you want in plain English β€” and it instantly generates clean, production-ready configuration files for you, right in your terminal. It includes a built-in Safety Rail system (heavily assisted by Copilot) that scans output and blocks truly dangerous patterns β€” no accidental rm -rf / surprises. (Tip: Replace this placeholder with your actual screenshot of running something like ops "create a Node.js Dockerfile with multi-stage build") Building an AI CLI tool using another AI CLI tool felt wonderfully meta πŸ˜„. The hardest parts of CLI development are rarely the core logic β€” it's all the surrounding glue: argument parsing, proper exit codes, colored output, error handling, streams… you name it. GitHub Copilot CLI (gh copilot) became my always-available terminal pair programmer. No more context-switching to browser tabs or docs β€” everything stayed in the flow. Here’s how it supercharged my workflow: Setting up a modern Node.js CLI with ESM, commander, and inquirer usually eats 15–30 minutes of boilerplate hunting. Boom β€” perfect program.version(), .option(), .parse() structure, correct ESM config, the works. Ready in under 2 minutes. Blocking dangerous commands (rm -rf, mkfs, fork bombs, device writes, etc.) reliably is tricky β€” regex hell. I asked Copilot to help: It gave me a solid, explainable pattern I could trust and extend. Huge time-saver and peace of mind. Hit a weird execa stdio error during interactive prompts? Piped it straight to: Instant clear explanation + suggested fix. Bug squashed in minutes instead of 30+ Googling. Bottom line: Copilot CLI didn't just autocomplete code β€” it acted as on-demand docs expert, regex wizard, and logic validator. It let me spend way more time on the interesting part (the AI whisperer logic) and way less on Node.js CLI ceremony. Thanks to GitHub Copilot CLI, I stayed deep in flow and shipped faster. Would love any feedback or ideas β€” feel free to star the repo or open issues! πŸš€ Templates let you quickly answer FAQs or store snippets for re-use. Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse COMMAND_BLOCK: npm install -g ops-whisperer Enter fullscreen mode Exit fullscreen mode COMMAND_BLOCK: npm install -g ops-whisperer COMMAND_BLOCK: npm install -g ops-whisperer CODE_BLOCK: gh copilot suggest "create a node.js cli entry point using commander and inquirer with ESM imports" Enter fullscreen mode Exit fullscreen mode CODE_BLOCK: gh copilot suggest "create a node.js cli entry point using commander and inquirer with ESM imports" CODE_BLOCK: gh copilot suggest "create a node.js cli entry point using commander and inquirer with ESM imports" COMMAND_BLOCK: gh copilot suggest "javascript regex to detect dangerous linux commands like rm -rf or mkfs or > /dev/sda" Enter fullscreen mode Exit fullscreen mode COMMAND_BLOCK: gh copilot suggest "javascript regex to detect dangerous linux commands like rm -rf or mkfs or > /dev/sda" COMMAND_BLOCK: gh copilot suggest "javascript regex to detect dangerous linux commands like rm -rf or mkfs or > /dev/sda" CODE_BLOCK: gh copilot explain "Error: stdio must be of type ..." Enter fullscreen mode Exit fullscreen mode CODE_BLOCK: gh copilot explain "Error: stdio must be of type ..." CODE_BLOCK: gh copilot explain "Error: stdio must be of type ..." CODE_BLOCK: This version feels more conversational, engaging, and professional while keeping your original voice and key points. Good luck with the challenge! Enter fullscreen mode Exit fullscreen mode CODE_BLOCK: This version feels more conversational, engaging, and professional while keeping your original voice and key points. Good luck with the challenge! CODE_BLOCK: This version feels more conversational, engaging, and professional while keeping your original voice and key points. Good luck with the challenge! - 🐳 Docker β€” Dockerfiles and docker-compose.yml stacks - ☸️ Kubernetes β€” Deployments, Services, Ingresses, ConfigMaps, and more - πŸ—οΈ Terraform β€” IaC resources, modules, providers - πŸ’» Bash β€” Safe, complex shell scripts and one-liners - 🌐 Project website: ops-whisperer.github.io - πŸ“¦ NPM package: npmjs.com/package/ops-whisperer - πŸ’» GitHub repo: github.com/salekmasudparvez1/ops-whisperer - Quick ora spinner + chalk color chaining for that premium feel - Proper stream handling for child processes - ANSI-friendly output formatting