Some screenshots of my WIP plugin that exports your gimp image with all the settings ! including the layers, the guides, your gradients, grid and so on.
It started as a svg export plugin but as you can specify a lot of things in an "inkscape" svg (using the inkscape/sodipodi namespace)
I tried to get as much as I can from gimp workbench.
Here are two screenshots showing the file as edited in gimp and what I get in inkscape


What works (at least to some extend)
layer stacking
done:
offset
mask
basic blend modes
same name in gimp and inkscape
to do:
group layers (gimp >= 2.7)
emulate svg 1.2 blend mode when possible
can't be done:
some blend modes that require division (export layer with filter applied then)
path
done :
basic
todo:
use name
text
done :
font-family
color
multi line
line spacing
to test:
rtl/ltr
computation of Y offset
to do:
italics / bold, kerning
gradient
done:
basic
name
to do:
optimization (remove unnecessary stops)
choice to export only custom gradients
can't be done:
gradient with curve (only linear)
guide:
done:
100%
grid:
done:
spacing,offset,foreground color, solid vs dotted
can't be done:
detect if grid is active !!!! (libgimp sucks)
gimp dashed grid
patterns
to do:
everything
Sorry no code to show right now. I need to fix nasty bugs, wait for 3rd party dll to upgrade, clean up code...
I expect to tweak the plugin to make it works with photoshop and illustrator (with maybe some bonuses

I'll post a XCF and the svg translated soon.