How to mod Snap

Very detailed document on how to add primitives

do you know how to add a custom category when a block gets imported?

No, unless you mod the source code or you run a certain block that initializes things.

well, this is in a topic about modding snap... so I want to mod the source code.