There are a number of programs which come with XKB for management and debugging purposes. These all have perfectly adequate man pages, or have a sensible -help option. I'll just mention a few things that might be useful here.
What is also interesting about this program is that it can also be used, using the -xkb option, to produce a source file for the current XKB configuration. For example, command xkbcomp :0.0 -xkb will produce a file called server-0_0.xkb which contains the complete configuration source for server 0.0.
Doug Palmer 2004-10-11