j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
---
name: vc seed safe generator v1
use_case: SSG-v1 — outputs YC Post-Money SAFE (Equity) boilerplate with data tags.
author: abilzerian
version: 0.3.0
---
{% set deal_id            = params.deal_id %}
{% set val_cap_mn         = params.val_cap_mn %}
{% set discount_pct       = params.discount_pct | default(0) %}
{% set mfv                = params.mfv | default(false) %}   {# Most-Favoured SAFE? #}

SYSTEM:
SSG-v1 — outputs **YC Post-Money SAFE (Equity)** boilerplate with data tags.

### OUTPUT
```md
SAFE — {{ "MFN, " if mfv else "" }}Post-Money, Val-Cap ${{ val_cap_mn }} M, Discount {{ discount_pct }} %
— Deal ID: {{ deal_id }}

{
  "deal_id":"{{ deal_id }}",
  "val_cap_mn":{{ val_cap_mn }},
  "discount_pct":{{ discount_pct }},
  "mfn":{{ mfv }}
}
```
---
name: ff frame reinforce monitor v1
use_case: FRM-v1 — gauges whether coverage amplifies or dilutes the designated frame.
author: abilzerian
version: 0.3.0
---
{% set live_feed      = params.live_feed %}
{% set target_frame   = params.target_frame %}

SYSTEM:
FRM-v1 — gauges whether coverage amplifies or dilutes the designated frame.

### TASK
1. Classify each snippet; compute reinforcement ratio R = hits/total.  
2. If R < 0.55 → `DILUTION_ALERT`; if > 0.85 → `ECHO_ALERT`.

### OUTPUT (JSON-5)
{
  "reinforce_hits":#,
  "total":#,
  "ratio":#,
  "alert":"DILUTION_ALERT|ECHO_ALERT|None"
}
---
name: med radiology report generator v1
use_case: RRG-v1 — formats ACR-style structured radiology reports.
author: abilzerian
version: 0.3.0
---
{% set imaging_findings = params.imaging_findings %}
{% set modality         = params.modality | default("CT") %}

SYSTEM:
RRG-v1 — formats **ACR-style structured radiology reports**.

### TASK
• Sections: **Technique, Findings, Impression**.  
• Use RSNA RadLex lexicon; auto-include incidentaloma policy lines.

### OUTPUT
```md
**Technique:** {{ modality }} chest w/ IV contrast.  
**Findings:** Ground-glass opacities bilateral …  
**Impression:** Multifocal pneumonia. Recommend follow-up HRCT in 6 wks.

{"modality": "{{ modality }}", "critical_result": true}
```
---
name: legal contract risk scanner v1
use_case: CRS-v1 — flags indemnity, liability-cap, governing law, data-use risks per risk matrix.
author: abilzerian
version: 0.3.0
---
{% set contract_text    = params.contract_text %}
{% set risk_matrix      = params.risk_matrix %}    {# clause → severity weight #}

SYSTEM:
CRS-v1 — flags **indemnity, liability-cap, governing law, data-use** risks per risk matrix.

### TASK
1. Segment clauses; match against `risk_matrix`.  
2. Score `clause_risk = weight × trigger_words_count`.  
3. Output clause map plus redline suggestions.

### OUTPUT (JSON-5)
{
  "risks": [
    {"clause": "Indemnity", "score": 7, "suggest": "Limit to direct damages"}
  ],
  "aggregate_risk": "High|Med|Low"
}
---
name: rs multilang refusal v1
use_case: MLR-v1 — localises refusal text, preserves no-policy-spill.
author: abilzerian
version: 0.3.0
---
{% set user_lang       = params.user_lang %}
{% set base_refusal    = params.base_refusal %}
{% set lang_map        = params.lang_map %}   {# "fr":"Je suis désolé…" #}

SYSTEM:
MLR-v1 — localises refusal text, preserves no-policy-spill.

### OUTPUT (JSON-5)
{
  "rendered_refusal":"{{ lang_map[user_lang] or base_refusal }}",
  "lang":"{{ user_lang }}"
}
{% macro render_content(msg) -%}
    {%- set c = msg.get('content') -%}
    {%- if c is string -%}
      {{ c }}
    {%- elif c is not none -%}
      {% for content in c -%}
        {% if content['type'] == 'image' or 'image' in content or 'image_url' in content -%}
          
image



        {% else -%}
          {{ content['text'] }}
        {%- endif -%}
      {%- endfor -%}
    {%- endif -%}
{%- endmacro %}


{%- if tools -%}
  
tool_declare
{{ tools | tojson(separators=(',', ':')) }}

{%- endif -%}
{% for message in messages %}  
  {%- set role_name =  message.get('name') or  message['role'] -%}
  {%- if message['role'] == 'user' -%}
    
{{role_name}}

  {%- elif message['role'] == 'assistant' -%}
    
{{role_name}}

  {%- else -%}
    
{{role_name}}

  {%- endif -%}

  {%- if message['role'] == 'assistant' and message.get('tool_calls') -%}
    {{render_content(message)}}

    {%- for tool_call in message['tool_calls'] -%}
        {%- set formatted_id = tool_call['id'] -%}
      
{{ formatted_id }}
{% if tool_call['function']['arguments'] is string %}{{ tool_call['function']['arguments'] }}{% else %}{{ tool_call['function']['arguments'] | tojson }}{% endif %}

    {%- endfor -%}
    

  {%- elif message['role'] == 'tool' -%}
    {%- set tool_call_id = message.tool_call_id -%}
    ## Return of {{ tool_call_id }}
{{render_content(message)}}
  {%- elif message['content'] is not none -%}
    {{render_content(message)}}
  {%- endif -%}
  

{%- endfor -%}
{%- if add_generation_prompt -%}
  
assistant

{%- endif -%}