DEV Community

Cover image for Build Chrome Extensions Faster: A 5-Step Agent Workflow
ExtensionBooster
ExtensionBooster

Posted on Originally published at extensionbooster.net

Build Chrome Extensions Faster: A 5-Step Agent Workflow

Originally published on ExtensionBooster.

If you want to build Chrome extensions faster, the biggest gains rarely come from typing quicker. They come from tooling and workflow. Below is a five-step setup that pairs a scaffolding CLI, an AI coding agent and a few automated checks, so you spend your time on features instead of boilerplate.

Why workflow beats raw skill

The source article makes a blunt claim: the gap between a slow and a fast extension developer is almost entirely tooling and workflow, not skill. Its headline figure is roughly 3x productivity, which it describes as conservative.

The pattern is simple. Anything repetitive (project setup, manifest wiring, config files, test harnesses, packaging) gets handed to a tool. You keep the decisions that need judgment.

The 5-step workflow

1. Scaffold with a CLI

Don't hand-write a manifest and folder structure. The article suggests starting from one of these:

  • create-chrome-ext
  • Plasmo
  • vite-plugin-web-extension

It estimates this saves 45 to 75 minutes per project.

2. Develop with an AI coding agent

Use an agent such as Claude Code, Cursor or GitHub Copilot. The key move is a project-level instruction block, so the agent stops guessing your constraints. The article suggests telling it to:

  • target Manifest V3
  • use service workers
  • use chrome.storage
  • use declarativeNetRequest
  • never use eval()

Because those rules are written down once, every generated file starts from the right assumptions.

3. Test with web-ext and Playwright

Run Mozilla's web-ext for its run, lint and build commands, and add Playwright for end-to-end tests of real extension flows. Linting catches manifest mistakes early, and end-to-end tests catch the regressions that unit tests miss.

4. Analyze performance

Measure instead of guessing. The article points to Lighthouse CLI and Chrome DevTools Protocol scripts so performance checks can run from the command line rather than by hand.

5. Package and publish

Build with web-ext build, and use an unofficial Chrome Web Store upload CLI to push the package. Wire both into GitHub Actions so a release is a repeatable pipeline instead of a manual checklist.

Save your prompts as templates

One more habit from the article: keep reusable prompt templates for the pieces you build again and again. It gives three examples:

  • a service worker with alarm-based persistence
  • a Shadow DOM content script
  • a popup with storage sync

Reusing a good prompt gives you consistent output and removes the cost of re-explaining your stack each time.

What the time savings look like

The article compares manual and agent-assisted times for specific tasks:

Task Manual Agent-assisted
declarativeNetRequest configuration 90 min 15 min
Popup with React and Tailwind 2 hours 25 min
Tab-grouping extension (total build) 7.5 hours 1.1 hours

The tab-grouping example saves about 6.4 hours, roughly 7x on a first project. Treat these as the article's own examples, not a guarantee. Your results will depend on your stack and experience.

Key takeaways

  • Tooling and workflow, not raw skill, drive most of the speed difference.
  • Scaffold with a CLI to skip 45 to 75 minutes of setup.
  • Give your AI agent a project instruction block (MV3, service workers, chrome.storage, declarativeNetRequest, no eval()).
  • Test with web-ext and Playwright, and measure with Lighthouse CLI.
  • Automate packaging and publishing through GitHub Actions.
  • Save prompts you reuse as templates.

For the full walkthrough, read the guide on how to build Chrome extensions faster with AI agents and CLI tools. And if you're also working on getting your extension discovered, ExtensionBooster has growth resources for extension and app developers.

Which step in your own extension workflow still eats the most time, and have you tried handing it to an agent?

Top comments (0)