There are
docs in kotlin repository, you can start from them (it's little outdated in particular minor details, but main concepts are fine)
For examples of code you can K2
implementations for official JetBrains plugins, most of them are ported to K2 already
If you want to try write your own plugin to play with API I can recommend
this repo as a template with project setup (just update kotlin versions to something more recent, like
1.8.20-dev-57
)
And also join
#compiler channel