Loading...
Loading...
Chrome Extensions (Manifest V3) performance and code quality guidelines. Use when writing, reviewing, or refactoring Chrome extension code including service workers, content scripts, message passing, storage APIs, TypeScript patterns, and testing.
npx skill4agent add pproenca/dot-skills chrome-extension| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 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 | |
sw-persist-state-storagesw-avoid-keepalivesw-use-alarms-apisw-return-true-asyncsw-register-listeners-toplevelsw-use-offscreen-for-domcontent-use-specific-matchescontent-use-document-idlecontent-programmatic-injectioncontent-minimize-script-sizecontent-batch-dom-operationscontent-use-mutation-observermsg-use-ports-for-frequentmsg-minimize-payload-sizemsg-debounce-frequent-eventsmsg-check-lasterrormsg-avoid-broadcast-to-all-tabsstorage-batch-operationsstorage-choose-correct-typestorage-cache-frequently-accessedstorage-use-session-for-tempstorage-avoid-storing-large-blobsnet-use-declarativenetrequestnet-request-minimal-permissionsnet-use-activetabnet-limit-csp-modificationsmem-cleanup-event-listenersmem-avoid-detached-dommem-avoid-closure-leaksmem-clear-intervals-timeoutsmem-use-weak-collectionsui-minimize-popup-bundleui-render-with-cached-dataui-batch-badge-updatesui-use-options-page-lazyapi-use-promises-over-callbacksapi-query-tabs-efficientlyapi-avoid-redundant-api-callsapi-use-alarms-minperiodapi-handle-context-invalidatedapi-use-declarative-contentstyle-boolean-namingstyle-cache-namingstyle-constantsstyle-directory-structurestyle-file-namingstyle-function-namingstyle-import-typestyle-index-entry-pointsstyle-message-enumsstyle-type-namingcomp-adapter-interfacecomp-content-script-structurecomp-css-class-patternscomp-manager-classcomp-type-guardscomp-ui-componentserr-context-invalidationerr-early-returnerr-null-coalescingerr-promise-barriererr-storage-operationserr-url-parsingerr-validation-patterntest-browser-api-mockingtest-organizationtest-validation-functions| File | Description |
|---|---|
| AGENTS.md | Complete compiled guide with all rules |
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |