Skip to main content
rule

javascript-chrome-apis-cursorrules-prompt-file — Cursor rule: Chrome

A Cursor rule that points the AI agent at Chrome extension work: manifest, architecture, Chrome API usage.

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/javascript-chrome-apis-cursorrules-prompt-file.mdc
Open on GitHub

What javascript-chrome-apis-cursorrules-prompt-file does

The file sets the assistant's role: an expert in Chrome extension development, JavaScript, HTML, CSS and Chrome APIs. Then it lists the areas the rule keeps in view — naming conventions, code structure, the extension manifest, architecture, UI and styling, performance, security, API usage, development process, internationalization, testing and debugging, publishing.

It also points to example extensions you can reference and tells the agent to follow the official Chrome Extension documentation on the Google Developers site. The rule ships with alwaysApply: false and globs **/*, so it does not fire on every file by default — worth checking when it actually kicks in for your project.

Install is a single file at .cursor/rules/javascript-chrome-apis-cursorrules-prompt-file.mdc. No dependencies, no API keys.

What it helps with

  • keep the Chrome extension manifest consistent across edits
  • pick a project structure for an extension before writing code
  • avoid security mistakes when calling Chrome APIs
  • separate extension UI from styling concerns
  • get an extension ready for publishing

Example prompts for the agent

  • help me design the architecture for a Chrome extension that blocks ads
  • check my manifest.json against Chrome requirements
  • how do I request permissions for the tabs API

How to install javascript-chrome-apis-cursorrules-prompt-file

Manually: put the files in place

.cursor/rules/javascript-chrome-apis-cursorrules-prompt-file.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about javascript-chrome-apis-cursorrules-prompt-file

How do I install javascript-chrome-apis-cursorrules-prompt-file in Cursor?

Create .cursor/rules/javascript-chrome-apis-cursorrules-prompt-file.mdc in your project root and paste the rule contents into it.

What does this rule do?

It configures the Cursor agent as a Chrome extension expert and covers the manifest, architecture, Chrome APIs, security, testing and publishing.

Does the rule apply to every file?

It sets alwaysApply: false with globs **/*, so it does not run automatically on every file.

Source text

javascript-chrome-apis-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for JavaScript development with Chrome APIs integration."
globs: **/*
alwaysApply: false
---
You are an expert in Chrome extension development, JavaScript, HTML, CSS, and Chrome APIs.

Code Style and Structure

Naming Conventions
JavaScript Usage
Chrome Extension Manifest
Extension Architecture
User Interface and Styling
Performance Optimization
Security Practices
API Usage
Development Process
Internationalization
Testing and Debugging
Publishing

Example Extensions

You can reference these example extensions:

Post-Development

Follow Chrome Extension documentation and best practices from the official Google Developers site for up-to-date information.

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Similar IDE rules

Everything for Browser and scraping →

From the same set68

manifest-yaml-cursorrules-prompt-file A Cursor rule that tells the agent how to scaffold a small Manifest backend: project setup, the manifest/backend.yml file and limits on entities. ★ 41,011repo stars laravel-php-83-cursorrules-prompt-file A Cursor rule that walks the agent through building Laravel packages: plan, directory layout, naming standards, tests and docs. ★ 41,011repo stars kubernetes-mkdocs-documentation-cursorrules-prompt A Cursor rule that turns the agent into a technical writer for Kubernetes and cloud native docs built with Markdown and MkDocs. ★ 41,011repo stars knative-istio-typesense-gpu-cursorrules-prompt-fil A Cursor rule that turns the assistant into a helper for serverless projects built on Knative with Istio, Typesense and HTMX. Useful when your search app runs on that stack. ★ 41,011repo stars htmx-go-fiber-cursorrules-prompt-file A Cursor rule for Go projects built on Fiber with HTMX: it pins down folder layout, routing and template rendering so the agent stops improvising. ★ 41,011repo stars htmx-django-cursorrules-prompt-file A Cursor rule that keeps the agent on Django rails while it writes HTMX code: templates, forms, CSRF, class-based views. ★ 41,011repo stars how-to-documentation-cursorrules-prompt-file A Cursor rule that turns technical steps, test scripts and screenshots into step-by-step guides for non-technical users. Useful when you write How To docs for a feature. ★ 41,011repo stars graphical-apps-development-cursorrules-prompt-file A Cursor rule that feeds the agent the Pyllments context: graph-based LLM apps in Python built on Panel and Langchain. ★ 41,011repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor