prompt-engineering-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill serves as a reference for prompt engineering patterns. All code samples are educational or utility-focused, demonstrating standard integration with libraries like LangChain and Pydantic.
- [INDIRECT_PROMPT_INJECTION]: Several templates and the prompt optimization script interpolate variables into LLM prompts. While this introduces a theoretical surface for indirect prompt injection, it is the fundamental purpose of the skill and is implemented using standard practices.
- Ingestion points:
kwargsinreferences/prompt-templates.md,test_case.inputinscripts/optimize-prompt.py. - Boundary markers: Generally absent in the provided templates, though the documentation encourages specific instructions.
- Capability inventory: LLM invocations using
ainvokeandcompletemethods. - Sanitization: No explicit sanitization of interpolated content is performed in the sample code.
- [DYNAMIC_EXECUTION]: The
ConditionalTemplateclass inreferences/prompt-templates.mdimplements a custom logic layer using regular expressions to process conditional blocks and loops within prompts. This is a common and safe pattern for template management.
Audit Metadata