When I get a new variety, I will do test-roasts, taking samples at defined timepoints, to see if they have a sweet spot, when it is, and what it's like. I grind them with sugar to a coarse powder and then I can do blending experiments to decide on a recipe.
Once you have your beans roasted, it's time to separate them from their shells. The shell is fibrous and has relatively little chocolate flavor, so it will weaken the finished product unless removed.
The large-scale way to do that is to crack the beans into a mixture of bean pieces (if you buy "cacao nibs" that's what these are) and shell pieces. Then they are separated by density using moving air, an ancient agricultural practice called "winnowing," although now performed with complicated fan-driven machinery. The shell pieces can be composted or used for mulch. They also, since they have a faint chocolate flavor/scent and no fat content, get used to flavor things like chocolate beer or chocolate tea.
(5/9)