llm-output-handling-checker
Purpose
Check whether model outputs are validated, constrained, escaped, approved, or otherwise handled safely before downstream use.
Trigger this skill when
- The current artifact has LLM, prompt, retrieval, memory, or agent-tooling behavior that needs structured review or hardening.
- You need to turn vague AI safety or agent security concerns into concrete findings, controls, or requirements.
- You want the next agent-security-focused action to be explicit rather than ad hoc.
Expected inputs
- output consumption paths
- rendering surfaces
- automation hooks
- tool-calling behavior
- response post-processing
Deliverables
- output handling findings
- unsafe sink inventory
- validation and escaping recommendations
- approval requirements
- recommended next skill
Operating procedure
- Read the artifact from an agent-security perspective and identify the concrete trust, autonomy, and side-effect model.
- Separate facts from assumptions and call out missing details that materially affect risk or confidence.
- Start with the highest-impact abuse paths rather than trying to describe every possible issue equally.
- Translate findings into explicit controls, approvals, isolation boundaries, or policy language that builders can act on.
- Prefer concrete exploit paths, sinks, boundaries, and failure conditions over generic AI-safety slogans.
- Finish with the most sensible handoff skill based on the dominant risk pattern you found.
Quality gates
- Findings are specific to the actual prompt, retrieval, memory, tool, or runtime design rather than generic AI risk boilerplate.
- Output separates facts, assumptions, risks, controls, and recommended next action.
- Prioritization reflects impact, privilege, and automation potential rather than just issue count.
- Recommendations are implementable and framed in a way that can be tested or reviewed later.
Handoff targets
- prompt-injection-reviewer
- tool-permission-boundary-checker
- secret-exposure-reviewer
Output style
- Be explicit about uncertainty.
- Prefer concrete abuse paths and control implications over generic safety slogans.
- Separate facts, risks, recommendations, and next steps.
- Make the output usable by engineers, reviewers, security testers, and policy owners.
Failure modes to avoid
- Do not treat "the model should know better" as a security control.
- Do not bury high-impact autonomous action risk behind long, unprioritized issue lists.
- Do not recommend guardrails without explaining the exploit or failure they address.
- Do not hide uncertainty when prompt assembly, retrieval, memory, or runtime details are missing.
Minimum output skeleton
## Summary
## Findings
## Structured outputs
## Risks
## Recommendations
## Recommended next skill
1---2name: llm-output-handling-checker3description: llm-output-handling-checker4---5# llm-output-handling-checker67## Purpose8Check whether model outputs are validated, constrained, escaped, approved, or otherwise handled safely before downstream use.910## Trigger this skill when11- The current artifact has LLM, prompt, retrieval, memory, or agent-tooling behavior that needs structured review or hardening.12- You need to turn vague AI safety or agent security concerns into concrete findings, controls, or requirements.13- You want the next agent-security-focused action to be explicit rather than ad hoc.1415## Expected inputs16- output consumption paths17- rendering surfaces18- automation hooks19- tool-calling behavior20- response post-processing212223## Deliverables24- output handling findings25- unsafe sink inventory26- validation and escaping recommendations27- approval requirements28- recommended next skill293031## Operating procedure321. Read the artifact from an agent-security perspective and identify the concrete trust, autonomy, and side-effect model.332. Separate facts from assumptions and call out missing details that materially affect risk or confidence.343. Start with the highest-impact abuse paths rather than trying to describe every possible issue equally.354. Translate findings into explicit controls, approvals, isolation boundaries, or policy language that builders can act on.365. Prefer concrete exploit paths, sinks, boundaries, and failure conditions over generic AI-safety slogans.376. Finish with the most sensible handoff skill based on the dominant risk pattern you found.3839## Quality gates40- Findings are specific to the actual prompt, retrieval, memory, tool, or runtime design rather than generic AI risk boilerplate.41- Output separates facts, assumptions, risks, controls, and recommended next action.42- Prioritization reflects impact, privilege, and automation potential rather than just issue count.43- Recommendations are implementable and framed in a way that can be tested or reviewed later.4445## Handoff targets46- prompt-injection-reviewer47- tool-permission-boundary-checker48- secret-exposure-reviewer495051## Output style52- Be explicit about uncertainty.53- Prefer concrete abuse paths and control implications over generic safety slogans.54- Separate facts, risks, recommendations, and next steps.55- Make the output usable by engineers, reviewers, security testers, and policy owners.5657## Failure modes to avoid58- Do not treat "the model should know better" as a security control.59- Do not bury high-impact autonomous action risk behind long, unprioritized issue lists.60- Do not recommend guardrails without explaining the exploit or failure they address.61- Do not hide uncertainty when prompt assembly, retrieval, memory, or runtime details are missing.6263## Minimum output skeleton64```md65## Summary66## Findings67## Structured outputs68## Risks69## Recommendations70## Recommended next skill71```