Claude + Desktop Commander fixed my site’s SEO in 10 minutes

Eduards RuzgaAbout 4 min readApr 8, 2025Watch original
THE SUMMARYAI-generated

Desktop Commander: Optimizing Website Performance with AI - Summary

Key Concepts:

  • Desktop Commander: An AI-powered tool that allows users to read, edit, and search files, run terminal commands, and automate processes.
  • Lighthouse: A Google tool for auditing website performance, accessibility, best practices, and SEO.
  • Large Contentful Paint (LCP): A metric that measures the time it takes for the largest content element to become visible on the screen.
  • Image Optimization: Reducing image file sizes without sacrificing quality to improve website loading speed.
  • WebP: A modern image format that provides superior compression and quality compared to JPEG and PNG.
  • Render-blocking CSS: CSS files that prevent the browser from rendering the page until they are downloaded and parsed.

Initial Website Performance Analysis with Lighthouse

The video demonstrates using Desktop Commander to improve a website's performance. The initial step involves running a Lighthouse audit on the website to identify areas for improvement. The initial Lighthouse report reveals several issues:

  • Poor performance score.
  • Accessibility problems.
  • Need for image optimization (wrong sizes, formats).
  • Large Contentful Paint (LCP) issues.
  • Render-blocking CSS files.
  • Offscreen images.
  • Non-responsive images.

The speaker notes that manually addressing these issues would be time-consuming, involving image conversion, resizing, and code modifications.

Automating Optimization with Desktop Commander

Instead of manual optimization, the speaker uses Desktop Commander to automate the process. The speaker provides Desktop Commander with the website's URL and instructs it to:

  1. Run a Lighthouse audit.
  2. Generate a JSON report (for Desktop Commander's internal analysis).
  3. Generate an HTML report (for human review).
  4. Open the HTML report in a browser.

Desktop Commander first checks if the specified file (index.html) exists. It then runs Lighthouse, hosts the website on a local server (localhost:8080), and opens the website in Chrome. After the Lighthouse audit completes, Desktop Commander opens the HTML report in the browser.

The speaker notes that the Lighthouse scores obtained through Desktop Commander might slightly differ from those obtained by running Lighthouse directly on the live website. However, the recommendations for improvement remain consistent.

Image Optimization using Desktop Commander

The speaker then instructs Desktop Commander to fix the identified image-related issues. Desktop Commander performs the following steps:

  1. Creates a directory for optimized images.
  2. Executes commands to convert images to WebP format.
  3. Resizes images.
  4. Updates the HTML files to use the optimized images.
  5. Optimizes CSS files.

The speaker highlights the significant reduction in image sizes achieved through optimization. Desktop Commander edits the HTML files, replacing references to the original images with references to the optimized WebP images in the newly created directory. This process is done line by line, block by block.

Post-Optimization Performance Evaluation

After image optimization, Desktop Commander runs another Lighthouse audit and opens the new report in the browser. The results show a significant improvement in performance score, jumping from 79 to 98 (or 82 to 98 compared to the initial local run). Accessibility and best practices scores remain relatively unchanged.

The speaker emphasizes that this improvement was achieved in under 10 minutes with just two instructions to Desktop Commander.

Further Optimization and Support

The speaker acknowledges that further optimization is possible, particularly in the areas of accessibility and best practices. The speaker plans to address these issues in future iterations.

The video concludes with a call to action, encouraging viewers to:

  • Try Desktop Commander (links provided in the description).
  • Join the Discord community for feedback and support.
  • Support the project through social media, GitHub, or donations.

Notable Quotes:

  • "I'm just too lazy for that, so let's do something else instead. Let's ask CLA with Desktop Commander to fix it for us."
  • "We did it in under 10 minutes and with just two sentences. That's how Desktop Commander works with CLA."

Conclusion:

The video demonstrates the effectiveness of Desktop Commander in automating website performance optimization. By leveraging AI, Desktop Commander can significantly improve website loading speed and overall performance with minimal user effort. The example focuses on image optimization, showcasing the tool's ability to convert, resize, and integrate optimized images into a website. While the video highlights the success in performance improvements, it also acknowledges the need for further optimization in areas like accessibility and best practices.

AI summaries can miss context or contain errors. Check important details against the original video.

Go a little deeper.

Have a question about this video? Load its transcript to open the video chat.