Skillshub chrome-extension

Chrome Extension Best Practices

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

Chrome Extension Best Practices

Comprehensive performance and code quality guide for Chrome Extensions (Manifest V3). Contains 67 rules across 12 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-
9Code Style & NamingMEDIUM
style-
10Component PatternsMEDIUM
comp-
11Error HandlingHIGH
err-
12Testing PatternsMEDIUM
test-

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)

9. Code Style & Naming (MEDIUM)

10. Component Patterns (MEDIUM)

11. Error Handling (HIGH)

12. Testing Patterns (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