Getting better answers starts with asking better questions
Prompt engineering sounds like a developer concern. It isn't. Every time you type a question into Claude, ChatGPT, or any AI tool, you're writing a prompt — and the quality of what you get back is directly tied to the quality of what you put in.
For a SysAdmin, this matters immediately. A vague prompt gets a generic answer. A well-crafted prompt gets a production-ready command, a script that matches your conventions, or an explanation pitched at exactly the right level. The difference between the two is craft — and craft improves with practice and reflection.
This page documents what works, drawn from real daily use over 19 days of intensive AI collaboration on this very project. These aren't theoretical tips. They're patterns that have been tested, refined, and tested again.
The single biggest improvement most people can make is providing context they assume the AI already has. It doesn't. Every conversation starts fresh. The AI has no idea what distro you're running, what your shop's conventions are, or what you tried before it failed.
The strong version tells the AI your role, your platform, your target path, your sort preference, and your output format — all in one sentence. The result is a command you can run immediately, not a generic answer you have to adapt.
Telling the AI what you've already tried prevents it from giving you the obvious first step you already took. It also signals that you're past the basics, which shifts the response to a more advanced level.
AI will produce whatever format seems natural unless you tell it otherwise. For SysAdmin work, you usually want one of a small number of specific formats: a command, a script, an explanation, or a table. Say which one.
Every requirement you leave out is a decision the AI makes for you — and it may not match your shop's standards. The more specific the brief, the less editing the output needs.
You can tell the AI to adopt a specific role or perspective. This isn't a magic trick — it works because it shifts the model's frame of reference toward the kind of answers that role would give.
Set a role like this at the start of a long session and every subsequent answer will be calibrated to that context. You don't have to repeat your platform, experience level, or caution preferences in every follow-up.
The biggest mistake newcomers make is treating AI like a search engine — one query, one answer, done. The real workflow is iterative. The first response is a starting point, not a final answer.
Within a single conversation, the AI remembers everything said earlier. This is a feature — use it deliberately.
At the start of a working session, give the AI a briefing before asking your first real question:
Every answer in that session will now be informed by that context without you having to repeat it.
For multi-session projects — like building this site — establish a session restart protocol. At the end of each session, identify the key files that capture current state. At the start of the next session, drop those files so the AI can restore context quickly.
This project uses a tar of 3-5 key files: the current diary entry, the to-do list, and one or two reference files. Context restoration takes under two minutes.
2026-03-16-PROJECT-DIARY.html and 2DO-LIST-DAY19.html
tell the AI exactly what they are before it reads a single line.
AI is confidently wrong sometimes. For SysAdmin work, the stakes of running a bad command can be high. Build verification habits into your workflow.
--dry-run or -n flags where availablerm -rf, dd, partition changes, firewall rules —
always read twice, run once.
| Goal | Pattern |
|---|---|
| Get a ready-to-run command | "Give me a single [tool] command, no explanation, that does X on RHEL 9" |
| Understand a command | "Explain this command line by line: [paste command]" |
| Generate a script | "Write a bash script that does X. Requirements: [bulleted list]" |
| Debug a problem | "X is failing. I've already tried Y and Z. Error output: [paste]. What next?" |
| Refine an answer | "That's close but [specific issue]. Update it to [specific change]." |
| Verify before running | "Before I run this — what does [specific part] do and are there any risks?" |
| Set session context | "I'm a SysAdmin on [platform]. Today I'm working on [task]. Keep answers concise." |
| Write documentation | "Read this script and write a man-page style description of what it does and all its flags." |
Prompting is a skill that improves faster than almost any other skill I've developed in 40 years of computing — because the feedback loop is immediate. You write a prompt, you see the result, you adjust. Within a single session you can iterate a dozen times and clearly feel yourself getting better.
The nuances keep revealing themselves. Early on I was too vague — getting generic answers to generic questions. Then I over-specified — writing prompts so long the important parts got buried. The current balance is: enough context to be unambiguous, no more. One sentence of background, one clear request, specific format requirements if they matter.
The iterative loop took the longest to internalize. Treating the first answer as a draft — not a result — changed everything. Now I never expect perfection on the first try and I'm rarely disappointed by the second or third.
The session opener habit came from frustration: starting a new chat and having to re-establish context from scratch. Two minutes of front-loaded context saves ten minutes of corrective prompting later in the session.