Back to Research

Cursor Agents Need Team Conventions

A practical Cursor team convention for agents, rules, skills, AGENTS.md, and safer reviewable workflows.

Frühlingsabend, landscape painting by Ludwig Richter (1844).
Rogier MullerJune 26, 20268 min read

Cursor agents are coding assistants in Cursor that can read your project, plan changes, edit files, run commands, and help you review the result. Cursor, Anysphere's AI code editor, works best for teams when cursor agent mode is paired with clear repository conventions, not just bigger prompts.

A Cursor agent is an AI coding workflow inside Cursor that can operate across files with the context and permissions you give it. For engineering teams, the useful question is not only what is cursor agent, but what the agent is allowed to do in this repo, how it should use cursor rules, and when a human must review its work.

This is the same lesson behind the interest in AI-first knowledge bases like OpenKnowledge from Inkeep: teams want their working knowledge to be usable by software, not trapped in someone’s head. In Cursor, the practical version is repo-readable instructions, cursor skills, custom subagents, and review checklists your team can actually maintain. For a broader map of this workflow, see the related training topic.

Decide what the agent may change

Start by defining the agent’s boundary. A good boundary says which files are safe to edit, which commands are allowed, and which changes need a maintainer before they land.

This matters because Cursor agents can be helpful across a whole codebase, but broad context does not equal broad permission. A frontend migration, a database schema change, and an auth refactor should not all have the same operating rules.

A real example: let a cursor agent update React component tests and Storybook stories freely, but require approval before touching auth/, billing/, or migration files. The trap is writing a vague rule like be careful with payments; the agent needs file paths, commands, and review gates.

Cursor background agents raise the same issue in a sharper way. If work can happen away from the immediate editor loop, the repo needs stronger rules about scope, tests, and handoff notes.

Put durable rules where Cursor can see them

Use AGENTS.md for repository operating rules and Cursor project rules for editor-native guidance. Keep the root file short, then add narrower files near the code they govern.

This matters because local context beats a giant universal instruction file. The best team conventions are boring, discoverable, and close to the work.

A practical setup might look like this: root AGENTS.md explains branch policy, test expectations, and forbidden paths; .cursor/rules/api.mdc explains API design rules; apps/web/AGENTS.md explains frontend conventions. The trap is turning rules into a style guide novel that nobody reviews after the first week.

If your team is standardizing Cursor rules now, pair this with Use Cursor Rules as Team Rails. Rules should feel like rails, not like a second backlog.

Package repeatable work as skills and subagents

Use cursor skills for repeatable procedures, and use cursor subagents when a role needs its own focus. A skill is best for a workflow like release notes, migration checks, or security review; a subagent is better for a recurring perspective like test reviewer, docs maintainer, or API design reviewer.

This matters because a prompt is easy to paste and easier to forget. A SKILL.md gives the team one maintained place for instructions, examples, scripts, and checklists.

For example, a pr-review skill can tell Cursor how to inspect diffs, run targeted tests, and leave a short review summary. A custom subagent can then act as the review specialist that uses that skill when a pull request touches risky areas.

The trap is making every preference into a new agent. Start with the three workflows that already waste review time: test updates, API changes, and release notes.

Adopt the convention like code

Put the convention in the repo, review it like code, and assign ownership. The convention should explain where each artifact lives, who may change it, and how reviewers know the agent followed it.

Paste this into a root AGENTS.md, then adapt the paths to your workspace.

# Cursor agent operating convention

## Purpose
This repo uses Cursor agents to speed up small, reviewable engineering tasks.
Agents may propose changes, edit files, run approved commands, and write handoff notes.
Humans own product judgment, security decisions, production risk, and final merge approval.

## Allowed by default
- Read repository files and existing docs.
- Edit files inside the task scope named in the issue or prompt.
- Add or update tests next to changed code.
- Run targeted checks listed below.
- Leave a short handoff note with changed files, commands run, and open risks.

