XML标记提示结构指南
来自 Wikiprompt,自由的提示词百科全书
XML标记提示结构指南 一份关于使用XML标签构建提示词的简明指南,涵盖角色、上下文、步骤、约束和输出格式,并包含用于代码或长文本的示例标签用法。
提示词内容收藏
🌐
Break down prompt into sections
Based on the sections, name them with xml tags
Usually nice to have role context step by step guide, constraints, and output format
If you're putting some code examples or examples of other long chunks of text, wrap them in xml code like <example> [CODE OR TEXT] </example> and reference what this example represents inside context section of the prompt
Will work well
用法
此提示词专为 productivity 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
讨论
0 条评论