Using Cursor Commands to Onboard a New Developer to a Repository

Now that cursor has added the concept of custom commands, we can put stuff like this in our repository:

.cursor/commands/get-started.md:

# Initialize Dev Environment for developer

- greet the developer who's about to use this project, and ask if it's ok to setup the new dev environment for them (detail what you'll do)
if they say ok, then:

- read the readme.md file in the root
- install mise tool (if it's not already installed)
- then run "mise install"
- use mise.toml to find any new commands you can use if you need to, and guide the devloper what they can do next to continue working with this repo

and ask developers to use '/get-started' when they first clone a repository locally.

Here's the output I get when I run /get-started in my repo chat:

In this case, we're using mise-en-place tool to standardize how all our repos are onboarded by developers, but with cursor custom commands - we can easily build an interactive wizrd that is very smart that helps developers onboard into a new repo. and the prompt can be as complicated as we want, if the project is complex.

As the script finishes, we get this:

We can also use it to standardize other tools like The Auditor to set up security scanning tools or anything else. just with a prompt.

I love this type of usability upgrade for developers.