microsoft/jinja2
Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security.
npx skills add https://github.com/microsoft/debugpy --skill jinja2
Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security.
Apply this skill when rendering templates with Jinja2 — HTML pages, emails, configuration files, and code generation.
jinja2.Environment(loader=..., autoescape=...) once and reuse it.FileSystemLoader for file-based templates, PackageLoader for installed packages.autoescape=True for HTML templates to prevent XSS.{{ variable }} for output, {% if/for/block %} for control flow.{% extends 'base.html' %}) for layout reuse.autoescape=True when rendering HTML.SandboxedEnvironment for untrusted templates.|e filter explicitly when autoescape is off.Template(string) directly — it bypasses the environment's loader and settings.undefined=StrictUndefined during development.Take microsoft/jinja2 from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.