<?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>DEV Community: Shehryar Sohail</title>
    <description>The latest articles on DEV Community by Shehryar Sohail (@itsmesherry).</description>
    <link>https://dev.to/itsmesherry</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%2F3825466%2F3c94a050-f961-415b-8973-a0ad4869a255.jpeg</url>
      <title>DEV Community: Shehryar Sohail</title>
      <link>https://dev.to/itsmesherry</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/itsmesherry"/>
    <language>en</language>
    <item>
      <title>I Built an AI That Audits Your Entire Codebase With One Command</title>
      <dc:creator>Shehryar Sohail</dc:creator>
      <pubDate>Sun, 15 Mar 2026 14:57:03 +0000</pubDate>
      <link>https://dev.to/itsmesherry/i-built-an-ai-that-audits-your-entire-codebase-with-one-command-2la2</link>
      <guid>https://dev.to/itsmesherry/i-built-an-ai-that-audits-your-entire-codebase-with-one-command-2la2</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;code&gt;npx claude-audit&lt;/code&gt; scans your project for security vulnerabilities, code quality issues, dependency risks, and more — then gives you a letter grade and actionable fixes. No config needed.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Every developer knows the feeling: you've been heads-down building for weeks, and suddenly you need to ship. But lurking in your codebase are hardcoded secrets, outdated dependencies with known CVEs, functions with 8 levels of nesting, and zero tests for your auth logic.&lt;/p&gt;

&lt;p&gt;Professional code audits cost thousands and take weeks. Linters catch syntax issues but miss the big picture. AI code review tools exist, but most require complex setup, multiple config files, and a PhD in YAML.&lt;/p&gt;

&lt;p&gt;I wanted something different: &lt;strong&gt;one command, zero config, a complete audit.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/itsmesherry/claude-audit" rel="noopener noreferrer"&gt;&lt;strong&gt;Claude Audit&lt;/strong&gt;&lt;/a&gt; is an open-source CLI tool that combines fast static analysis with Claude AI's deep reasoning to audit your codebase across 7 dimensions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Security&lt;/strong&gt; — hardcoded secrets, SQL injection, XSS, OWASP Top 10&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code Quality&lt;/strong&gt; — complexity, deep nesting, dead code, anti-patterns&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Performance&lt;/strong&gt; — inefficient algorithms, blocking I/O, memory leaks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Architecture&lt;/strong&gt; — modularity, coupling, separation of concerns&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dependencies&lt;/strong&gt; — known CVEs, deprecated packages, supply chain risks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing&lt;/strong&gt; — coverage gaps, missing tests, quality issues&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Documentation&lt;/strong&gt; — missing docs, stale comments, API gaps&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each category gets a score (0-100) and a letter grade (A-F). You get an overall score, a prioritized list of findings, and specific fixes for every issue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Zero-Config Design
&lt;/h2&gt;

&lt;p&gt;The entire experience is one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx claude-audit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. No install. No config file. No API key required (static analysis runs without one).&lt;/p&gt;

&lt;p&gt;Want AI-powered deep analysis? Just set your Anthropic key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;ANTHROPIC_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;sk-ant-... npx claude-audit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the Output Looks Like
&lt;/h2&gt;

&lt;p&gt;The terminal output uses colored score bars, letter grades, and severity-tagged findings:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; CATEGORY SCORES

  🔒  Security        ██████░░░░░░░░░░░░░░  42/100  [ D ]  · 3 issues
  📊  Code Quality    ████████████░░░░░░░░  71/100  [ C ]  · 5 issues
  ⚡  Performance     █████████████░░░░░░░  78/100  [ C ]  · 2 issues
  📦  Dependencies    ████████░░░░░░░░░░░░  55/100  [ F ]  · 7 issues

  🚨 CRITICAL: Hardcoded JWT Secret
     File: src/config/auth.ts:14
     Fix:  Use a randomly generated 256-bit secret stored in env vars.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It also generates beautiful standalone HTML reports and Markdown files — perfect for PRs, team reviews, or compliance.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works Under the Hood
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Scanner&lt;/strong&gt; — Respects &lt;code&gt;.gitignore&lt;/code&gt;, detects languages/frameworks, reads source files (supports 30+ languages)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Static Analyzers&lt;/strong&gt; — 15+ regex-based rules for secrets, 25+ known vulnerable packages, complexity/quality checks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude AI&lt;/strong&gt; (optional) — Sends prioritized code context to Claude for deep 7-category analysis with specific file/line references&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reporter&lt;/strong&gt; — Generates terminal, Markdown, HTML, or JSON output&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The AI analysis is smart about context: it prioritizes entry points, auth files, config, and API routes. Large files are truncated. The prompt is engineered to return structured JSON that maps directly to actionable findings.&lt;/p&gt;

&lt;h2&gt;
  
  
  CI/CD Ready
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# GitHub Actions&lt;/span&gt;
&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Run Claude Audit&lt;/span&gt;
  &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npx claude-audit --json &amp;gt; audit.json&lt;/span&gt;
  &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;ANTHROPIC_API_KEY&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.ANTHROPIC_API_KEY }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Exit code 1 on critical issues means you can gate deployments. The &lt;code&gt;--json&lt;/code&gt; flag outputs machine-readable results for custom integrations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built With
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript&lt;/strong&gt; — strict mode, fully typed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commander&lt;/strong&gt; — CLI framework&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anthropic SDK&lt;/strong&gt; — Claude API integration&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chalk + Boxen + Ora&lt;/strong&gt; — beautiful terminal output&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It Now
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx claude-audit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or with AI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;ANTHROPIC_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;your-key npx claude-audit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/itsmesherry/claude-audit" rel="noopener noreferrer"&gt;github.com/itsmesherry/claude-audit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Stars, feedback, and contributions are welcome. This is v0.1.0 — the foundation is solid and there's a lot more coming (SARIF output, multi-provider support, GitHub Action, custom rules).&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built by &lt;a href="https://github.com/itsmesherry" rel="noopener noreferrer"&gt;Shehryar Sohail&lt;/a&gt;. Powered by Claude AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>security</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
