Copy agdr.mdc to your project's .cursor/rules/ directory:
mkdir -p /path/to/your/project/.cursor/rules
cp agdr.mdc /path/to/your/project/.cursor/rules/agdr.mdcThis uses Cursor's modern MDC rule format with alwaysApply: true, so the AgDR enforcement is active in every conversation.
If your project still uses the legacy .cursorrules format:
cp .cursorrules /path/to/your/project/.cursorrulesOr append to your existing file:
cat .cursorrules >> /path/to/your/project/.cursorrulesWhen Cursor detects a technical decision during coding (choosing a library, picking an architecture pattern, etc.), it will:
- Stop before implementing
- Present options with pros/cons
- Create an AgDR file at
docs/agdr/AgDR-NNNN-slug.md - Then proceed with implementation
You ask Cursor: "Add a state management library to this React app"
Instead of just installing Redux, Cursor will:
- Compare options (Redux, Zustand, Jotai, Context API)
- Create
docs/agdr/AgDR-0001-state-management-library.md - Then install and configure the chosen library