refactor(prompt): Use query system in prompt.yn and add documentation