Oussama Barkat

Home / Blog / الذكاء الاصطناعي

8 golden rules for working with AI: what I learned after hundreds of hours of building

6 min read
8 golden rules for working with AI: what I learned after hundreds of hours of building

After hundreds of hours building websites, systems and apps with the help of AI, I’ve come to one simple conviction: the problem is rarely the tool; it’s how we manage it.

The same tool gives one person a weak result and another an excellent one. The difference isn’t luck or “the paid plan”, but a set of small habits. Here are 8 rules I follow as a daily working constitution, especially in programming and system building, and they’ve saved me hours of rework and mistakes.

In short

  • Explain in detail, ask for a plan before execution, and let it ask you questions before it starts.
  • Ask for options rather than one solution, use screenshots, and start a new chat for each task.
  • Turn your method into permanent instructions (Skills), and review everything with a critical eye.

1. Explain in detail what you need

AI doesn’t read your mind. When you write “make me a website for my company”, it fills every gap with generic guesses, and you get a generic result. The more precise your description, the closer the first result is to what you actually want, and the fewer rounds of edits you need.

Before any important request, define four things:

  • Inputs: what do you have? (logo, copy, an Excel file, existing code…)
  • Output: what exactly do you want at the end? (a page, a table, a message, a function…)
  • Constraints: what’s off-limits and what’s essential? (language, length, performance, budget, allowed tools)
  • An example: one example of what you want is clearer than a whole paragraph of explanation.

“I want a landing page for a restaurant in Algiers. I have the logo and the menu. I want a single page that’s fast on mobile, in Arabic and French, with a WhatsApp button for bookings. No heavy plugins. The style should look like this site: [link].”

2. Don’t start a big task without a plan

The biggest mistake on large projects is letting AI jump straight into execution. It will write hundreds of lines quickly, then halfway through you discover it understood the structure differently from you, and you have to tear everything down.

The fix: make it draw up the structure and steps first, review them yourself, and don’t let it execute until you approve. Fixing a ten-line plan is far easier than fixing a whole system.

“Before you write any code, propose the project structure and the steps in order. Don’t start executing until I approve the plan.”

3. Let it ask you questions before it executes

This is the simplest rule with the biggest impact. Add this sentence at the end of any important request:

“Ask me about anything unclear before you start.”

You’ll be surprised by the gaps it uncovers: who is the target audience? Do you have a visual identity? What’s the deadline? What happens if the user leaves a field empty? Every question it asks now is a mistake you won’t have to fix later.

And for faster answers, ask it to put its questions as multiple choice, so you answer with a letter instead of writing a paragraph.

4. Ask for options and suggestions, not a single solution

The first answer isn’t necessarily the best; it’s just the most likely. Don’t settle for it. Ask for three different approaches with the pros and cons of each, then pick the one that suits your situation.

“Suggest 3 different ways to build this system, with the pros and cons of each in terms of cost, time and ease of maintenance, then tell me which one you recommend and why.”

And after the task is done, don’t close the chat right away. Ask:

“How can we make this solution faster or more efficient?”

It often suggests improvements you hadn’t thought of: simpler code, an unnecessary step to remove, or an edge case that wasn’t handled.

5. Use screenshots as much as possible

A single screenshot of an error or a reference design replaces 500 words of explanation, and prevents visual misunderstandings. Instead of describing “the button at the top right has an odd colour and doesn’t show well on mobile”, send the image and write one line.

  • For code errors: capture the full error message, with the line where it appears.
  • For design: send a screenshot of a site or app you like, and say: “I want this style, not this content”.
  • For review: capture the result as it appears on your screen, because what you see isn’t always what it imagines.

6. A new chat for every task

This rule wasn’t on my first list, but it’s one of the biggest sources of mistakes we don’t notice. When hundreds of messages pile up in one chat, AI starts mixing things up: it remembers an old decision you cancelled, forgets a constraint you set at the start, or repeats a mistake you already fixed.

The rule is simple: one task = one chat. The website front end in one chat, the database in another, the Instagram campaign in a third. And when you move to a new chat, start it with a short summary of what’s been done and the decisions made.

“Summarise in 10 lines what we’ve done in this chat and the decisions we made, so I can start a new chat with it.”

7. Keep feeding its Skills

If you find yourself explaining the same rules in every chat (your writing style, the company’s identity, how the code is organised, your quote template…), you’re wasting your time. Turn the methods that work and your preferences into permanent instruction files.

Claude, for example, has a Skills feature: an instruction file you write once that’s applied automatically whenever you need it. Other tools have “custom instructions” or “projects” with fixed files. The idea is the same: never explain the same rule twice.

An example from my own work: the quotes I prepare follow a fixed template and always start with multiple-choice questions before execution. I wrote that once in a Skill, and now it’s applied to every new quote without me repeating the explanation. With every new note I update the file, so the quality improves from one project to the next.

8. Review with a critical eye

AI is an extraordinary execution assistant, but it doesn’t replace your technical judgement or your final review. It may write code that works but isn’t secure, a polished text with a wrong fact in it, or a calculation that looks logical but has a wrong number.

  • Test the code yourself, especially edge cases (an empty field, a user without permissions, a weak connection).
  • Check every number, price or legal fact before sending it to a customer.
  • Ask it plainly: “What are the weak points of this solution?”. It will often find its own mistakes when asked.

Heads-up: responsibility towards the customer or the administration stays with you, not with the tool. Whatever you publish or deliver under your name, you must have reviewed and understood.

The bottom line

AI doesn’t replace how you think; it multiplies it. If your way of managing work is clear, it will multiply your clarity. If it’s chaotic, it will multiply the chaos, even faster.

Start with just one rule this week. I recommend the third: add “ask me before you start” to your requests, and watch the difference.

If you haven’t read it yet: 10 tasks in your business you can hand to AI today.

Where does your business stand in the digital world?

A short quiz that measures your business’s digital readiness and gives you the right next step.

Start the quiz →

First step · 3 minutes

How digitally ready is your business?

Take the free quiz →

Free quiz + a personalised PDF guide for your business

Message me on WhatsApp