Food for thought: better AI coding starts with shared understanding
A food-for-thought piece on Matt Pocock's AI coding principles, shared understanding and SCALED: a practical mnemonic for developers working with AI.


I agree with Matt Pocock's argument that software fundamentals matter more than ever when we use AI to code. The part I keep coming back to is the communication between the person giving the instructions and the AI interpreting them.[1]
We can have a clear idea in our own head and still leave a lot unsaid. The agent then fills in the gaps, produces something plausible and presents it as the answer. It may have followed the words we gave it without understanding the result we wanted.
For me, that communication layer is the first thing to address. Before asking an agent to build something, we should establish whether we actually share an understanding of it. I would recommend that as a foundational principle to anyone using AI for coding.
It doesn't mean every bug is a communication problem. An agent can understand the requirement and still implement it incorrectly. That is why I like the way Matt connects understanding with shared terminology, feedback and software design. Together, those ideas give developers a practical framework for working with AI, rather than relying on a better-worded prompt alone.[1]
SCALED: a way to remember the approach
To make the sequence easier to remember, I would frame it as SCALED:
- S — Shared understanding: agree what is being built before creating a plan.
- C — Common language: give important terms agreed meanings.
- A — Active feedback: check small changes as the work progresses.
- L — Low-complexity interfaces: put useful functionality behind clear boundaries.
- E — Explicit delegation: decide what the agent can implement and what needs your attention.
- D — Design awareness: keep the whole application in view as it changes.
SCALED is my own mnemonic for the sequence of recommendations in Matt's talk, not an acronym he uses or a framework he has endorsed. The underlying ideas are established engineering principles; Matt's contribution is how he applies them to coding agents and turns them into repeatable skills.[1][2]
Shared understanding comes before the plan
Matt draws on Frederick P. Brooks's design concept: the shared understanding of what is being built. A plan can record that understanding, but producing a plan doesn't establish it.[1]
His /grill-me skill asks the agent to interview the person giving the instructions. The prompt shown at around 6:16 begins:
“Interview me relentlessly about every aspect of this plan until we reach a shared understanding.”[1]
I like this because it changes the interaction. Instead of asking the AI to immediately produce an answer, we ask it to expose what we haven't explained. It works through the decisions and their dependencies before turning the discussion into requirements or tasks.[1]
For example, “build a login page” leaves a lot open. We need to agree how people authenticate, what happens when access fails and what a successful login allows them to do. The agent shouldn't have to invent those decisions.
The questioning needs to suit the task. A small change may only need a few clarifications. The principle is to resolve important assumptions before they become code.
Common language reduces ambiguity
A shared understanding needs words that mean the same thing to both sides. Matt applies Eric Evans's ubiquitous language, from domain-driven design: terminology based on the domain model and used consistently in discussions and code. The domain model describes the concepts and rules the application represents.[1]
Put simply, we should agree what our terms mean. If we ask an agent to “archive” something, does that mean hide it, move it, make it read-only or delete it after a retention period?
Matt's /ubiquitous-language skill creates a terminology reference from the codebase. I would use that as a starting point, then check the definitions rather than assume the existing naming is correct.[1]
A short glossary of important terms can help us give clearer instructions and recognise when the agent has misunderstood. Its purpose is to improve the shared understanding, not just shorten the conversation.
Active feedback keeps the work manageable
Once the requirement is understood, the agent still needs evidence that its implementation works. Matt recommends feedback through static types, browser inspection and automated tests. These checks catch different kinds of problems.[1]
He also recommends test-driven development (TDD): write a failing test for the behaviour we need, implement enough to pass it, then improve the code while keeping the test passing. This is the red-green-refactor cycle.[1][2]
I agree with the discipline of checking one behaviour before adding more. It is easier to understand a failure after a small change than after the agent has rewritten several parts of the application.
Tests need judgement too. We have to choose what behaviour matters, how much of the system to exercise and what to mock, meaning replace with a controlled substitute during a test. A passing test doesn't tell us much if it checks the wrong thing or hides an integration problem.[1]
The practical recommendation is to give the agent feedback while it works, rather than wait until the end and ask whether everything is correct.
Low-complexity interfaces make the code easier to work with
Matt draws on John Ousterhout's deep modules: substantial functionality behind a comparatively simple interface. An interface is the contract through which other code uses that functionality. A shallow module hides relatively little while still asking its callers to deal with complexity.[1]
For example, a caller should be able to request an exported report without needing to manage every step of formatting and file creation. The export component can handle those details, while clearly defining its inputs, outputs and errors.
That boundary also gives us something meaningful to test. Matt's /improve-codebase-architecture skill looks for opportunities to organise related behaviour this way.[1]
I wouldn't turn this into a rule about file size or putting everything in one place. The useful question is whether the structure makes the behaviour easier for a developer and an agent to understand, test and change.
Explicit delegation keeps the decisions with the developer
At around 16:27, Matt's slide gives this recommendation:
“Design the interface, delegate the implementation.”[1]
He describes grey boxes: modules whose purpose and external behaviour we understand without continually reviewing every internal detail. Clear boundaries can help a person keep up with an agent's output.[1]
I agree, provided we make the limits explicit. Matt qualifies this for less critical code and warns about areas such as finance. I would also be cautious with authentication, sensitive data and destructive actions.[1]
Delegation should mean the agent works within decisions we understand. It shouldn't mean accepting code we cannot explain simply because the tests are green.
Design awareness keeps individual changes in context
Matt's module awareness means knowing the application's parts and including them in planning. A change should identify which modules and interfaces it affects.[1]
This connects with tactical and strategic programming, discussed by Ousterhout. Tactical work gets the immediate feature working. Strategic work considers the design and how manageable future changes will be. Matt also draws on Kent Beck's advice to keep investing in system design.[1]
That matters because complexity makes software hard to understand and modify. Software entropy, discussed in The Pragmatic Programmer, describes the deterioration that can accumulate when individual changes receive attention but the overall design doesn't.[1]
At around 4:00, Matt's slide puts his concern plainly:
“Bad code is the most expensive it's ever been.”[1]
I take that as a warning about losing the benefit of faster implementation. Generating code quickly is less useful if each subsequent change becomes harder to understand.
A foundation for working with AI
What I find useful about this approach is that it starts with the relationship between the developer and the agent, then carries that understanding through the work.
SCALED gives us a reminder: establish the understanding, agree the language, use feedback, define clear interfaces, delegate deliberately and keep the design in view. It can help developers get more useful results from AI without treating speed of generation as proof of quality.
For me, the starting point remains communication. We should make it easier for the agent to understand what we mean, and easier for us to check what it has understood. That is a principle I would recommend before anyone asks AI to start writing the code.
Sources