
A context-file system for running AI agents inside a product design process. The files below are written out in full for a product, Craftfolio, a website builder for small service businesses.
The agent reads three files before every task. Each file has one job and one owner: claude.md defines how the agent operates on any task, design-rules.md holds the constraints and the reasoning behind them, product-context.md states who the user is and what the current priority is. Splitting them this way means each file changes at its own rate — claude.md rarely, design-rules.md weekly, product-context.md monthly — and a single owner is accountable for keeping each one current.
The checklist connects critique back into the files. When the same critique comes up more than twice, it gets written into design-rules.md with its reasoning attached. The reasoning is what makes the rule transfer: a bare instruction only covers the case it came from, while a rule plus its reason lets the agent apply the constraint to situations the rule never mentioned. Over time the agent's output shifts because the files it reads have accumulated your team's actual decisions.
Run this on every project.
The agent reads the files before generating. Context given in the chat window isn't available to the next task; context in files is.