Package gen is a command that can be used to bootstrap a new builtin package directory. The directory has to reside in cuelang.org/go/pkg.
To bootstrap a directory, run this command from within that direcory. After that directory's files can be regenerated with go generate.
Be sure to also update an entry in pkg/pkg.go, if so desired.