Prompt Template Linter

A specialized tool for sanitizing and optimizing LLM prompt templates to prevent injection vulnerabilities and ensure robustness.

Install
cmdop skills install agensi-prompt-template-linter

What it does

The Prompt Template Linter is a specialized diagnostic tool designed to sanitize and optimize LLM prompt templates before they reach production. It scans your template files to identify structural flaws, security risks, and logical inconsistencies that often lead to model hallucinations or prompt injection vulnerabilities.

Why use this skill

Manually auditing prompts for "jailbreak" surfaces or missing variables is error-prone. This skill automates the detection of critical issues like unescaped user input in instruction blocks, contradictory constraints, and orphaned placeholders. It ensures your prompts are robust, type-safe (where variables are concerned), and formatted for reliable parsing.

Supported tools

  • File Formats: Supports .prompt, .txt, .md, .jinja, and .j2 files.
  • Integration: Works via CLI or stdin, making it ideal for pre-commit hooks or CI/CD pipelines.
  • Remediation: Includes a library of safe-snippet references to fix flagged issues instantly.

Output format

The skill produces a structured report categorized by rule ID (PTL001-PTL006) and severity, pinpointing the exact line and file where the issue resides.