/chrome-extension-developer:extension-analyzefrom chrome-extension-developer
Audit Chrome extensions for security issues, best practice violations, performance problems, and CWS compliance. Scans manifest, code, CSP, message handlers, storage, and dependencies.
Ships in chrome-extension-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Audit an existing Chrome extension. Do NOT just explain — execute the workflow.
Ask user for path if not provided. Detect framework:
ls wxt.config.ts plasmo.config.ts vite.config.ts manifest.json 2>/dev/null
package.json and plasmo.config.ts insteadwxt.config.ts manifest sectionmanifest.json directly# Check MV version, permissions, host_permissions, CSP, web_accessible_resources
cat <ext>/manifest.json | jq '{manifest_version, permissions, host_permissions, content_security_policy, web_accessible_resources}'
# XSS vectors
grep -rn "innerHTML\|outerHTML\|document\.write\|insertAdjacentHTML" <ext>/src --include="*.ts" --include="*.js"
# Unsafe patterns
grep -rn "eval(\|new Function(\|setTimeout.*string\|setInterval.*string" <ext>/src
# Hardcoded secrets
grep -rn "api_key\|apiKey\|secret\|password\|token" <ext>/src --include="*.ts" --include="*.js" | grep -v "\.test\." | grep -v "node_modules"
# HTTP (non-HTTPS) calls
grep -rn "http://" <ext>/src --include="*.ts" --include="*.js"
# Message handler sender validation
grep -rn "onMessage\|addListener" <ext>/src | grep -v "node_modules"
# Remote code loading
grep -rn "importScripts\|fetch.*\.js\|eval\|chrome\.scripting\.executeScript" <ext>/src
script-src 'self'; object-src 'self'unsafe-inline, unsafe-eval, or http: sourcescd <ext> && npm audit --json | jq '.vulnerabilities | to_entries[] | {pkg: .key, severity: .value.severity}'
Output findings grouped by severity. See Output Format below.
| Level | Criteria |
|---|---|
| Critical | RCE, data exfiltration, remote code loading, eval with untrusted input |
| High | XSS, missing sender validation, API keys in source, HTTP API calls |
| Medium | Overly broad permissions, unsafe-inline CSP, sync storage secrets |
| Low | Missing error handling, no TypeScript, console.log in production |
innerHTML with page-sourced data (XSS) — HighonMessage without sender origin check — High<all_urls> host permission when not needed — Mediumunsafe-inline or unsafe-eval in CSP — Medium/Criticaleval() or new Function() usage — Criticalchrome.storage.sync storing sensitive data — Mediumweb_accessible_resources restrictions — Medium## Extension Audit Report: <name> v<version>
Date: <date> | MV: <2|3>
### Summary
Critical: X | High: X | Medium: X | Low: X
### Findings
#### [CRITICAL] API Key Exposed in Source
File: src/background.ts:42
Pattern: `const API_KEY = "sk-..."`
Fix: Move to environment variable or user-provided settings
Reference: references/common-vulnerabilities.md#4
...
### Passed Checks
- CSP: No unsafe-inline/eval ✓
- HTTPS: All API calls use HTTPS ✓
references/security-checklist.md — Full security audit checklistreferences/best-practices-checklist.md — Performance, UX, accessibility, CWSreferences/common-vulnerabilities.md — Vulnerability patterns with grep/fixreferences/cws-compliance-checklist.md — Chrome Web Store policy complianceextension-manifest — Generate/validate manifest.jsonextension-create — Scaffold new extensionextension-publish — Store submission checklistWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
13 skills in this plugin
/chrome-extension-developerUltimate Codex workflow for Google Chrome extension work: Manifest V3, WXT, Plasmo, CRXJS, content scripts, service workers, popup UI, side panel, permissions, testing, security review, payments, assets, and Chrome Web Store publishing./extension-assetsGenerate and manage all Chrome extension assets: icons (16–128px), CWS listing images, promotional tiles, and public/ folder setup. Supports ImageMagick, Gemini API, and manual prompt templates./extension-backendBuild backend APIs for Chrome extensions. NestJS + MongoDB (Mongoose) recommended stack. Auth, webhooks, license verification, CORS. Use when: backend, API, server, database, license, webhook.npx claudepluginhub andrewr303/claude-codex-plugin-lab --plugin chrome-extension-developer