## Ask first
- Database migrations or destructive data changes.
- Auth, billing, secrets, permissions, or compliance code.
- Dependency upgrades outside the task scope.
- Broad refactors that touch more than 8 files.
- New external services or MCP servers.

## Required checks
- Run the narrowest relevant test first.
- Run lint or typecheck when the changed package provides it.
- If a check cannot run locally, say why in the handoff note.
- Never claim a test passed unless the command was actually run.

## Cursor artifacts
- Repository rules live in AGENTS.md and nested AGENTS.md files.
- Cursor project rules live in .cursor/rules/*.mdc.
- Reusable workflows live as cursor skills with SKILL.md.
- Custom subagent notes live in .cursor/subagents/ when enabled for the workspace.

## Review checklist
- Is the changed scope named and small enough to review?
- Did the agent follow the closest AGENTS.md and Cursor rule?
- Are risky paths called out instead of hidden in the diff?
- Are commands and results listed in the handoff note?
- Would a new teammate understand why the change is safe?

The adoption path is simple. One engineer proposes the convention in a pull request, the code owners for the riskiest areas review it, and the team keeps it in AGENTS.md plus the closest nested files.

The enforcement rule is even simpler: reviewers should ask for changes when an agent-authored diff ignores the convention. If the rule is not worth enforcing in review, it is not worth putting in the repo.

Keep the workflow small enough to trust

A healthy Cursor workflow is not maximum autonomy. It is a short loop: state the task, let the agent work inside a boundary, run checks, review the diff, and improve the convention when something was unclear.

This matters for Cursor training and Cursor workshop settings because teams learn faster from a narrow, repeatable workflow than from a demo that tries to automate everything. The first useful win is often a reviewable IDE workflow for test repairs or docs updates.

The trap is measuring success by how much the agent touched. Measure it by how little the reviewer had to reconstruct.

Common questions

  • What is a Cursor agent?

    A Cursor agent is an AI coding assistant inside Cursor that can use project context to plan, edit files, run commands, and help review changes. The team-level caveat is that the agent only becomes reliable when its permissions, rules, and expected handoff notes are written down in repo artifacts like AGENTS.md and .cursor/rules/*.mdc.

  • Are Cursor agents the same as cursor subagents?

    No, Cursor agents are the broader coding workflows, while cursor subagents are specialized agent roles you can use for narrower jobs when your workspace supports them. A useful convention is to create a subagent only when the role has a distinct checklist, such as API reviewer, test reviewer, or release-note writer.

  • Where should team rules live: AGENTS.md or Cursor rules?

    Use both, but keep their jobs separate. Put durable repository behavior in AGENTS.md, and put Cursor-specific guidance in project rules such as .cursor/rules/*.mdc; nested files should win when a package has stricter constraints than the root.

  • When should we create a Cursor skill instead of another prompt?

    Create a Cursor skill when the workflow repeats and has steps worth maintaining. If the task needs examples, scripts, templates, or a review checklist, a SKILL.md is better than a pasted prompt because teammates can inspect, improve, and version it with the repo.

  • Can Cursor background agents run without extra process?

    They can run with the permissions you give them, but teams should add extra process before relying on background work. At minimum, require a small scope, approved commands, a written handoff note, and a human review gate for risky paths like auth, billing, migrations, and secrets.

Further reading

Start with one workflow

Pick one recurring task this week, write the agent boundary in AGENTS.md, and review the next agent-authored diff against it. After that, turn the checklist into a Cursor skill only if the workflow repeats.

One methodology lens

One useful way to read this through our methodology is the Plan step: delegate first-pass decomposition and dependency mapping, review the sequencing and assumptions, and keep ownership of scope and priorities. If that split is still fuzzy, the workflow usually is too.

Related training topics

Related research

Continue through the research archive

Ready to start?

Transform how your team builds software.

Get in touch