For setup instructions please see the fabric wiki page that relates to the IDE that you are using.
This is an example mod repo for Fabric Shield Lib. To quickly create a mod that uses it you can just use this template.
There is also a tutorial available at the Fabric Wiki.
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.