AI Learning Hub › Learn AI › Self-Paced Courses › Cursor: Plan, Build, Debug, and Review › Give the Project Standing Instructions

Module 8 ยท Beginner to intermediate

Give the Project Standing Instructions

Write the correction once, in a file the project keeps, instead of retyping it into every request.

By the end

  • Write project instructions that apply to every request
  • Check whether an instruction actually held
  • Know where Cursor’s other customization surfaces live

Start from the project as Module 7 left it, with the evening filter working. If you would rather begin fresh, copy in fallback/04-feature-fixed or unzip the download again — this module does not depend on the filter.

By now you have probably typed the same caveat twice. Keep it dependency-free. Do not change the colors. Those belong in the project rather than in your typing.

AGENTS.md

A file called AGENTS.md in the project root holds instructions the agent reads on every request. It is ordinary Markdown with no special syntax, and because it sits in the project it travels with it — to a colleague, to another machine, and to other tools that read the same convention.

Exercise. Create AGENTS.md in the practice project with this in it:

# Project instructions

- Keep this project dependency-free. Do not add libraries or build steps.
- Preserve the existing color palette. Use the CSS custom properties
  defined at the top of styles.css rather than new literal colors.
- Keep every interactive control reachable by keyboard.

Those three constraints are real for this project, and the capstone depends on all of them.

Exercise: find out whether it held

Writing an instruction and assuming it worked is the same mistake as accepting a diff unread. Start a new chat, switch to Agent, and ask for something that could plausibly violate all three:

Prompt to try

Add a "Save for later" button to each resource card.

Then check the diff against the three constraints:

Record which constraints held. Then undo the change, either with git checkout -- . or by unzipping the download again, because the capstone asks for this same feature and you will want to do it properly.

An instruction in AGENTS.md is guidance to a model rather than a rule the system enforces. Cursor says as much about its own team-level rules: AI guidance should not be your only control. It raises the odds considerably, and you still check.

When instructions disagree

Cursor reads instructions from several places. If your team has rules, those apply first, then the project’s, then your personal preferences; all of them are combined, with earlier sources winning a direct conflict. You can also put an AGENTS.md in a subfolder, and it applies to files in that part of the project, combined with the one above it.

For a project this size, one file at the root is all you need. The ordering is worth knowing only for the day an instruction seems to be ignored.

The rest of the customization surface

Cursor gathers its extension mechanisms into one Customize area. You do not need any of them for this course, and knowing what they are stops the page from being a mystery.

Rules

The structured alternative to AGENTS.md, stored under .cursor/rules with metadata controlling when each one applies. Use it when plain Markdown stops being enough.

Skills

Packaged know-how the agent can load when relevant. The hub’s Skills material covers the idea in general.

MCP

Connections to outside tools and data. MCP Without the Mystery teaches the protocol properly. Two Cursor-specific notes: connected tools appear alongside the built-in ones, and an MCP server reaches files through its own path rather than Cursor’s, so .cursorignore does not constrain it.

Plugins, Commands, Hooks, Subagents

Bundles, reusable prompts invoked with /, scripts that run at points in the agent’s work, and helpers the agent delegates to. Orientation only here.

Installing things from a marketplace is a trust decision of the same kind as installing an extension. A review process is one signal among several, and this course asks you to install nothing.

Before the next module

  • AGENTS.md exists in the project with the three constraints
  • You have tested whether they held, and know which did
  • The project is back to a clean state for the capstone