Something that I’ve found hard to understand due to the lack of documentation is what custom post types’ rewrite rules, rewrite tags, and endpoints actually are. What are they, how can they be used, how should they be used?
This would need to be at an advanced level of custom post type use, beyond the basics. Calling Dr. Post Types…

Also just found http://wordpress.org/extend/plugins/rewrite-rules-inspector/ from Automattic VIP
I actually wrote a post about endpoints a couple of days ago: https://make.wordpress.org/plugins/2012/06/07/rewrite-endpoints-api/
I had a go at the Rewrite Rules couple of times and found it a bit hard to understand. Still no idea what’s going on there
Would be great to understand how core WP rewrite rules are working and how to add your own in the right way.
For Ken; here’s an example of how to use WordPress from another script. It is simple and reliable — https://gist.github.com/3045932