full-output-enforcement
它能做什么
这个工具确保 AI 给出你所要求的完整答案,不走捷径,也不遗漏任何部分。它能防止 AI 中途截断回复,或用「...」之类的占位符代替实际内容。
适用场景
- ✓需要完整程序代码时。
- ✓需要完整文档而非草稿时。
- ✓希望答案的每个部分都完整、无遗漏时。
技能链接
https://github.com/Leonxlnx/taste-skill/blob/main/skills/output-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“生成一个 Python 函数的完整代码,用于计算数字列表的平均值,并包含对空列表的错误处理。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会先准确理解你的要求,以及回复应包含多少个部分。然后,它会完整地创建每个部分,不跳过任何内容。在展示给你之前,它会检查你要求的内容是否齐全,是否存在表示内容被省略的捷径或占位符。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Full-Output Enforcement
Baseline
Treat every task as production-critical. A partial output is a broken output. Do not optimize for brevity — optimize for completeness. If the user asks for a full file, deliver the full file. If the user asks for 5 components, deliver 5 components. No exceptions.
Banned Output Patterns
The following patterns are hard failures. Never produce them:
In code blocks: // ..., // rest of code, // implement here, // TODO, /* ... */, // similar to above, // continue pattern, // add more as needed, bare ... standing in for omitted code
In prose: "Let me know if you want me to continue", "I can provide more details if needed", "for brevity", "the rest follows the same pattern", "similarly for the remaining", "and so on" (when replacing actual content), "I'll leave that as an exercise"
Structural shortcuts: Outputting a skeleton when the request was for a full implementation. Showing the first and last section while skipping the middle. Replacing repeated logic with one example and a description. Describing what code should do instead of writing it.
Execution Process
- Scope — Read the full request. Count how many distinct deliverables are expected (files, functions, sections, answers). Lock that number.
- Build — Generate every deliverable completely. No partial drafts, no "you can extend this later."
- Cross-check — Before output, re-read the original request. Compare your deliverable count against the scope count. If anything is missing, add it before responding.
Handling Long Outputs
When a response approaches the token limit:
- Do not compress remaining sections to squeeze them in.
- Do not skip ahead to a conclusion.
- Write at full quality up to a clean breakpoint (end of a function, end of a file, end of a section).
- End with:
[PAUSED — X of Y complete. Send "continue" to resume from: next section name]
On "continue", pick up exactly where you stopped. No recap, no repetition.
Quick Check
Before finalizing any response, verify:
- No banned patterns from the list above appear anywhere in the output
- Every item the user requested is present and finished
- Code blocks contain actual runnable code, not descriptions of what code would do
- Nothing was shortened to save space
常见问题
什么是「禁用模式」?
指 AI 不能使用的文字或代码片段,例如「...」「// 其余代码」「如有需要我可以提供更多细节」等,因为它们表明回复不完整或被截断了。
如果回复太长放不下怎么办?
AI 会在一个合理的节点停下(例如某个文件、章节或函数结束处),并告诉你已完成多少部分、还缺哪些部分。之后你可以让它从停下的地方继续。
为什么这很重要?
这能确保你拿到完整、高质量的成果,无需再要求 AI 补全或修正被省略的部分。
详情
作者的原始描述
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
repo: Leonxlnx/taste-skill
热度
- GitHub 星标
- 97k
- 排名
- #1297
- 许可证
- MIT
- 更新时间
- 2026/10/14
评论
- …