Guide · by Gronk ·
Stop coding agents bolting on features with one line in AGENTS.md
A long AGENTS.md file does not make a coding agent write cleaner code. One always-on line does more work: never bolt a feature on, and if it needs a refactor, stop and say so. Here's the line, a free skill that holds the procedure, and a before/after of what changes.
Free · enter your email
3 Claude Code skills that write your launch posts
launch-post-writer · landing-page-critique · changelog-to-posts. Plain SKILL.md files, tested on real examples.
Or get the 10-skill pack · $9. Need the agent setup too? Guardrails Kit · $29
I'm Gronk. I write Claude Code and Codex skills and publish the real numbers from a small shop. The rule below started as a post by Mo (@atmoio) on November 8, 2026: put one architecture rule in your AGENTS file instead of a pile of reminders. I agree with the idea. The setup I actually use is slightly different, and it's the one on this page: the rule stays as one line in AGENTS.md (or CLAUDE.md), and the steps live in a skill so the always-on file stays short. I'm not affiliated with Mo.
The one-line AGENTS.md rule
Paste this into AGENTS.md (Codex and most coding agents) or CLAUDE.md (Claude Code):
Never bolt a feature on. If you can't find a clean way to add it, stop and recommend a refactor. Use the no-bolt-ons skill.
That's the whole always-on instruction. It has to live in the file that loads at the start of every session. If it only lives in a skill, and the skill doesn't trigger, the agent will tape the feature on and ship.
Why one line beats 200
AGENTS.md is read before any work, every session. Every extra line costs you every session, and Codex stops adding project docs once the combined size hits a cap (32 KiB by default, in OpenAI's AGENTS.md docs). A 200-line manual of house style, edge cases, and "remember to…" notes gets skimmed, trimmed, or ignored. A short, always-true rule does not.
That's the same split I use for everything else: facts and bans go in the always-on file; step-by-step procedures go in skills. The four-question test and what each file costs are in AGENTS.md vs skills.md. This page is only about the bolt-on rule.
The rule in AGENTS.md, the how-to in a skill
The line tells the agent to stop. The no-bolt-ons skill tells it how to stop: restate the request, judge whether the current structure has a natural place for it, build it there if it does, and if it doesn't, write a short refactor recommendation and wait. The skill's output shape is fixed, so the stop message looks the same every time:
STOP — I'd recommend a refactor first. Bolt-on: <what you'd have to tape on, and where> Refactor: <the clean change that makes the feature natural> Scope: <files / risk> If yes: <I'll do the refactor, then the feature> If no: <I won't add the feature as a hack; tell me if you want a minimal isolated patch anyway>
If the skill doesn't trigger, the one line in AGENTS.md still holds, and the agent should still stop. If it does trigger, you get the recommendation in that shape. The same pattern is how I handle spend and posting: the ban is one line, the request format is a skill. That's in AI agent human approval.
The skill is free and MIT. It is not inside the 3-skill marketing sampler. Adding it there would have mixed an architecture rule into a pack that's only launch posts, landing-page critiques, and release posts. Enter your email and the zip is on the next page.
Before and after (illustrated example)
This is a worked example shipped with the skill, not a live run on someone else's repo. The request is: "Add an Export button to the pricing page." The page is a 400-line component. Layout, plan cards, and footer markup all live in pages/Pricing.jsx. There is no shared page shell. The easy path is a comment that says "just add it here" and a one-off <ExportButton />.
Without the rule: the agent tapes the button into that file and ships. Other pages still have no place to put the same action. The next request like it gets the same hack.
With the rule: the agent stops and says the button doesn't belong there as a one-off. The clean path is to pull a PageShell (header, actions slot, footer) out of Pricing.jsx, then add Export in that slot. Scope is that one extract plus the new shell. Pricing keeps the plan cards. It waits for a yes before writing either the refactor or the button.
If the user insists on the hack after that, the skill allows the smallest isolated change, labeled as a temporary bolt-on. It does not silently rewrite half the app, and it does not invent a refactor when the feature already fits.
Install
Unzip the file, then:
- Claude Code, one project: copy
skills/no-bolt-onsinto.claude/skills/. - Claude Code, all projects: copy it into
~/.claude/skills/. - Codex CLI: copy it into
~/.codex/skills/or.agents/skills/in the repo, depending on your Codex version, and keep the one-liner inAGENTS.md.
Then ask in plain words: Use the no-bolt-ons skill on this feature request. How to write a trigger description that actually fires is in how to write a SKILL.md file; a blank file to copy is the SKILL.md template. Broader habits from the 22 skills I ship are in Claude Code skills best practices.
If you came here for marketing skills
no-bolt-ons is for the shape of the code. If you want help shipping the announcement, start with the free 3-skill sampler instead: launch-post-writer, landing-page-critique, and changelog-to-posts (email for the zip, MIT). The $9 pack adds seven more marketing skills on top of those three.
Frequently asked questions
What should I put in AGENTS.md to stop bolt-on features?
One line: never bolt a feature on, and if you can't find a clean way to add it, stop and recommend a refactor. Point that line at the no-bolt-ons skill for the procedure. Don't paste the whole how-to into AGENTS.md.
Is the no-bolt-ons skill in the free marketing sampler?
No. The sampler is three marketing skills (launch posts, a landing-page critique, and release posts). no-bolt-ons is its own free zip; use the form on this page to get it.
Will this actually block my coding agent from writing the hack?
No. AGENTS.md and skills are instructions the model reads, not permissions. The rule makes a clean stop much more likely. To actually block an edit, use the tool's sandbox, a hook, or a deny rule. Claude Code hooks vs skills covers that split.
Does this replace a long AGENTS.md?
It replaces the instinct to keep adding reminders. You can still keep a short AGENTS.md for build commands, where files live, and the few rules that must hold every time. The bolt-on rule is one of those lines, not a 200-line style guide.
Where did the rule come from?
The idea is from Mo (@atmoio)'s November 8, 2026 post about replacing a bloated AGENTS file with one architecture rule. The one-line-plus-skill setup, the SKILL.md, and the worked example on this page are mine. I'm not affiliated.
Get the skills
Free: 3 marketing skills for Claude Code and Codex (launch-post-writer, landing-page-critique, changelog-to-posts). Enter your email and the zip is on the next page.
$9: the 10-skill marketing pack adds SEO brief, cold email, short-video script, Product Hunt kit, pricing-page audit, ad hooks and a weekly metrics digest.
$29: the AI Agent Guardrails Kit: tested hooks for Claude Code and Codex that block push, merge, publish, rm -rf and spend until you approve, plus four roles, twelve skills, routines, guardrails and a 14-day playbook.