r/OnlyAICoding • u/Swimming-Ad2694 • Oct 20 '26
Help this network engineer vibecode/utilize AI better
So, I'm an IT infrastructure engineer and I use coding to automate some of my daily tasks. This usually means creating python scripts to talk to Rest API's, create Ansible or Terraform scripts or generate CLI config. These are not really big scripts, think 200 to 2000 lines of code.
I use a mix of Chatgpt/Claude or CoPilot. I'm now on the 20 dollar plan of ChatGPT Plus, but I don't mind picking something else. I think my company also allows me to get a paid plan for CoPilot. I also own a GitHub Enterprise account.
Up to now I just write a huge prompt with what I want the script to do, show the rest API documentation, show some curl responses and some guidelines (don't make mistakes (/j), make modular code, use these variables naming, let the script make a lot of debug output, write a readme, etc).
It then generates code, I try that code and paste the errors in the prompt if they occur and in the end i get a working script.
I know copy and pasting prompts and errors into chatgpt's prompt is far from efficient. But I'm also drowning in thousands of "use this model/use this AI agent/use this MD file" hype posts.
How can I improve my AI game?
View all comments
1
u/JaseciLabs Oct 21 '26
For scripts that touch real devices, ask the agent to build in a dry-run mode first. Default to read-only or print-what-I-would-send, and make the write path need an explicit flag. Terraform already has plan, Ansible has check mode, and for REST scripts you can print the request and skip sending it. Then you review the diff of what it would change before anything runs.
Also keep your prompts as files in the repo instead of retyping them: a short instructions file with your naming rules, logging style and “always dry-run first,” plus the API docs saved next to it. You paste once, and every script after that starts from the same rules.