This course shows you how to use Rules to keep code clean when you work with code agents like Claude Code. You learn how Rules guide the agent and help you avoid repeat mistakes.
How Rules Work
Claude Code uses a Rules folder. Each rule is a YAML file with front matter. You can set when a rule applies. You can target file types, folders, or parts of your app. This gives you tight control over agent behavior.
Other agents may not have a Rules folder. You can still use the same ideas. You can keep your rules as Markdown files and load them when you need them.
Why Rules Matter
Rules help you turn past work into clear steps. You can save fixes, patterns, and design choices. The agent follows these steps when it writes or updates code. This keeps your project stable and easy to maintain.
This works well for teams. It also helps when you switch between many projects.
Start Rules
The course covers project start rules. These rules shape your stack and coding style from the start. They help you avoid early mistakes. They also limit tools or patterns that can cause issues later.
What You Will Learn
You learn how to turn your coding habits into clear written rules. You also learn how to use these rules with agents. This makes code output steady, predictable, and easy to review.