This one teaches Claude about JavaScript compression with Gzip and Brotli, including the trade-offs between compression ratios, bundle sizes, and caching. It covers both static and dynamic compression strategies, when to use each, and the actual performance gains companies like Oyo and Wix saw switching from Gzip to Brotli (15-25% file size reduction). The skill emphasizes the granularity problem where larger bundles compress better but smaller chunks cache better, which is the kind of nuance that matters when you're actually configuring a production build. It's scoped to read JavaScript and TypeScript files, so it can analyze your code while explaining compression concepts. Useful if you're optimizing network transfer times or setting up server-side compression and want Claude to understand the full context.

skills.sh installs
1.7K
GitHub stars
258
last updated
Aug 21, 2026

Install

$ npx -y skills add patternsdev/skills --skill compression --agent claude-code

Installs into .claude/skills of the current project.

Files

Compressing JavaScript

Table of Contents

JavaScript is the second biggest contributor to page size and the second most requested web resource on the internet after images. We use patterns that reduce the transfer, load, and execution time for JavaScript to improve website performance. Compression can help reduce the time needed to transfer scripts over the network.

When to Use

  • Use this when you need to reduce JavaScript payload sizes for faster page loads
  • This is helpful when optimizing network transfer times, especially for users on slower connections
  • Use this alongside minification, code-splitting, and caching strategies

Instructions

Sponsors

Details

Repository
github.com/patternsdev/skills
Category
Backend & APIs
First seen
Jun 3, 2026

More from patternsdev/skills

All 47
1adobe avatarcode-reviewadobe/skillsUse this when reviewing AEM Edge Delivery Services (EDS, Franklin, Helix) code, either self-review at the end of development before opening a PR, or reviewing a1.7Kskills.sh installs
2adobe avatardocs-searchadobe/skillsUse this when you need more information about an AEM Edge Delivery Services (EDS, Franklin, Helix) feature or guidance on how to implement one, and your existin1.7Kskills.sh installs
3practicalswan avatarpowerpoint-pptpracticalswan/agent-skillsPowerPoint (.pptx) manipulation via MCP server. Use for creating slides, formatting presentations, managing placeholders, adding images, applying templates, or 1.7Kskills.sh installs
4adobe avatarblock-inventoryadobe/skillsUse this when the page-import pipeline needs to survey the block palette available from a local AEM Edge Delivery Services project and the Block Collection to i1.6Kskills.sh installs
5adobe avatarcontent-modelingadobe/skillsUse this when you are building new AEM Edge Delivery Services blocks or changing the initial structure that authors work with in an existing block. Covers desig1.6Kskills.sh installs
6adobe avataranalyze-and-planadobe/skillsUse this when you need to define acceptance criteria, write requirements, scope work, or create a definition of done for AEM Edge Delivery Services (EDS) tasks 1.6Kskills.sh installs