I run a one-person company. Claude Code agents do most of the operations: outbound sales, content, websites, an API relay, a couple of customer bots. Over a few months they built up 17 rule files, one incident at a time.
Then I did what everyone does. I wrote a big, beautiful prompt.
It was called the "Universal AI Production Mother": 1,400 words, nine reasoning engines (first principles, backward chaining, counterfactuals, systems thinking...), ten dynamic routes, recursive needs trees, a closed verification loop and a friendly menu at the end. It reads like a manifesto.
I pasted it into my agent and asked: should you upgrade yourself with this?
What the agent said
About 80% was already there. "Find the real problem", "search before you build", "verify before claiming done": my rules had all of it, but written as specific behaviors tied to specific failures, and much of it enforced by hooks and scripts instead of prose.
Three parts contradicted rules I set on purpose. The prompt ends with a menu ("pick 1 to 6") and says "all key decisions stay with the user." For a non-technical owner, my standing rule is the opposite: research it, decide, deliver. Stop only for things you can't undo (money, data) or can't produce yourself (a face scan, a signature).
"Nine reasoning engines" adds no behavior. The model already reasons like that. Putting abstract nouns into always-loaded context just dilutes the lines that actually constrain it.
One idea was missing. Section 9 of the prompt says: when something fails, find which layer failed (wrong goal, missing knowledge, wrong architecture, wrong implementation, wrong acceptance criteria) and go back to that layer. My agents tended to patch the layer below instead. That one line went into my rules.
So, as far as my agent was concerned, the 1,400-word god prompt came down to one line.
Why long prompts lose inside agents
A chat is a short conversation with you in it. An agent runs for hours on its own, across dozens of tool calls, with its context filling up. What survives there:
- Short. Every always-loaded line costs attention. Official Claude Code guidance says to keep CLAUDE.md short for the same reason.
- Testable. "Think deeply" can't be checked. "Every 'done' points to a command and its output" can.
- Tied to an incident. Rules with a reason attached generalize. Rules without one get applied literally or ignored.
- Mechanized when repeated. The second time a mistake happens, the fix should be a hook, a script or a test, not another paragraph.
The eight rules that survived
I packaged them as one 83-line CLAUDE.md, modeled on the format that made the Karpathy guidelines file so easy to adopt: each rule gets one line of intent, a few bullets and a one-line test.
- Find the real goal first. What's asked is often a symptom.
- Search before you build. Search for the need, not a tool name you remember.
- Decide. Stop only for what you can't undo or can't produce. Before saying "I'm blocked", search where the answer would be.
- Prove it outside your own head. Planned, called, sent, delivered, read and live are different states.
- When it fails, find the layer.
- The second time, mechanize. And test the enforcement too.
- Nothing stale. Versions, prices and UI paths need a source under 30 days old, with the date.
- Report the result. The first two lines should be enough to act on.
Two of the incidents behind them:
- A posting script printed
SENTfor a post that was over the character limit. The button was greyed out; nothing went out. Rule 4: a post counts only when you read it back from the public page. - A safety hook "passed" 1,918 tool calls without running once. It was registered with a bare
pythonthat didn't resolve to the right interpreter. Rule 6: test the hook itself.
Get it
Repo: https://github.com/Tommyapi/claude-production-mother
-
CLAUDE.mdfor Claude Code,AGENTS.mdfor Codex, a Cursor rule, and a Claude Code plugin:
/plugin marketplace add Tommyapi/claude-production-mother /plugin install production-mother@production-mother - The full 1,400-word "Production Mother" prompt, in English and the Chinese original, is in
prompts/. It's still good, for chat apps where you're there to answer its menu. -
EXAMPLES.mdhas the incident behind every rule.
If you have an agent failure that none of the eight rules would have caught, open an issue with the incident. That's how the list grows.
