Claude-skill-registry chrome-ext

Chrome Extensions (Manifest V3) performance optimization guidelines (formerly chrome-extensions). This skill should be used when writing, reviewing, or refactoring Chrome extension code to ensure optimal performance patterns. Triggers on tasks involving service workers, content scripts, message passing, storage APIs, or extension development.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/chrome-ext" ~/.claude/skills/majiayu000-claude-skill-registry-chrome-ext && rm -rf "$T"
manifest: skills/data/chrome-ext/SKILL.md
source content

Chrome Developer Relations Chrome Extensions Best Practices

Comprehensive performance optimization guide for Chrome Extensions (Manifest V3), maintained by Chrome Developer Relations. Contains 40+ rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Chrome extension code
  • Migrating from Manifest V2 to Manifest V3
  • Optimizing service worker lifecycle and state management
  • Implementing content scripts for page interaction
  • Debugging performance issues in extensions

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Service Worker LifecycleCRITICAL
sw-
2Content Script OptimizationCRITICAL
content-
3Message Passing EfficiencyHIGH
msg-
4Storage OperationsHIGH
storage-
5Network & PermissionsMEDIUM-HIGH
net-
6Memory ManagementMEDIUM
mem-
7UI PerformanceMEDIUM
ui-
8API Usage PatternsLOW-MEDIUM
api-

Quick Reference

1. Service Worker Lifecycle (CRITICAL)

2. Content Script Optimization (CRITICAL)

3. Message Passing Efficiency (HIGH)

4. Storage Operations (HIGH)

5. Network & Permissions (MEDIUM-HIGH)

6. Memory Management (MEDIUM)

7. UI Performance (MEDIUM)

8. API Usage Patterns (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Full Compiled Document

For a complete guide with all rules in a single document, see AGENTS.md.

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information