WEBVTT

00:00:00.080 --> 00:00:04.059
Besides rules and commands,
Cursor has two other features that can be

00:00:04.140 --> 00:00:07.360
quite useful.
We can take a look at them in the Cursor

00:00:07.480 --> 00:00:10.680
settings. Here under Rules, Memories, and

00:00:10.720 --> 00:00:14.460
Commands, we can see
that besides the rules which you

00:00:14.540 --> 00:00:17.840
already saw, we, for example,
also have memories.

00:00:17.880 --> 00:00:21.700
Now,
memories are a special feature offered by

00:00:21.720 --> 00:00:25.320
Cursor which must be turned on
which allows Cursor to

00:00:25.400 --> 00:00:28.690
automatically detect certain preferences
you might

00:00:28.720 --> 00:00:31.400
have, which it then stores as memories.

00:00:31.410 --> 00:00:35.190
So if you ask for something over
and over again, if you have

00:00:35.280 --> 00:00:38.990
specific instructions you repeat in
different chats, chances are that

00:00:39.020 --> 00:00:42.840
Cursor at some point will pick it up
and store it as a memory, which

00:00:42.880 --> 00:00:46.430
then essentially works just like a rule,
but it's a rule

00:00:46.480 --> 00:00:49.320
automatically created by Cursor,
you could say.

00:00:49.360 --> 00:00:51.540
So that's not something you have to
actively do.

00:00:51.580 --> 00:00:54.660
It's just something Cursor will bring up
from time to time.

00:00:54.720 --> 00:00:57.890
Besides that, we also have commands,
though.

00:00:57.900 --> 00:01:01.840
And just like rules,
you can add commands to your project

00:01:01.900 --> 00:01:04.239
overall user across multiple projects.

00:01:04.319 --> 00:01:07.470
Here, I'll add one to the project
and I'll name it

00:01:08.280 --> 00:01:12.060
Smart Docs. The name is up to you,
but I named this

00:01:12.280 --> 00:01:16.000
Smart Docs because this command should
actually

00:01:16.060 --> 00:01:19.710
get Cursor to use the Context7 MCP to

00:01:20.000 --> 00:01:23.640
find documentation for some technology it
might be working with.

00:01:23.700 --> 00:01:27.200
Now a command is still just some natural
language you

00:01:27.220 --> 00:01:30.980
write. So here,
I wrote for the received instruction,

00:01:31.020 --> 00:01:34.560
explore some documentation to learn how to
correctly use a certain feature or

00:01:34.620 --> 00:01:38.400
technology.
And then I have this Use Context7 clause

00:01:38.420 --> 00:01:41.900
should get it to use this Context7 MCP I
installed before.

00:01:42.860 --> 00:01:46.100
With this command saved, I can go

00:01:46.860 --> 00:01:50.820
into agent mode or also in the editor

00:01:50.900 --> 00:01:53.460
and open a new agent there.
It doesn't matter.

00:01:53.560 --> 00:01:57.310
Whenever I have a new instruction,
like for example, in to-do list change the

00:01:57.310 --> 00:02:00.640
animation to just fade in,
fade out with this running list being

00:02:00.680 --> 00:02:04.630
too, instead of typing Use Context7 here,

00:02:04.720 --> 00:02:08.320
I can use a forward slash.
Thereby default is a agent review

00:02:08.479 --> 00:02:12.460
rule provided by Cursor
which can be used for reviewing your code.

00:02:12.560 --> 00:02:15.040
Here I'll use my Smart Docs command.

00:02:15.060 --> 00:02:18.960
So instead of typing Use Context7,
I'll just use Smart Docs Boom and

00:02:19.040 --> 00:02:23.020
that should then get Cursor to use
that MCP to take a look

00:02:23.040 --> 00:02:26.140
at the documentation
and learn how it works.

00:02:26.150 --> 00:02:29.920
And you can set up all kinds of commands,
including commands that do security

00:02:30.040 --> 00:02:33.560
checks or evaluate the code for a certain
quality

00:02:33.620 --> 00:02:36.760
criteria you might have
or whatever you need.

00:02:36.769 --> 00:02:40.620
So that's a nice way of wrapping
instructions you might be repeating over

00:02:40.680 --> 00:02:43.800
and over again into easy-to-use commands.

00:02:43.880 --> 00:02:45.660
Here I'll undo that, though.
