<?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>Forem: Amudha Balamurugan</title>
    <description>The latest articles on Forem by Amudha Balamurugan (@devabm).</description>
    <link>https://forem.com/devabm</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%2F1060513%2F5f270a31-4106-4301-a608-25c794b3f736.jpeg</url>
      <title>Forem: Amudha Balamurugan</title>
      <link>https://forem.com/devabm</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/devabm"/>
    <language>en</language>
    <item>
      <title>README Read better: Automating Repo Summaries with Amazon Q Developer</title>
      <dc:creator>Amudha Balamurugan</dc:creator>
      <pubDate>Sat, 26 Jul 2025 06:36:22 +0000</pubDate>
      <link>https://forem.com/devabm/readme-read-better-automating-repo-summaries-with-amazon-q-developer-5918</link>
      <guid>https://forem.com/devabm/readme-read-better-automating-repo-summaries-with-amazon-q-developer-5918</guid>
      <description>&lt;p&gt;Learning through practical application is currently my preferred approach for acquiring new technological skills. GitHub hosts a significant number of repositories to explore, spanning from basic to complex projects. Some are accompanied by a straightforward methodology and comprehensive documentation in the README, although this is not universally the case.&lt;/p&gt;

&lt;p&gt;I always dedicate additional time to comprehending the procedures employed during the review of their projects. There is a significant need for concise documentation within project repositories to enhance efficiency. Accordingly, I am here to introduce my automatic document generator, which can scan any public GitHub repository and produce a summary of its contents within seconds. &lt;/p&gt;

&lt;h3&gt;
  
  
  How it Works?
&lt;/h3&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.amazonaws.com%2Fuploads%2Farticles%2Fpc8a645rsfkh8yvxo6oa.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.amazonaws.com%2Fuploads%2Farticles%2Fpc8a645rsfkh8yvxo6oa.png" alt="Project Work Flow diagram" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Project Structure
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;q-docgen/
├── scripts/
│   └── generate-summary.js   # Main script using Q CLI
├── generated/
│   └── PROJECT_SUMMARY.md    # Output goes here
├── package.json              # Includes npm scripts
└── README.md                 # Project readme
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  npm Script
&lt;/h3&gt;

&lt;p&gt;You can generate documentation using a simple command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm run docgen -- https://github.com/GitHub-Username/repo-name&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  How Amazon Q CLI Is Used
&lt;/h3&gt;

&lt;p&gt;We employ the q chat command programmatically via Node.js to input structured repository data and procure a natural language project summary. &lt;br&gt;
An example prompt sent to Amazon Q is provided as follows.&lt;br&gt;
&lt;code&gt;"Based on this repo structure and the latest 5 Git commits, generate a README-style summary."&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Role of Amazon Q Developer
&lt;/h3&gt;

&lt;p&gt;Q Developer uses Claude-4-sonnet and other options (including Claude-3.7-sonnet and Claude-3.5-sonnet) to generate context-aware documentation, such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Repo description&lt;/li&gt;
&lt;li&gt;Features&lt;/li&gt;
&lt;li&gt;File architecture&lt;/li&gt;
&lt;li&gt;Recent changes&lt;/li&gt;
&lt;li&gt;Usage hints&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Sample Output
&lt;/h3&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.amazonaws.com%2Fuploads%2Farticles%2Fcutcdmcuktjygg5dr1s1.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.amazonaws.com%2Fuploads%2Farticles%2Fcutcdmcuktjygg5dr1s1.png" alt="Sample Output generated from this app" width="800" height="655"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Use Case
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;CI/CD integration with GitHub Actions&lt;/li&gt;
&lt;li&gt;Automatically generate README files for hackathon projects&lt;/li&gt;
&lt;li&gt;Sync documentation for internal tools or research repositories&lt;/li&gt;
&lt;li&gt;Ideal for developers who move quickly and need to document efficiently&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;How to call Amazon Q CLI programmatically&lt;/li&gt;
&lt;li&gt;Using child_process in Node.js to run terminal commands&lt;/li&gt;
&lt;li&gt;Handling errors in Git and shell environments (like macOS's keychain prompt)&lt;/li&gt;
&lt;li&gt;Creating an npm package from scratch and planning CI integrations&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Problems I faced
&lt;/h3&gt;

&lt;p&gt;The Claude-4 sonnet model employed for text summarization was frequently occupied. Transitioning to a lower-tier model is not as straightforward as it is in a command-line interface environment. However, it resulted in another interesting project utilizing Amazon Bedrock, which I will soon share here. &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.amazonaws.com%2Fuploads%2Farticles%2Fzjmuzit53sr0d49crl3e.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.amazonaws.com%2Fuploads%2Farticles%2Fzjmuzit53sr0d49crl3e.png" alt="Problems I faced while doing this project" width="800" height="572"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Do It Yourself
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Install Amazon Q CLI Docs&lt;/li&gt;
&lt;li&gt;Clone this repo
&lt;a href="https://github.com/DevABM/q-docgen/tree/main" rel="noopener noreferrer"&gt;Q-DocGen&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/DevABM/q-docgen.git
cd q-docgen
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Run it
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install
npm run docgen -- https://github.com/GitHub-Username/repo-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;This project demonstrated the significant capabilities of integrating GitHub, Amazon Q, and Node.js for automation purposes. With minimal coding effort, we transformed tedious manual documentation into an intelligent, repeatable workflow.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Developers should not be compelled to choose between rapid deployment and thorough documentation.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Utilizing Amazon Q eliminates this dilemma.&lt;/p&gt;

&lt;p&gt;Thank you for your time. If you find this work interesting, please consider liking and sharing it. Follow me on &lt;a href="https://www.linkedin.com/in/amudhabalamurugan" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;, &lt;a href="https://github.com/DevABM" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;, &lt;a href="https://medium.com/@dev.am.balamurugan" rel="noopener noreferrer"&gt;Medium&lt;/a&gt;, or &lt;a href="https://dev.to/devabm"&gt;Dev&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cli</category>
      <category>devtools</category>
      <category>aws</category>
      <category>qdeveloper</category>
    </item>
  </channel>
</rss>
