Skip to content

Add Cursor agent instructions and workflow rules#919

Open
northdpole wants to merge 1 commit into
mainfrom
add/cursor-agent-instructions
Open

Add Cursor agent instructions and workflow rules#919
northdpole wants to merge 1 commit into
mainfrom
add/cursor-agent-instructions

Conversation

@northdpole

Copy link
Copy Markdown
Collaborator

Summary

  • Add AGENTS.md as the entry point for AI coding agents working in this repo
  • Track modular .cursor/rules/*.mdc files (replacing a monolithic .cursorrules approach) so the team shares consistent agent behavior
  • Update .gitignore to allow AGENTS.md and .cursor/rules/ while keeping other .cursor/ workspace files ignored

What the rules enforce

Rule Purpose
requirements-gate.mdc Stop and ask when goal, success criteria, context, or constraints are missing
complete-ticket.mdc Same gate for tasks submitted via .md/.txt ticket files
plan-first-workflow.mdc Plan Mode + approval before non-trivial implementation
multi-agent-workflow.mdc Two-phase flow for big changes; builder ≠ judge (subagent review)
verifiable-goals.mdc Non-negotiable make lint, make mypy, make test, CI evidence in handoff
tdd-workflow.mdc Test-first loop for new behavior and importers
never-assume.mdc No guessing, no placeholders, minimal scope
autonomous-workflow.mdc Execute after approval; no unsolicited commits
context-management.mdc /clear, @ refs, stale-context recovery
production-db-ops-safety.mdc Destructive prod DB confirmation phrase
alembic-deploy-guardrail.mdc Pre-deploy migration guardrail

Design notes

  • Rules were audited for contradictions (e.g. trivial fixes skip Plan Mode; @ refs only required when context is ambiguous)
  • Verification commands map to OpenCRE Makefile targets, not generic tsc/eslint-only checks
  • Docs-only change — no application code modified

Test plan

  • Confirm AGENTS.md and .cursor/rules/*.mdc are tracked (not gitignored)
  • Review rule index in AGENTS.md matches committed rule files
  • Open repo in Cursor and verify rules load from .cursor/rules/
  • Spot-check agent behavior: missing requirements → clarifying questions; trivial fix → no forced Plan Mode

Made with Cursor

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Linter diff in the way? Review this PR in Change Stack to focus on meaningful changes and expand context only when needed.

Review Change Stack

Warning

Review limit reached

@northdpole, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 23 minutes and 31 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: f253fe2e-5fa9-4f8e-91be-7e0d3276434f

📥 Commits

Reviewing files that changed from the base of the PR and between e93ce92 and a226135.

📒 Files selected for processing (13)
  • .cursor/rules/alembic-deploy-guardrail.mdc
  • .cursor/rules/autonomous-workflow.mdc
  • .cursor/rules/complete-ticket.mdc
  • .cursor/rules/context-management.mdc
  • .cursor/rules/multi-agent-workflow.mdc
  • .cursor/rules/never-assume.mdc
  • .cursor/rules/plan-first-workflow.mdc
  • .cursor/rules/production-db-ops-safety.mdc
  • .cursor/rules/requirements-gate.mdc
  • .cursor/rules/tdd-workflow.mdc
  • .cursor/rules/verifiable-goals.mdc
  • .gitignore
  • AGENTS.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add/cursor-agent-instructions

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Track AGENTS.md and .cursor/rules so agents follow a consistent
human-plan-then-execute flow: requirements gates, plan approval,
make lint/mypy/test verification, TDD for behavioral changes, builder≠judge
review, and OpenCRE-specific prod DB / Alembic guardrails.

Co-authored-by: Cursor <cursoragent@cursor.com>
@northdpole northdpole force-pushed the add/cursor-agent-instructions branch from a14bc3e to a226135 Compare June 5, 2026 23:27
@northdpole northdpole requested a review from Pa04rth June 5, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant