<?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: Asghar Shakir</title>
    <description>The latest articles on DEV Community by Asghar Shakir (@asghar_shakir_e4c8cf45a3e).</description>
    <link>https://dev.to/asghar_shakir_e4c8cf45a3e</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%2F4067637%2F04966da5-0a9e-4d38-897b-b0ee56236ea4.jpg</url>
      <title>DEV Community: Asghar Shakir</title>
      <link>https://dev.to/asghar_shakir_e4c8cf45a3e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asghar_shakir_e4c8cf45a3e"/>
    <language>en</language>
    <item>
      <title>I Built an Agent That Found Real Duplicate Content in My Production SEO Database</title>
      <dc:creator>Asghar Shakir</dc:creator>
      <pubDate>Sat, 19 Sep 2026 09:57:39 +0000</pubDate>
      <link>https://dev.to/asghar_shakir_e4c8cf45a3e/i-built-an-agent-that-found-real-duplicate-content-in-my-production-seo-database-4faf</link>
      <guid>https://dev.to/asghar_shakir_e4c8cf45a3e/i-built-an-agent-that-found-real-duplicate-content-in-my-production-seo-database-4faf</guid>
      <description>&lt;p&gt;I run RankinSEO, an AI-powered SEO article platform for trades businesses (roofing, HVAC, plumbing, solar, electrical). Over the past few months I've manually hunted down duplicate content in my Supabase database by eyeballing a sorted table — tedious, error-prone, and something I kept meaning to automate.&lt;/p&gt;

&lt;p&gt;For the Sanity Challenge, I finally built that automation as a real agent.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;Migrated a curated sample of my live content (5 articles per trade) from Supabase into Sanity's Content Lake as structured &lt;code&gt;article&lt;/code&gt; documents&lt;/li&gt;
&lt;li&gt;Wrote a GROQ-powered agent that queries the content and analyzes title similarity to flag potential duplicates&lt;/li&gt;
&lt;li&gt;Ran it against my full 130-article production table to see if it would re-discover issues I'd already found manually&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The GROQ query at the core of it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*[_type == "article"] {
  title,
  slug,
  trade
} | order(trade asc)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent then normalizes each title (strips stopwords and punctuation) and computes word-overlap similarity between every pair, flagging anything above a 40% threshold.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it found
&lt;/h2&gt;

&lt;p&gt;Running against my full dataset, the agent correctly re-discovered several duplicate clusters I'd already manually identified and fixed back in September — like "Gutter Cleaning Cost" vs "Gutter Cleaning Cost 2026" (75% overlap) and "Commercial Roofing" vs "Commercial Roofing Company" (67% overlap).&lt;/p&gt;

&lt;p&gt;It also honestly surfaced a &lt;strong&gt;limitation&lt;/strong&gt;: a Calgary-localized article with a typo in its slug ("roofing-contrators-near-me") got flagged as similar to several generic "near me" articles — purely because of shared words like "roofing" and "near me" — even though the actual content and intent were genuinely different. Pure word-overlap similarity can't distinguish "same topic, different angle" from "actual duplicate." That's a real constraint worth knowing before trusting this kind of tool blindly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;This isn't a toy demo — it's solving a problem I actually have, using my actual production content. The agent won't replace human judgment on which "duplicates" to merge (context still matters), but it turns a 20-minute manual scan into a 3-second automated first pass.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Next.js / Supabase (source data)&lt;/li&gt;
&lt;li&gt;Sanity (Content Lake + GROQ)&lt;/li&gt;
&lt;li&gt;Node.js&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Built for the Sanity Challenge, Path One.&lt;/p&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fand3lygn1x7o3nf5n6by.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fand3lygn1x7o3nf5n6by.png" alt="Sanity Studio showing 23 migrated articles across 5 trades" width="800" height="383"&gt;&lt;/a&gt;&lt;/p&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb0o4iapoat0hj5hsyyjf.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb0o4iapoat0hj5hsyyjf.png" alt="Terminal output showing the agent detecting real duplicate content clusters" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>sanitychallenge</category>
      <category>ai</category>
      <category>webdev</category>
      <category>automation</category>
    </item>
    <item>
      <title>Doing everything right, but still on 2 clicks on my website</title>
      <dc:creator>Asghar Shakir</dc:creator>
      <pubDate>Sat, 19 Sep 2026 02:30:16 +0000</pubDate>
      <link>https://dev.to/asghar_shakir_e4c8cf45a3e/doing-everything-right-but-still-on-2-clicks-on-my-website-38d5</link>
      <guid>https://dev.to/asghar_shakir_e4c8cf45a3e/doing-everything-right-but-still-on-2-clicks-on-my-website-38d5</guid>
      <description>&lt;p&gt;Created an AI powered SEO website, that I always wanted to do, but having trouble with Seo, it's been 3 months still fighting with it everyday.&lt;/p&gt;

&lt;p&gt;Registered with a lot of directories and tried a few high domain authority websites for backlinks, but no use.&lt;/p&gt;

&lt;p&gt;Generating at least 5 articles daily, but failed.&lt;/p&gt;

&lt;p&gt;Did a lot of keyword researches and also 'what people looking for' tried.&lt;/p&gt;

&lt;p&gt;Hope Dev Community would be able to help!&lt;/p&gt;

&lt;p&gt;Website for trade businesses and &lt;a href="https:\rankinseo.xyz" rel="noopener noreferrer"&gt;free audit&lt;/a&gt; for everyone. &lt;/p&gt;

&lt;h1&gt;
  
  
  Seo #RankinSEO, #TradeBusinesses, #WebAudit
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>Don't see any SEO discussion in here! Lets start a thread?</title>
      <dc:creator>Asghar Shakir</dc:creator>
      <pubDate>Sat, 19 Sep 2026 02:21:24 +0000</pubDate>
      <link>https://dev.to/asghar_shakir_e4c8cf45a3e/dont-see-any-seo-discussion-in-here-lets-start-a-thread-20i0</link>
      <guid>https://dev.to/asghar_shakir_e4c8cf45a3e/dont-see-any-seo-discussion-in-here-lets-start-a-thread-20i0</guid>
      <description></description>
    </item>
  </channel>
</rss>
