<?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: Yash Dodwani</title>
    <description>The latest articles on DEV Community by Yash Dodwani (@yashdodwani).</description>
    <link>https://dev.to/yashdodwani</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%2F1641685%2Fe3f1e855-124e-44b9-bbda-60fe1d887c07.png</url>
      <title>DEV Community: Yash Dodwani</title>
      <link>https://dev.to/yashdodwani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yashdodwani"/>
    <language>en</language>
    <item>
      <title>repoDoc</title>
      <dc:creator>Yash Dodwani</dc:creator>
      <pubDate>Sun, 26 Apr 2026 18:17:27 +0000</pubDate>
      <link>https://dev.to/yashdodwani/repodoc-2498</link>
      <guid>https://dev.to/yashdodwani/repodoc-2498</guid>
      <description>&lt;p&gt;===&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/openclaw-2026-04-16"&gt;OpenClaw Challenge&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;repoDoc&lt;/strong&gt; — an autonomous bug-fixing agent for GitHub repos with continuous, branch-aware monitoring.&lt;/p&gt;

&lt;p&gt;The pain it solves: bad code (hardcoded secrets, &lt;code&gt;eval()&lt;/code&gt;, SQL injection, debug prints, TODOs) routinely lands on feature branches and survives lazy code review. SonarQube tells you. CodeRabbit comments on your PR. &lt;strong&gt;repoDoc actually fixes it&lt;/strong&gt; — autonomously, on the same branch the developer is working on, before a human ever opens a PR.&lt;/p&gt;

&lt;p&gt;It continuously watches every branch of every registered repo. On each new commit it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fetches the diff&lt;/li&gt;
&lt;li&gt;Evaluates it against organizational guardrails (8 built-in rules + AI security review)&lt;/li&gt;
&lt;li&gt;Opens a GitHub Issue listing every violation&lt;/li&gt;
&lt;li&gt;Auto-generates a &lt;strong&gt;fix PR back on the originating branch&lt;/strong&gt; using Gemini 3 Flash&lt;/li&gt;
&lt;li&gt;Pings Telegram (and replies conversationally on PR comments)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Real proof of the loop running on real repos:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🔧 &lt;a href="https://github.com/yashdodwani/AuditRx/pull/1" rel="noopener noreferrer"&gt;yashdodwani/AuditRx#1&lt;/a&gt; — auto-raised&lt;/li&gt;
&lt;li&gt;🔧 &lt;a href="https://github.com/yashdodwani/FinPal/pull/1" rel="noopener noreferrer"&gt;yashdodwani/FinPal#1&lt;/a&gt; — auto-raised&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I Used OpenClaw
&lt;/h2&gt;

&lt;p&gt;The full agentic loop is exposed as a &lt;strong&gt;5-skill OpenClaw skill suite&lt;/strong&gt; that any OpenClaw agent can install via ClawHub or by pasting the repo URL into chat:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Skill&lt;/th&gt;
&lt;th&gt;Phase&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;repodoc-analyze&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;full loop&lt;/td&gt;
&lt;td&gt;observe → decide → act → verify → create_pr in one call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;repodoc-watch&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;trigger&lt;/td&gt;
&lt;td&gt;continuous polling across all branches every 5 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;repodoc-guardrails&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;act&lt;/td&gt;
&lt;td&gt;regex + Gemini-powered diff evaluator&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;repodoc-detect-bugs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;act&lt;/td&gt;
&lt;td&gt;pytest + flake8 → structured bug reports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;repodoc-fix&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;verify&lt;/td&gt;
&lt;td&gt;surgical Gemini patch, no refactors&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each skill is a real &lt;code&gt;SKILL.md&lt;/code&gt; (YAML frontmatter + Markdown instructions) plus a Python entrypoint. Drop the suite into &lt;code&gt;~/.openclaw/skills/&lt;/code&gt; and any OpenClaw agent becomes an autonomous code-review teammate.&lt;/p&gt;

&lt;p&gt;The skills compose: &lt;code&gt;repodoc-watch&lt;/code&gt; triggers &lt;code&gt;repodoc-guardrails&lt;/code&gt; on every commit, which feeds &lt;code&gt;repodoc-detect-bugs&lt;/code&gt;, which feeds &lt;code&gt;repodoc-fix&lt;/code&gt;, which closes with a branch-aware GitHub PR. OpenClaw's &lt;strong&gt;skill chaining + trigger metadata&lt;/strong&gt; made it natural to expose the same agentic loop two ways — on-demand from chat (&lt;code&gt;/repodoc-analyze &amp;lt;url&amp;gt;&lt;/code&gt;) and as a 5-min background watcher — without duplicating logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;📺 &lt;strong&gt;Watch the 90-second walkthrough&lt;/strong&gt;: &lt;a href="https://youtu.be/9YMFPPct7ew" rel="noopener noreferrer"&gt;https://youtu.be/9YMFPPct7ew&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/9YMFPPct7ew"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The video shows the full autonomous loop in action:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add a watched repo with the &lt;strong&gt;Enterprise Grade&lt;/strong&gt; preset&lt;/li&gt;
&lt;li&gt;First scan &lt;strong&gt;silently baselines&lt;/strong&gt; the current state — no false positives on existing code&lt;/li&gt;
&lt;li&gt;Click the ⏪ &lt;strong&gt;Replay&lt;/strong&gt; button — repoDoc treats the planted "bad commit" as a brand-new push&lt;/li&gt;
&lt;li&gt;Within 30 seconds:

&lt;ul&gt;
&lt;li&gt;🔔 Telegram alert fires with the violation list&lt;/li&gt;
&lt;li&gt;🐛 GitHub Issue auto-opens listing every violation&lt;/li&gt;
&lt;li&gt;✅ Fix PR opens with Gemini's surgical fixes (e.g., &lt;code&gt;eval()&lt;/code&gt; → &lt;code&gt;ast.literal_eval()&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Open the PR — see real, mergeable diffs with explanations in plain English&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Source Code
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🌐 Live preview&lt;/td&gt;
&lt;td&gt;&lt;a href="https://repodoctor-1.preview.emergentagent.com" rel="noopener noreferrer"&gt;https://repodoctor-1.preview.emergentagent.com&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🔌 OpenClaw skill suite&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/yashdodwani/repodoc-openclaw-skills" rel="noopener noreferrer"&gt;https://github.com/yashdodwani/repodoc-openclaw-skills&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🐛 Demo repo (seeded violations)&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/yashdodwani/repodoc-demo" rel="noopener noreferrer"&gt;https://github.com/yashdodwani/repodoc-demo&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;📺 Demo video&lt;/td&gt;
&lt;td&gt;&lt;a href="https://youtu.be/9YMFPPct7ew" rel="noopener noreferrer"&gt;https://youtu.be/9YMFPPct7ew&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Try it yourself in 60 seconds
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Install the skill suite into your OpenClaw agent&lt;/span&gt;
&lt;span class="c"&gt;# (paste this URL into your OpenClaw chat)&lt;/span&gt;
https://github.com/yashdodwani/repodoc-openclaw-skills

&lt;span class="c"&gt;# Then in chat:&lt;/span&gt;
/repodoc-watch https://github.com/your-repo-link
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What I Learned
&lt;/h3&gt;

&lt;p&gt;Treating each agent step as a named, idempotent skill transforms the loop from "magic black box" to "five things I can debug independently." Inline Python loops hide intermediate state; OpenClaw skills surface them — a huge win for both observability and reusability.&lt;br&gt;
Branch-aware fixes matter more than I expected. Generic agents fix on main; real engineers want fixes back on their feature branch, where they're working. This is where pre-PR autonomy beats post-PR review tools like CodeRabbit — we meet developers on their branch, not on main.&lt;br&gt;
Regex + LLM dual-layer guardrails beat either alone. Regex for determinism (secrets, eval() always fire); LLM for nuance (logical bugs, security context). One catches what the other misses.&lt;br&gt;
The biggest UX challenge wasn't the AI — it was making the first watcher pass silent so adding a repo doesn't spam alerts about historical commits. The "baseline first, alert on new" pattern was non-obvious but critical.&lt;br&gt;
OpenClaw's skill manifest is the right level of abstraction. Lower than CrewAI/LangGraph (which force you into their orchestration model), higher than raw scripts (which lose composability). The SKILL.md + Python combo lets you ship something a non-developer can install while keeping full power for the agent author.&lt;/p&gt;

&lt;h3&gt;
  
  
  ClawCon Michigan
&lt;/h3&gt;

&lt;p&gt;Couldn't attend in person — followed the recordings. Hoping to make ClawCon NYC if it happens.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>openclawchallenge</category>
      <category>ai</category>
      <category>python</category>
    </item>
  </channel>
</rss>
