The more I use AI agents, the more I realise how unclear my communication used to be.

As developers, we know we should write down the context up front. Honestly? I usually skipped it. Then after a few rounds of vague results, I would end up writing it all anyway.

I work with Claude Code, Codex and GitHub Copilot every day, so I see this all the time. Here is what it looks like, what changed, and some examples.

A vague prompt

A typical first message:

Build a landing page for our new feature and make it look professional. 

The agent will usually do a good job with the design. But it might also:

  • write the copy for new visitors, when the page is for existing customers
  • add "Trusted by 10,000 teams" and a few friendly testimonials, all invented
  • restyle the shared header, which breaks every other page

Not one of those is a bug. The agent was simply never told. In my head it was obvious. On the page it did not exist.

The same prompt, with context

Same task, with the context I used to skip:

Build a landing page for our new feature and make it look professional. Context: - Readers are existing customers who already use the product. - The feature is called Reports. The one line pitch is in docs/reports.md. Constraints: - Do not invent numbers, logos or testimonials. If something is missing, ask me. - Reuse the existing header and styles. Do not change shared components. Done when: - It works on a phone and in dark mode. - Every claim on the page is true. Before you start, tell me in a few lines what you understood and what you plan to change. 

It takes two minutes to write. It saves an hour of "no, not like that".

A normal work task, before and after

The same thing happens with everyday tickets. Here is a typical example.

Before:

Add search to the users page. 

After:

Goal: let support staff find a user by name or email on /admin/users. Context: - The list is paginated on the server, about 40k users. - We already use the useDebounce hook in src/hooks. Done when: - Typing filters the results after 300 ms with no page reload. - Searching for an email with capital letters still finds the user. - There is a test for an empty result. Never: - Load all users into the browser. - Change the API response shape. Other apps depend on it. Show me the plan before you write code. 

The second version is not a "better prompt" in some magic sense. It is just a clear ticket. The agent made me write the ticket I should have been writing for people all along.

Write it once: rules

After repeating the same context ten times, you stop repeating it and write it down. Every tool has a place for this:

  • Claude Code reads CLAUDE.md
  • Codex reads AGENTS.md
  • GitHub Copilot reads .github/copilot-instructions.md

A rules file does not need to be clever. Short and boring is the point:

# Rules for this repo  - Use TypeScript strict mode. No `any`. - Never push. Commit locally and tell me what you did. - Never put secrets, client names or personal data in code or commits. - Do not invent numbers or facts. Ask. - Prefer small, reviewable changes over big rewrites. 

That is the "never do this" list that used to live in my head. Written down, the agent reads it every time, and so can any new person who joins the project.

Write it once: skills

Rules say what is always true. Skills describe how to do one specific job. A skill is just a folder with a SKILL.md that the agent loads when the task matches.

Here is a trimmed example, based on the release routine I follow:

--- name: release description: "Use when the user asks to release, publish or push a new version." --- 1. Check that the working tree is clean and the build passes. 2. Bump the version (patch for fixes, minor for features). 3. Add a CHANGELOG entry in plain language. What changed, not how. 4. Commit as `release: X.Y.Z` and tag `vX.Y.Z`. 5. Ask for confirmation before pushing. 6. After pushing, create the GitHub release from the CHANGELOG entry. 

Without it, every release is a slightly different conversation. With it, it is the same six steps every time, for the agent and for me.

Write handoffs for someone who was not in the room

When an orchestrator gives work to another agent, that agent usually starts fresh. It does not see the conversation that came before. It only knows what the handoff says.

So a handoff has to stand on its own:

Task: update the pricing page copy to the new plan names. You do not have the earlier conversation, so here is what matters: - New names: Starter, Team, Enterprise. The old names must not appear anywhere. - Only change text. Do not touch layout or styles. - Prices are unchanged. Report back: the files you changed, and any place you were unsure about. 

If I would not send that message to a contractor who joined five minutes ago, I should not send it to an agent either.

The real lesson goes beyond AI

Whether you are talking to a colleague, a friend or family, say it clearly, even the obvious stuff. Context that lives only in your head does not exist for anyone else.

People are kind. They fill in the gaps for us, guess what we meant, and quietly fix the misunderstanding. Agents do not. They show you exactly what you said. That honesty was uncomfortable at first. Now I think it is the best communication training I have had.

The checklist I use

Before I hand a task to an agent, or a person:

  • Who is this for?
  • What is true that they cannot know?
  • What does done look like?
  • What must never happen?
  • Is there an example of good I can point at?
  • Did we agree on the plan before the work started?

Still learning, still improving.

How about you? Has working with AI changed how you write tickets, messages or docs?