Output Enforcement
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.
Install this skill
git submodule add https://github.com/modh-labs/playbook.git .playbookOne submodule installs all 17 skills. Reference .playbook/skills/output-enforcement/SKILL.md from your AGENTS.md.
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
Related Skills
Catalog-Driven Resolver
Turn a declared policy table into the only code path that produces its output. Use when a catalog, registry or config map declares a per-type rule (who a message is from, who may call a tool, which posture or limit applies) but each call site computes the result itself; when a rule in the table is not what production does; or before adding a new input dimension to that rule (a tenant setting, a status, a region) that would otherwise mean editing every call site.
UniversalCode Review
Run educational code reviews against your project's quality standards. Use when reviewing PRs, checking current branch before pushing, or doing batch quality sweeps across all open PRs. Applies observability, testing, SOLID, type safety, security, business logic, and clean code checks with pass/fail verdicts. Produces actionable findings with real-world impact explanations, not just "best practice" citations.
UniversalCost to Serve Audit
Cost to serve: what one customer costs in vendor fees, measured from the vendor's own meter. Use when pricing a plan, a reseller or partner deal, or a usage add-on; when a vendor invoice does not match the usage your app records; when asked for gross margin or unit economics per customer; when deciding whether to stay with a vendor or move; or before a deal that multiplies volume on usage-billed vendors.
Universal