Evaluate the complexity of your project to decide how to start work.
See Getting and building CockroachDB from source to to set up your dev environment.
Follow a few code reviews.
See our Go (Golang) coding guidelines to learn about our code style and conventions.
If it's your first time, check check Your first CockroachDB PR.