How to create custom shader chunks

Appreciate your answer. That definitely clears things up. Seems like it would be a great feature. That repo no longer works with current versions of Three.js?