<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Umar F Yunusa</title>
    <description>The latest articles on Forem by Umar F Yunusa (@umar_fyunusa_ab97415e208).</description>
    <link>https://forem.com/umar_fyunusa_ab97415e208</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3611029%2F5c32ab67-f9df-415f-801e-b56bbb3c101a.jpg</url>
      <title>Forem: Umar F Yunusa</title>
      <link>https://forem.com/umar_fyunusa_ab97415e208</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/umar_fyunusa_ab97415e208"/>
    <language>en</language>
    <item>
      <title>I built a CLI tool that analyzes LLM prompts for clarity, cost, and security - would love feedback</title>
      <dc:creator>Umar F Yunusa</dc:creator>
      <pubDate>Fri, 14 Nov 2025 09:27:55 +0000</pubDate>
      <link>https://forem.com/umar_fyunusa_ab97415e208/i-built-a-cli-tool-that-analyzes-llm-prompts-for-clarity-cost-and-security-would-love-feedback-d91</link>
      <guid>https://forem.com/umar_fyunusa_ab97415e208/i-built-a-cli-tool-that-analyzes-llm-prompts-for-clarity-cost-and-security-would-love-feedback-d91</guid>
      <description>&lt;p&gt;I kept iterating on prompts without knowing if my changes were making them better or worse, so I built a tool to help.&lt;/p&gt;

&lt;p&gt;PromptLint is a CLI that analyzes prompts before you send them to LLMs. It gives you three scores:&lt;/p&gt;

&lt;p&gt;Clarity (0-10)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Detects ambiguous phrases like "maybe", "try to", "as needed"&lt;/li&gt;
&lt;li&gt;Checks for clear instructions and output format&lt;/li&gt;
&lt;li&gt;Flags conflicting instructions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cost Efficiency&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Counts tokens using tiktoken&lt;/li&gt;
&lt;li&gt;Estimates costs across 7 models (GPT-4o, Claude, Gemini, etc.)&lt;/li&gt;
&lt;li&gt;Shows you the $ impact before you run.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Security&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Detects prompt injection patterns&lt;/li&gt;
&lt;li&gt;Flags unvalidated user input&lt;/li&gt;
&lt;li&gt;Identifies risky operations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqezp4szggl0d2nf022hb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqezp4szggl0d2nf022hb.png" alt=" " width="800" height="733"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;✓ This change improves the prompt It's free and open source.&lt;br&gt;
&lt;code&gt;Install: pip install promptlint&lt;/code&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/fyunusa/promptlint" rel="noopener noreferrer"&gt;https://github.com/fyunusa/promptlint&lt;/a&gt;&lt;br&gt;
PyPI: &lt;a href="https://pypi.org/project/promptlint%60" rel="noopener noreferrer"&gt;https://pypi.org/project/promptlint`&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What other analysis dimensions would be useful?&lt;/li&gt;
&lt;li&gt;Are the clarity heuristics accurate?&lt;/li&gt;
&lt;li&gt;What models should I add support for?
Happy to answer questions!&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>llm</category>
      <category>tooling</category>
      <category>cli</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
