Sorry I was wrong, core AI plugin draft already have this standard, just following it will be fine
with tags: $:/tags/AI/CompletionServer
and \procedure json-prompt()
and \procedure completion-callback()
And there is already a core comment plugin Why is comment plugin not mentioned in the official documentation site , so I think making a AI comment plugin is pretty easy now, based on core plugins.