<?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: fedasiaz</title>
    <description>The latest articles on DEV Community by fedasiaz (@fedasiaz).</description>
    <link>https://dev.to/fedasiaz</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4192828%2F5a0fc4c9-6483-46bc-aa48-76b16e5d53db.png</url>
      <title>DEV Community: fedasiaz</title>
      <link>https://dev.to/fedasiaz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fedasiaz"/>
    <language>en</language>
    <item>
      <title>How I built an AI bot that fixes broken npm dependencies (and how it uses GitHub Actions)</title>
      <dc:creator>fedasiaz</dc:creator>
      <pubDate>Sun, 18 Oct 2026 20:36:36 +0000</pubDate>
      <link>https://dev.to/fedasiaz/how-i-built-an-ai-bot-that-fixes-broken-npm-dependencies-and-how-it-uses-github-actions-2g37</link>
      <guid>https://dev.to/fedasiaz/how-i-built-an-ai-bot-that-fixes-broken-npm-dependencies-and-how-it-uses-github-actions-2g37</guid>
      <description>&lt;p&gt;Hey Dev.to community!&lt;/p&gt;

&lt;p&gt;We all know the pain: Dependabot opens a PR, you merge it, and your build breaks because a library went ESM-only.&lt;/p&gt;

&lt;p&gt;I built Suturely, an open-source tool that upgrades dependencies and fixes the code if tests break. It uses an LLM to read the error, patch the files, and retry until the tests are green.&lt;/p&gt;

&lt;p&gt;How it works&lt;br&gt;
It runs your tests before the upgrade (baseline check).&lt;/p&gt;

&lt;p&gt;It bumps the dependency.&lt;/p&gt;

&lt;p&gt;If tests fail, it sends the error and source files to an LLM (Groq, Gemini, etc).&lt;/p&gt;

&lt;p&gt;The LLM patches the code. The cycle repeats up to 3 times.&lt;/p&gt;

&lt;p&gt;It only opens a PR if the tests are green.&lt;/p&gt;

&lt;p&gt;Free &amp;amp; Autonomous&lt;br&gt;
You don't need to install anything locally. I added a GitHub Action workflow. You just bring your own API key (BYOK) and put it in your repo secrets. It runs on GitHub's servers for free every Monday.&lt;/p&gt;

&lt;p&gt;Real-world example&lt;br&gt;
I tested it on a repo with &lt;a href="mailto:node-fetch@2"&gt;node-fetch@2&lt;/a&gt;. The bot updated it to v3, saw the ERR_REQUIRE_ESM error, and automatically rewrote the file to use .default import. It took 3 minutes.&lt;/p&gt;

&lt;p&gt;Check out the repository here: &lt;a href="https://github.com/fedasiaz/suturely" rel="noopener noreferrer"&gt;https://github.com/fedasiaz/suturely&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Any feedback on the architecture or the prompt engineering is highly appreciated!&lt;/p&gt;

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