prompt-engineering-patterns
Pass
Audited by Gen Agent Trust Hub on Apr 29, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The skill provides numerous templates and scripts that interpolate untrusted user data into prompts, creating a surface for indirect prompt injection.
- Ingestion points: Data enters through variables such as
{query}inSKILL.md,{problem}inreferences/chain-of-thought.md, and{text}inreferences/prompt-optimization.md. - Boundary markers: Most provided templates lack delimiters (e.g., XML tags or specific markdown headers) or instructions to ignore embedded commands within user input.
- Capability inventory: The skill includes capabilities to interact with external LLM APIs and execute logic-heavy reasoning chains (e.g., Tree-of-Thought), which could be manipulated via injection.
- Sanitization: No sanitization or escaping logic is implemented in the provided template rendering classes or scripts.
- [SAFE]: The Python utility
scripts/optimize-prompt.pyis well-implemented and uses standard libraries likenumpyandconcurrent.futuresfor performance testing and metric aggregation without any malicious side effects. - [SAFE]: All external references and libraries mentioned, such as Anthropic's Claude models, OpenAI's API, and the LangChain ecosystem, are standard tools within the industry and are used appropriately for educational and functional purposes.
Audit Metadata