<?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: Dhawal Shukla</title>
    <description>The latest articles on DEV Community by Dhawal Shukla (@thewittyswan).</description>
    <link>https://dev.to/thewittyswan</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%2F2137875%2F7e03a6f3-f7b7-4b20-8670-b845b1411a01.jpg</url>
      <title>DEV Community: Dhawal Shukla</title>
      <link>https://dev.to/thewittyswan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thewittyswan"/>
    <language>en</language>
    <item>
      <title>I Built a CLI That Interviews Me on My Own Code</title>
      <dc:creator>Dhawal Shukla</dc:creator>
      <pubDate>Mon, 03 Aug 2026 07:04:28 +0000</pubDate>
      <link>https://dev.to/thewittyswan/i-built-a-cli-that-interviews-me-on-my-own-code-1e3k</link>
      <guid>https://dev.to/thewittyswan/i-built-a-cli-that-interviews-me-on-my-own-code-1e3k</guid>
      <description>&lt;p&gt;When I started preparing for technical interviews, I noticed something strange.&lt;/p&gt;

&lt;p&gt;I remembered DSA problems.&lt;/p&gt;

&lt;p&gt;I remembered system design concepts.&lt;/p&gt;

&lt;p&gt;But I kept forgetting the implementation details of &lt;strong&gt;my own projects&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Interviewers would ask questions like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Why did you choose PostgreSQL instead of MongoDB?&lt;/li&gt;
&lt;li&gt;How does authentication work in this project?&lt;/li&gt;
&lt;li&gt;Walk me through the request flow.&lt;/li&gt;
&lt;li&gt;Why this architecture?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And I'd end up opening GitHub to remember code that &lt;em&gt;I&lt;/em&gt; had written.&lt;/p&gt;

&lt;p&gt;That felt wrong.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Churn&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Idea
&lt;/h2&gt;

&lt;p&gt;Instead of manually revising every repository before an interview...&lt;/p&gt;

&lt;p&gt;What if a CLI could read my project and interview me?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;churn-cli

churn interview &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Churn scans your repository and generates interview questions based on &lt;strong&gt;your actual implementation&lt;/strong&gt;, not generic programming questions.&lt;/p&gt;




&lt;h2&gt;
  
  
  Example Questions
&lt;/h2&gt;

&lt;p&gt;Instead of asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What is JWT?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It asks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Why did you implement JWT authentication in this project?&lt;/li&gt;
&lt;li&gt;Explain the request flow from the controller to the database.&lt;/li&gt;
&lt;li&gt;Why did you choose FastAPI over Flask?&lt;/li&gt;
&lt;li&gt;How does your caching strategy work?&lt;/li&gt;
&lt;li&gt;What trade-offs did you make while designing this API?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The questions come from the repository itself.&lt;/p&gt;




&lt;h2&gt;
  
  
  Then I Realized...
&lt;/h2&gt;

&lt;p&gt;Most repositories suffer from another problem.&lt;/p&gt;

&lt;p&gt;Documentation.&lt;/p&gt;

&lt;p&gt;README files become outdated.&lt;/p&gt;

&lt;p&gt;Architecture documents don't exist.&lt;/p&gt;

&lt;p&gt;PRDs are rarely written.&lt;/p&gt;

&lt;p&gt;So I added another command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;churn docs &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now Churn can generate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;README.md&lt;/li&gt;
&lt;li&gt;PRD.md&lt;/li&gt;
&lt;li&gt;ARCHITECTURE.md&lt;/li&gt;
&lt;li&gt;REPORT.pdf&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;directly from an existing codebase.&lt;/p&gt;




&lt;h2&gt;
  
  
  One More Feature
&lt;/h2&gt;

&lt;p&gt;While working on different repositories, I noticed many projects were missing basic engineering practices.&lt;/p&gt;

&lt;p&gt;No CI/CD.&lt;/p&gt;

&lt;p&gt;No Docker.&lt;/p&gt;

&lt;p&gt;No tests.&lt;/p&gt;

&lt;p&gt;So I built:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;churn doctor &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;README         ✓
Architecture   ✓
License        ✓
Docker         ✗
CI/CD          ✗
Tests          ✗

Overall: C (60%)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It provides a quick repository health report before interviews, open-source releases, or deployments.&lt;/p&gt;




&lt;h2&gt;
  
  
  Engineering Decisions
&lt;/h2&gt;

&lt;p&gt;Some of the parts I enjoyed building the most:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Recursive repository scanning&lt;/li&gt;
&lt;li&gt;Git-based file prioritization&lt;/li&gt;
&lt;li&gt;AI provider abstraction (Gemini, Groq &amp;amp; OpenAI)&lt;/li&gt;
&lt;li&gt;Markdown, JSON and PDF generation&lt;/li&gt;
&lt;li&gt;Public &amp;amp; private GitHub repository support&lt;/li&gt;
&lt;li&gt;Local repository support&lt;/li&gt;
&lt;li&gt;Configuration management&lt;/li&gt;
&lt;li&gt;Repository health analysis&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ironically, integrating an LLM wasn't the hardest part.&lt;/p&gt;

&lt;p&gt;Designing a clean CLI, handling repositories, configuration, prompts, error handling, and creating a good developer experience took much longer.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I Built It
&lt;/h2&gt;

&lt;p&gt;I didn't build Churn to replace interview preparation.&lt;/p&gt;

&lt;p&gt;I built it because I wanted a tool that understood &lt;strong&gt;my own codebase&lt;/strong&gt; better than generic interview sheets ever could.&lt;/p&gt;

&lt;p&gt;If it helps even a few developers better understand and present their own projects, I'll consider it a success.&lt;/p&gt;




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

&lt;p&gt;📦 &lt;strong&gt;PyPI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pypi.org/project/churn-cli/0.5.0/" rel="noopener noreferrer"&gt;https://pypi.org/project/churn-cli/0.5.0/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🐙 &lt;strong&gt;GitHub&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/DhawalShankar/project-churn" rel="noopener noreferrer"&gt;https://github.com/DhawalShankar/project-churn&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd genuinely appreciate feedback, feature requests, or contributions.&lt;/p&gt;

&lt;p&gt;If you've ever forgotten the details of your own project during an interview, I'd love to know how you currently prepare.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>python</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
