Chrome extension

From pproenca/dot-skills · View interactive version

Chrome extension is an AI agent skill from the GitHub repository pproenca/dot-skills. 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.

How to use this skill

Skill file

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:

Rule Categories by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Service Worker Lifecycle | CRITICAL | sw- |

| 2 | Content Script Optimization | CRITICAL | content- |

| 3 | Message Passing Efficiency | HIGH | msg- |

| 4 | Storage Operations | HIGH | storage- |

| 5 | Network & Permissions | MEDIUM-HIGH | net- |

| 6 | Memory Management | MEDIUM | mem- |

| 7 | UI Performance | MEDIUM | ui- |

| 8 | API Usage Patterns | LOW-MEDIUM | api- |

| 9 | Code Style & Naming | MEDIUM | style- |

| 10 | Component Patterns | MEDIUM | comp- |

| 11 | Error Handling | HIGH | err- |

| 12 | Testing Patterns | MEDIUM | 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

| 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 |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.