genai-acceptance-review
Skill42 starsChanged 10 months agoApache-2.0View on GitHub
Review workflow for AI/LLM output usage to prevent over-trust, injection, and unsafe automation.
In this repository10 other files it gives its agents.
- copilot-instructions.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- markdown-customizationsSkill
- access-control-reviewSkill
- dependency-cve-triageSkill
- input-validation-hardeningSkill
- secrets-and-logging-hygieneSkill
- secure-code-reviewSkill
- secure-fix-validationSkill
- threat-modelSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when a system consumes LLM output to make decisions or perform actions.
- Distinctive: line 38
Use structured output (JSON schema) and reject invalid outputs
- Distinctive: line 49
Test cases for injection and over-trust scenarios
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GenAI Acceptance Review
When to use
Use this skill when a system consumes LLM output to make decisions or perform actions.
Inputs to collect (if available)
- What the model output is used for (advisory vs actionable)
- Tools/capabilities available to the system (file writes, network calls, deploys)
- Data entering prompts (PII/secrets? retrieved content sources?)
- Approval model (human-in-the-loop? step-up auth?)
Threats to consider
- Prompt injection (content causes the model to ignore instructions)
- Over-trust / tool misuse (model output drives privileged actions)
- Data leakage (secrets/PII included in prompts or outputs)
- Indirect injection via retrieved content (RAG, web pages, PDFs)
Step-by-step process
- Map the AI boundary
- Where prompts are built, where tools are called, what data enters/leaves.
- Classify outputs
- Advisory: suggestions for humans
- Actionable: used by code to execute, write files, call APIs, change permissions
- Apply controls by class
- Advisory: disclaimers, human review, logging with redaction
- Actionable: strict schema validation, allow-lists, capability gating, step-up approvals
- Prompt & retrieval hardening
- Separate system instructions from untrusted content
- Use structured output (JSON schema) and reject invalid outputs
- Limit context sources; sanitize retrieved content where possible
- Add misuse tests
- Include injection strings and verify they don’t trigger privileged actions
- Document safe usage
- Clear rules for what the model may decide vs what code must enforce
Output
- Boundary diagram (textual is fine)
- Control recommendations (prevent/detect/respond)
- Test cases for injection and over-trust scenarios
Repo integration (optional)
Related prompt:
check-for-unvalidated-genai-acceptances.prompt.md
Output format
- Boundary map: where untrusted content enters, where model output leaves
- Threats: top 5 with likelihood/impact
- Controls: prevent/detect/respond mapped to advisory vs actionable use
- Validation: misuse/prompt-injection test scenarios
Examples
- “LLM suggests shell commands that CI executes” → require allow-listed command templates + schema validation + human approval for privileged operations.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

