惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
Apple Machine Learning Research
Apple Machine Learning Research
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
腾讯CDC
B
Blog RSS Feed
H
Help Net Security
J
Java Code Geeks
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
博客园_首页
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
博客园 - Franky
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 叶小钗
Martin Fowler
Martin Fowler

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
You Already Know What Your First AI Rule Should Be. You J...
Avery · 2026-06-17 · via DEV Community

Every developer who works with AI regularly has a list of corrections they make.

Not a written list. A mental one. The things they fix after every session. The patterns the AI gets wrong consistently. The naming that never quite matches. The component that always ends up doing too much. The state that keeps ending up in the wrong place.

Those corrections are not random. They are consistent. And consistent corrections are rules that have not been written down yet.

You already know what your first rule should be. You have been communicating it to the AI through corrections for months. You just have not written it down where the AI can follow it before it makes the mistake.

Why the first rule is the hardest

Starting a rule system feels like a big decision.

Where do the rules live? How many do you need? What format should they be in? Do you need a whole system before you start? Do you need to cover every case before the rules are useful?

The answer to all of those questions is the same. You do not need to answer them before you write the first rule.

The first rule does not need to be part of a system. It does not need a format. It does not need to be comprehensive. It just needs to exist somewhere the AI can see it before the session starts.

One rule. The thing you correct most often. Written down. Given to the AI before the next session.

That is the entire starting point.

What the first rule usually is

The first rule is almost always the same category of thing across different developers.

It is the correction that happens in nearly every session. The one that takes two minutes to fix but has been taking two minutes every session for six months. The one that feels too obvious to write down because surely the AI should just know.

It does not just know. It cannot. It has no memory of the last correction. It has no definition of what the standard is. It generates based on what it receives and then you correct what it got wrong.

For most React developers the first rule falls into one of three categories. Component boundaries. State placement. Naming conventions. Not because those are the most important rules. Because those are the decisions the AI gets wrong most consistently when no constraints exist.

Here is what writing that first rule actually looks like:

The first rule for most React developers:
Every component has exactly one responsibility.
If it renders UI and manages state and handles data fetching,
it is three components pretending to be one.
Split before continuing.

One rule. Specific enough to follow. The AI stops making that particular decision on its own.

What happens after the first rule

The first rule does two things.

It reduces the correction it covers. That session, the component is already the right size, or the state is already in the right place, or the naming already follows the convention. The specific correction the rule addressed does not appear.

And it shows you that the system works. That writing a rule down and giving it to the AI actually changes the output. That the problem was never the AI. It was the missing constraint.

That realization is what leads to the second rule. And the third. Not because you planned a system. Because you experienced the result of one rule and wanted more of it.

The system grows from evidence, not from planning.

The rule you keep not writing

Most developers who work with AI regularly have a correction they make so often it has become automatic.

They do it without thinking. They barely notice anymore. It is just part of the workflow.

That correction is a rule. A rule the AI has never been given. A rule that has been communicated through corrections hundreds of times and has never transferred because corrections do not transfer between sessions.

Writing it down takes less time than making the correction one more time.

The prompt does not matter. The rules do.

You do not need a complete system to start. You do not need a format. You do not need to know where this is going.

You need one rule. The one you already know. The one you have been communicating through corrections for months.

Write it down. Give it to the AI before the next session. See what happens.

Everything after that is just doing it again.


Want help identifying what your first rule should be?

I built a free 24 point checklist that helps you find exactly that. The corrections you keep making that are waiting to become rules.

Get the React AI Clean Code Checklist — free

Avery Code React AI Engineering System