Best practice to create our own packages?

We feel interested in creating a packages for RethinkDB. What is the best practice and advice we can take on?