safe-template-dsl
OfficialSecurely process user templates.
AuthorAnsteorra
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a secure method for processing user-editable templates that contain conditional logic, preventing arbitrary code execution vulnerabilities.
Core Features & Use Cases
- Safe Conditional Logic: Parses
{{#if ...}}...{{/if}}blocks using regex, avoidingeval(). - Operator Precedence: Correctly handles
&&and||operators for complex conditions. - Use Case: Securely render personalized email templates where users can define basic conditional content without risking security breaches.
Quick Start
Use the safe-template-dsl skill to process the template string 'Hello {{name}}!' with the provided variables.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: safe-template-dsl Download link: https://github.com/Ansteorra/KMP/archive/main.zip#safe-template-dsl Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.