So with that Spec.md file set up, I wanna continue.
And as a next step, I wanna leverage the fact that I'm a
developer and I know things about setting up projects
and writing code. Specifically, I wanna do certain things
I know need to be done where I don't wanna rely on the
AI to do it right if I know how to do it right.
Specifically, that means I wanna install some packages,
I wanna install the betterauth package, which I'll do with bun add
here. I'll also install the sod package, which is a package that will
help me with validating user input, and for that
Tiptap rich text editor which I wanna use, I also
wanna follow the official instructions on installing the relevant
packages. So I'll copy these too and also install those
into that project. By doing that manually, I ensure that
I'm definitely installing the right packages with their latest
versions because whilst AI can also install
packages, sometimes in my experience, it does that by editing
this dependency management file, this package.json file in
JavaScript's case, and by then inserting some old
packaged versions in there, which I, of course, don't want.
That's why I'd rather do it myself because I know which packages I'll need
anyways. Now, there also is one other package I need to install
here and that's a development-only dependency, the bun-types
package, which will avoid certain typescript errors
APIs. With that out of the way, I'll open Cloud
Code again and I'll start a new session because I wanna get rid of
all the old context that was in there.
And in that new session, there's one thing I also wanna
do whenever I start working on a new project with Cloud Code, and
new does not necessarily mean new app.
It can be an existing app, an existing code base, it just means a
project where I haven't used Cloud Code before.
I wanna run the slash init command in there because slash
init does one important thing. It gets Cloud Code to
thoroughly analyze this code base so that also
includes the dependencies that are installed, which
them manually, and it takes a look at all the different
there to understand this project and
understand what we're doing in there.
It should also detect this Spec.md file, for
example, and then based on all that information it
gathered, and here it's asking me for some
to explore the content of a folder, based on all
that information it gathered, it will create a
Cloud.md file. And that is a
very important file which was created here, so let's take a
closer look.