Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Writing correct webpack 5 plugins v1.0.0

Use this resource to write or review a webpack 5 plugin that is safe in watch mode and with persistent caching

New

  • 486 downloads
  • 198 likes
  • 153 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install webpack-plugin-authoring

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent writes or reviews a webpack 5 plugin against 44 rules: hook choice and taps, the asset pipeline with emitAsset, cache dependencies, cleanup on shutdown, schema-utils validation and formatted errors. It draws on patterns from well-known plugins in the ecosystem. You get a plugin that behaves well in builds and in watch mode.

Mostly picked by

Updated November 2, 2026

Card for the “Writing correct webpack 5 plugins” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on emitting assets, metadata and source maps
  • references/: cards on cache dependencies and persistent caching

Good fit for

  • Your plugin misses files in watch mode
  • A persistent cache ignores changes to your plugin options

Not for

    Tags

    • webpack
    • plugin
    • cache
    • assets
    • watch

    About

    You say

    “Review my webpack plugin: it writes straight into compilation.assets and does not declare its cache dependencies.”

    Card for the “Writing correct webpack 5 plugins” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write or review a webpack 5 plugin that is safe in watch mode and with persistent caching
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md12.3 KB
    • assets/templates/_template.md3 KB
    • LICENSE1.1 KB
    • metadata.json2.2 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md3.4 KB
    • references/asset-buffer-not-source-for-binary.md3.3 KB
    • references/asset-content-hash-via-output-options.md3.3 KB
    • references/asset-delete-then-emit-loses-info.md2.8 KB
    • references/asset-emit-asset-not-direct-assignment.md3 KB
    • references/asset-preserve-source-maps.md3.1 KB
    • references/asset-set-info-metadata.md3.4 KB
    • references/asset-source-from-compiler-webpack.md3.3 KB
    • references/cache-add-file-dependencies.md3.2 KB
    • references/cache-build-dependencies-for-persistent-cache.md4 KB
    • references/cache-context-dependencies-for-directories.md3.2 KB
    • references/cache-missing-dependencies-for-optional-files.md3.1 KB
    • references/cache-use-input-file-system.md3.1 KB
    • references/compat-custom-hooks-via-weakmap.md4.1 KB
    • references/compat-export-shape-and-cjs-esm.md3.9 KB
    • references/compat-feature-detection-not-version-check.md3.5 KB
    • references/compat-use-compiler-webpack-namespace.md4.5 KB
    • references/compat-webpack-as-peer-dependency.md3.5 KB
    • references/diag-attach-loc-to-errors.md3.8 KB
    • references/diag-progress-reporting.md3.2 KB
    • references/diag-push-webpack-error-not-throw.md3.6 KB
    • references/diag-use-compilation-get-logger.md3.5 KB
    • references/diag-warnings-vs-errors-exit-codes.md3.7 KB
    • references/hook-bail-hook-return-semantics.md2.7 KB
    • references/hook-name-matches-class-name.md2.5 KB
    • references/hook-normal-module-factory-stages.md4.7 KB
    • references/hook-prefer-process-assets-over-emit.md3.2 KB
    • references/hook-process-assets-stage.md3 KB
    • references/hook-tap-method-matches-hook-type.md2.3 KB
    • references/hook-tap-once-not-per-compilation.md2.5 KB
    • references/hook-thiscompilation-vs-compilation.md2.2 KB
    • references/life-cleanup-in-shutdown-hook.md3.5 KB
    • references/life-constructor-stores-options-only.md3.6 KB
    • references/life-defensively-copy-user-options.md3.5 KB
    • references/life-multi-compiler-isolation.md3.4 KB
    • references/life-no-mutable-state-across-builds.md3.6 KB
    • references/perf-avoid-source-toString-in-hot-paths.md3.8 KB
    • references/perf-cache-results-with-compilation-cache.md4 KB
    • references/perf-jest-worker-for-cpu-bound-work.md4.2 KB
    • references/perf-respect-experimental-options.md3.8 KB
    • references/perf-traverse-chunks-not-modules.md3.8 KB
    • references/schema-additional-properties-false.md3.1 KB
    • references/schema-name-and-base-data-path.md3.1 KB
    • references/schema-tap-into-validate-hook.md3.5 KB
    • references/schema-validate-with-schema-utils.md3.3 KB
    • SKILL.md10.6 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/webpack-plugin-authoring
    Licence
    MIT

    Notice

    « webpack-plugin-authoring » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.