Stop Chatting With AI. Start Building With It.

A man looks uncertain; yellow text reads, ‘Still not totally sure what I'm applying for.’

I love that little dopamine hit you get when a script finally works.

You take something tedious, make a computer do it, and suddenly you’ve bought a few minutes of your life back. Maybe five minutes every morning. Maybe an hour during the next incident. Either way, it’s one less thing you have to do by hand.

If that’s your idea of fun, AI is going to be your new favorite tool.

But there’s a difference between chatting with AI about a problem and actually building something you can use again.

In the previous post, I suggested treating AI like a stranger you’re interviewing for a job. If you’ve already had some good conversations with that stranger, maybe it’s time to move them on to the next round of interviews.

Let’s give them a practical assignment.

Pick the thing you keep putting off

Every DBA has a list of stuff they should automate. A restore verification. A report that compares yesterday’s backup size & duration with today’s. A script to collect the same diagnostic information every time CPU goes through the roof.

Pick one.

Not the giant platform rewrite. Not the automation that needs permissions in twelve production environments. Pick something small, boring, and well understood.

For this example, let’s use restore verification. We’re not going to just tell an agent to restore a production database. We’re going to ask it to build a reusable script that we can eventually use on ANY database in ANY environment (after we test and trust it). That’ll make it easy to test on a laptop or Dev environment, and then reuse it everywhere.

The specific technology isn’t the point. The workflow is.

Give your interviewee an assignment

If you’re using a coding agent, put it in planning mode. (Each one is different, but type something like /plan or click the + button and select ‘Plan Mode’.) If you’re using a web chat, you can dive right in.

“Write me a script to verify restores” is a request. It’s a crappy request, but it’s a request. I would not have high confidence that I could deliver exactly what you expected given that minimal request.

What kind of database? Where does the backup come from? How do we know the restore succeeded? What happens if the target already exists? What should the script log? How does it report failure?

If you’ve ever written automation yourself, you already know why those questions matter. AI doesn’t make them go away.

Try starting with something like this:

I want to build a repeatable restore-verification tool for a non-production SQL Server test environment.

The goal is to restore a designated test backup, run validation checks, and report a clear pass or fail. It must never overwrite an existing database without explicit approval, and it must not connect to production.

Before writing code, ask me about any missing requirements, failure cases, permissions, cleanup behavior, and how success should be measured. Then propose an implementation plan and a test plan. Wait for my approval before building.

That’s the beginning of a conversation, not the end of one. Ask for feedback. Ask for suggestions. How good were the questions your interviewee asked? Did they think of something you hadn’t? Did you need to explain why a requirement mattered?

You’re evaluating how well you can work together, not how well you can write a single prompt.

No code yet.

Review the plan before the code

An agent might propose a perfectly reasonable plan that misses something important.

Maybe it assumes the backup is local. Maybe it wants to drop a test database without checking who else is using it. Maybe its success criteria stop at “the RESTORE command completed,” which is not necessarily the same as proving your recovery process works.

This is where your experience pays off.

Read the plan like you’d review a teammate’s design. Ask what happens when the disk fills up, the backup is corrupt, the restore times out, or cleanup fails. Ask how you’ll tell a successful run from a partial failure.

You don’t need to predict every edge case up front. You do need to keep asking until you understand what you’re agreeing to build.

And if the plan changes halfway through, that’s fine. Just make sure you understand why.

Start onboarding your new teammate

Once the plan looks good, let the agent start to implement.

If you’re using a coding agent, give it a repository or working directory containing the sample project, its README, and any relevant constraints. Keep the source code and developer documentation together. That makes it easier for both you and the agent to understand the intended behavior next time.

Start with a local or disposable environment and narrowly scoped permissions. Are you really ready to give Admin access in Prod to the new DBA already?

Ask it to build the script, write tests where practical, and document how to run it.

Then look at the diff.

I mean that literally: review the code. Don’t just ask another AI to say whether it looks good and call that a review.

Run it against your test environment after you’ve given it a read. Try to make a failure happen on purpose. Give it a missing backup. Point it at a nonexistent test target. See whether it fails safely and tells you something useful.

If it doesn’t, you found something to discuss. Was the requirement missing, or did the implementation fail to meet it? Those are different problems.

Make this script into a product

A one-off script that works on your laptop isn’t necessarily useful automation.

Think about the next person who has to run it–especially if that someone is future you, six months from now, when you’ve forgotten the nuance and assumptions from today.

Does it have useful logging? Does it return a meaningful result set/exit code? Is it idempotent? Are configuration and credentials handled appropriately? Is there a README that explains prerequisites and limitations?

Ask the agent to help with those things, too.

This is one of the parts I find most exciting about AI-assisted development. The little quality improvements that used to get postponed because of time are suddenly much easier to tackle.

AI doesn’t guarantee better code–writing code faster lets you write lots of bad code, too. AI gives us an opportunity to build more complete tools, eliminate blind spots, etc if we remember to ask the right questions and give the right context.

Review, test, repeat

When the agent gets something wrong, don’t just tell it “fix it.”

Explain what failed, what you expected, and how to reproduce the problem. Ask it to propose a correction. Review the change and rerun the test.

If the correction reveals a rule that applies beyond this script, put that rule in the project documentation. Don’t assume your new teammate will remember this conversation the next time you open a chat.

Documentation is important, but not exciting. Just ask your AI agent to:

Ensure the project README explains why this code doesn’t include a schema-prefixed two-part object name.

For anything non-trivial, ask for an adversarial review: What assumptions are we making? What might fail? What would an experienced DBA object to?

Adversarial? I hate conflict!

An “adversarial review” is AI jargon for a specific type of review. Your AI agent will know what to do if you ask for it. It usually involves your agent asking a “sub-agent” to review its code and give feedback–just like you would ask from your own teammate. It’s necessary to prevent self-review and confirmation biases. Often, your agent can respond to those findings on its own, but sometimes you’ll need to help decide.

ChatGPT editorial review showing grammar and spelling corrections for this article

An example of ChatGPT reviewing my edits to this very blog post.

Treat an adversarial review as another input to your review, not a substitute for it. Two robots agreeing with each other isn’t proof that either one is right. My specific workflow is to create a draft PR, then ask for the adversarial review. I like the visibility I get in reviewing the code diff for adversarial review fixes before I push them.

Eventually, you’ll have a small, repeatable tool. Maybe it saves five minutes. Maybe it prevents a mistake. Maybe it becomes the first building block for something bigger.

Go get that dopamine hit

If you are a regular reader, you probably don’t need me to convince you that automating tedious work is fun.

What you need is a way to get from “I should really write something for that” to a completed utility that’s safe, tested, documented, and ready to use.

AI can make that trip a lot shorter. You still decide where you’re going, and you still own the result.

Your homework: Pick one item from your automation wish list. Interview an agent about the requirements, agree on a plan, and give it a small implementation assignment. How much onboarding did it need? What would you do differently with the next assignment?

Then build something small. Test it. Improve it.

Enjoy the dopamine hit.

Categories: Tools & Automation

Tags: AI, Automation, Professional Development

Join the conversation

Sign in with GitHub to comment.

GitHub subscribes you to discussions you participate in or are mentioned in.
Use Watch → Custom on the comments repository to follow Discussions only;
control email delivery in your GitHub notification settings.