refactor k to generate posters from compiled definitions

**do not review yet**