The explanation I have is that it is so close to pseudocode that it only needs to know just a tiny bit about Nim peculiarities (not too many) to do a good job (plus static types and compiler help a lot).
Planetis also provides commercial skills experimentally verified to work with Claude/Codex/etc models for a small monthly fee!