<?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: Hrudul Krishna K V</title>
    <description>The latest articles on DEV Community by Hrudul Krishna K V (@hrudulmmn).</description>
    <link>https://dev.to/hrudulmmn</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%2F3996683%2F05875967-5b36-462d-a65b-37e1905d8e8e.png</url>
      <title>DEV Community: Hrudul Krishna K V</title>
      <link>https://dev.to/hrudulmmn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hrudulmmn"/>
    <language>en</language>
    <item>
      <title>AST blueprint generator for better AI understanding</title>
      <dc:creator>Hrudul Krishna K V</dc:creator>
      <pubDate>Mon, 22 Jun 2026 10:11:20 +0000</pubDate>
      <link>https://dev.to/hrudulmmn/ast-blueprint-generator-for-better-ai-understanding-1ecn</link>
      <guid>https://dev.to/hrudulmmn/ast-blueprint-generator-for-better-ai-understanding-1ecn</guid>
      <description>&lt;h2&gt;
  
  
  I Built Crespo: Turning Repositories into AI-Ready Codebase Blueprints
&lt;/h2&gt;

&lt;p&gt;Over the last few months, I've been using AI coding assistants extensively for learning, debugging, and understanding unfamiliar codebases.&lt;/p&gt;

&lt;p&gt;One problem kept showing up:&lt;/p&gt;

&lt;p&gt;Before an AI can help effectively, it needs context about the project.&lt;/p&gt;

&lt;p&gt;For small projects, this isn't a big issue. But for larger repositories, I often found myself spending multiple prompts explaining project structure, key modules, dependencies, and architecture.&lt;/p&gt;

&lt;p&gt;So I started building &lt;strong&gt;Crespo&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Crespo?
&lt;/h2&gt;

&lt;p&gt;Crespo is a Python CLI that analyzes a repository and generates a compact XML blueprint containing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Project structure&lt;/li&gt;
&lt;li&gt;Files and folders&lt;/li&gt;
&lt;li&gt;Classes&lt;/li&gt;
&lt;li&gt;Functions&lt;/li&gt;
&lt;li&gt;Imports and dependencies&lt;/li&gt;
&lt;li&gt;Optional AI-generated summaries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is to provide AI tools with a high-level understanding of a codebase without requiring the entire repository to be pasted into the context window.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&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;crespo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;



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

&lt;/div&gt;



&lt;p&gt;This generates a structured representation of the repository.&lt;/p&gt;

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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;file&lt;/span&gt; &lt;span class="na"&gt;path=&lt;/span&gt;&lt;span class="s"&gt;"src/auth.py"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;class&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"AuthService"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;function&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"login"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;function&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"logout"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/class&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/file&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why Build This?
&lt;/h2&gt;

&lt;p&gt;While experimenting with ChatGPT, Claude, Gemini, and other coding assistants, I noticed that much of the conversation was spent describing the repository itself.&lt;/p&gt;

&lt;p&gt;I wanted a reusable blueprint that could act as a map of the project.&lt;/p&gt;

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

&lt;blockquote&gt;
&lt;p&gt;Here are 50 files. Please understand this codebase.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I wanted something closer to:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Here is the structure, architecture, and relationships. Now let's discuss implementation.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Technical Details
&lt;/h2&gt;

&lt;p&gt;Crespo uses Tree-sitter to analyze source code and extract structural information from repositories.&lt;/p&gt;

&lt;p&gt;The project currently supports generating repository maps and structured XML outputs that can be shared with AI assistants.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons Learned
&lt;/h2&gt;

&lt;p&gt;Building Crespo taught me a lot about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Python packaging&lt;/li&gt;
&lt;li&gt;PyPI publishing&lt;/li&gt;
&lt;li&gt;Tree-sitter integration&lt;/li&gt;
&lt;li&gt;CLI development&lt;/li&gt;
&lt;li&gt;Open-source maintenance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As a student developer, one of the most rewarding experiences has been seeing people I don't know install and use something I built.&lt;/p&gt;

&lt;h2&gt;
  
  
  Feedback Welcome
&lt;/h2&gt;

&lt;p&gt;I'm still actively improving Crespo and would love feedback from developers who work with AI-assisted coding workflows.&lt;/p&gt;

&lt;p&gt;What information would you want included in an AI-ready codebase blueprint?&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/hrudulmmn/crespo" rel="noopener noreferrer"&gt;https://github.com/hrudulmmn/crespo&lt;/a&gt;&lt;br&gt;
PyPI: &lt;a href="https://pypi.org/project/crespo" rel="noopener noreferrer"&gt;https://pypi.org/project/crespo&lt;/a&gt;&lt;/p&gt;

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