[KongchangAI]
· 2 min read· 1,315 words

4 Essential Skills: Stop AI Agents from Recklessly Changing Your Code

4 Essential Skills: Stop AI Agents from Recklessly Changing Your Code

Four skills constrain AI coding assistants: restate goals, use modern frontend, assess impact scope, and cross-review with multiple Agents.

The article addresses the common problem of AI coding assistants claiming completion without trustworthiness, introducing a constraint system of four skills. In Your Own Words has the Agent restate the goal before starting, exposing misunderstandings early; Modern Web Guidance from the Chrome team steers models toward Dialog and Popover APIs and flags replaceable legacy patterns; Blast Radius assesses change scope and mandates 3 real tests; Interrogate has multiple Agents attack each other's code, requiring failing tests for bugs. The author notes these skills consume context and time, so reserve them for serious changes. Core principle: when the Agent says it's done, ask for evidence first.

AI coding assistants say they're done — do you dare believe them? The blogger's stance is clear: without evidence, don't trust a word. The problem lies in behavioral patterns — models may spend 20 minutes writing a pile of features you never asked for, or stuff the frontend with libraries you don't need.

The original video presents a constraint system made up of four skills, each addressing one of four problems: "goal alignment," "outdated frontend patterns," "uncontrolled blast radius of changes," and "untrustworthy self-verification." According to the blogger, these skills work in both Claude Code and Cursor, and he personally uses them extensively in Google Antigravity.

In Your Own Words skill description

First, Have the Agent Restate the Goal: In Your Own Words

The first skill is called In Your Own Words — it takes the form of a skill.md file that you simply copy into your project. It acts before any work begins: the Agent first explains the task goal in its own words, you read that restatement in the terminal, and you correct any deviation on the spot.

The value of this design is that it exposes "misunderstanding" at the lowest-cost stage. Discovering that you're headed in the wrong direction only after dozens of lines of code have been written means rework costs at a completely different order of magnitude.

skill.md and the Agent Skill mechanism

skill.md is a lightweight capability extension introduced by AI coding tools like Claude Code: a Markdown file that describes a workflow or constraint in natural language, which the Agent reads and follows when needed. It differs from traditional plugins — no compilation, no interface contracts; it's essentially "a manual written for the model to read," so it can be copied into a project with a single command and version-controlled alongside the repo. The advantage of this format is an extremely low barrier to entry and high readability; the cost is that it depends on the model's instruction-following ability, making it less stable than hardcoded tool calls. Understanding this explains why three of the four skills in this article are "copy-and-use" skill.md files, while only Modern Web Guidance is distributed via a package manager — the latter typically ships with actual scripts, rule libraries, or MCP services, not just a prompt file.

Stop Writing Frontend Code Like It's Five Years Ago: Modern Web Guidance

The second is Modern Web Guidance, launched by the Google Chrome team. The blogger's criticism is blunt: the way models write frontend code is stuck five years in the past, and that approach is now clearly outdated.

By installing MPX Modern Web Guidance, the Agent shifts to using modern browser capabilities like the Dialog element and the Popover API. A companion Legacy Scan identifies which old code can be replaced with features from the Futures Baseline.

Installing MPX Modern Web Guidance

Of the four skills, only Modern Web Guidance is distributed via a package manager (MPM); the other three are copy-and-use with a single command.

Baseline and the Dialog / Popover API

Baseline is a feature compatibility standard launched by Google together with several browser vendors in 2023, labeling how available a given Web capability is across major browsers with tiers like "Newly available" and "Widely available," helping developers judge whether they can use it with confidence. The Dialog element (<dialog>) provides native modal and non-modal dialogs with built-in focus management, Esc-to-close, and backdrop — no more hand-writing div overlays and focus traps; the Popover API lets any element mount to the top layer via the popover attribute, enabling dropdowns, tooltips, and other interactions while naturally avoiding z-index and overflow clipping issues. Both capabilities have now entered Baseline's widely-available range, yet much of the training data for many models dates back to an era of relying on jQuery plugins or self-built overlay components — this is the technical root of the "five years behind" comment in the article.

What Breaks When You Change 10 Lines: Blast Radius

The third skill is called Blast Radius, and the name says it all: assess the explosion radius of a change. It actively searches for what else beyond a given div might be affected — a change that looks like just 10 lines can easily break another file.

Its requirements are strict: it must run 3 real tests as verification, rather than relying on a gut feeling that "it should be fine."

Blast Radius scope analysis

Blast radius and impact analysis

"Blast radius" borrows a concept from failure engineering, referring to the maximum scope a change might affect. In large codebases, the real risk is often not the lines you changed wrong, but how many places call that code and how many implicit contracts it depends on — a slight tweak to a function signature can cascade into breaking several modules. Traditional approaches rely on static analysis tools or test coverage reports, whereas Blast Radius's approach is to have the Agent actively perform semantic searches along call chains and reference relationships, listing "files that might be affected" and then verifying each one. Requiring 3 real tests rather than verbal judgment effectively turns "impact assessment" from subjective experience into an executable chain of evidence — consistent with the article's central theme of "trust only evidence."

Make Agents Attack Each Other: Interrogate

The fourth skill, which the blogger calls a game changer, is Interrogate. It targets a fundamental flaw: a single Agent can easily convince itself that the code is correct.

Interrogate's approach is to have multiple Agents attack each other's code, and only bugs backed by failing tests can "survive" — in other words, vulnerabilities must be proven with reproducible tests, not self-declaration.

Multi-agent cross-review mechanism

Self-confirmation bias and multi-agent confrontation

Self-confirmation bias is particularly pronounced in LLMs: when a model is asked to self-check code it just generated, it tends to restate its own assumptions and conclude that "it looks fine," because evaluation and generation share the same context and reasoning path. Multi-agent confrontation is a common paradigm for addressing this — separating the generator from the reviewer into different contexts or even different models, with the reviewer's goal being to find counterexamples. Requiring that "bugs must come with failing tests" further anchors the debate in reproducible facts: a test that reliably fails before the fix and passes after it is hard evidence that can't be talked around. This follows in the same lineage as red-team testing and mutation testing in software engineering, just with Agents as the executors.

Usage Advice: Don't Use It to Change Colors

The blogger ends with a pragmatic reminder: all four skills consume context and time. There's no need to enable them for small changes like tweaking a color — they should be reserved for genuinely serious code changes or frontend refactors.

The final piece of advice is worth sticking on your monitor — when the Agent says "I'm done," ask for evidence first.

One-line Summary

Four skills to constrain AI coding assistants: restate the goal first, use modern frontend patterns, assess change blast radius, and have multiple Agents cross-review.

Paragraph Summary

The article addresses the common problem of AI coding assistants claiming completion without trustworthiness, introducing a constraint system built from four skills. In Your Own Words requires the Agent to restate the goal in its own words before starting, exposing misunderstandings at the lowest-rework-cost stage; Modern Web Guidance, launched by the Chrome team, guides models to use modern capabilities like the Dialog element and Popover API, and uses Legacy Scan to identify replaceable old patterns; Blast Radius assesses the scope of a change and mandates 3 real tests; Interrogate has multiple Agents attack each other's code, with bugs only counting if backed by failing tests. The author notes these skills consume context and time, making them suitable only for serious changes. The core principle: when the Agent says it's done, ask for evidence first.

#AI coding assistant#Claude Code skills#skill.md#Modern Web Guidance#blast radius#multi-agent review#Cursor#AI Agent constraints
Share:

Related articles