Skip to lesson
Exit
Cursor Product Mastery1 / 2

1 min lesson

The @-symbol toolkit

Walk through each part of "The @-symbol toolkit", then explain what each one does.

Step 1 of 2

The @-symbol toolkit
@files
Pin a specific file the model must consider, e.g. the interface a change must conform to
@folders
Scope the model to a subsystem without naming every file
@docs
Bring in indexed external/library docs so the model uses the real API, not a hallucinated one
@web
Pull live information for things outside the codebase, like a changelog or RFCRequest for Comments. A written design proposal circulated for feedback before anything gets built. Press Enter for the full definition.

Curating these is a learned skill and it's the skill that separates a power user from a tourist.

Garbage context in, garbage code out

The model can only reason over what it can see. Ask it to "add a field to the user model" with no context and it invents a plausible model that doesn't match yours.

Hand it @models/user.ts plus the migration folder and the same prompt produces a change that fits your schema, your naming and your conventions.