Skip to content

NPM package manager skills with dependency validation hooks.

CCM score
40 of 100
GitHub stars
201
View on GitHub

Own this plugin? Claim it

What it does

  • Includes 1 hook: hooks.json

Add marketplace

/plugin marketplace add TheBushidoCollective/han

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install jutsu-npm@han

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.4.0] - 2026-02-17

Added

  • backend rearchitecture — Rust crates replace han-native (#70) (877601e0)

[1.4.0] - 2026-02-07

Added

  • auto-generate hooks.json from han-plugin.yml with shorthand events (f3a39941)

[1.4.0] - 2026-01-30

[1.4.0] - 2026-01-24

Changed

  • extract complex inline hook commands to shell scripts (953a540a)

[1.3.1] - 2025-12-13

BREAKING CHANGES

  • make caching and fail-fast default behavior for hooks (491fd7a1)

Added

  • add SubagentStart and SubagentStop hooks to all plugins (1b4dba0d)
  • unified YAML config, MCP memory tools, checkpoint system (f74f40ed)

Changed

  • normalize hook names to remove duplicative prefixes (e182590e)

[1.3.0] - 2025-12-12

Added

  • unified YAML config, MCP memory tools, checkpoint system (f74f40ed)

[1.2.16] - 2025-12-08

Added

  • auto-install han binary and use direct han commands (f0bca8c3)
  • enhance prompt hook display with accordion format (5a1e09d6)

Fixed

  • remove npx fallback from all hooks - rely on binary only (b088a4a9)
  • add Claude bin directory to PATH in hook test execution (c0bd7909)

Other

[1.2.15] - 2025-12-08

Added

  • auto-install han binary and use direct han commands (f0bca8c3)
  • enhance prompt hook display with accordion format (5a1e09d6)

Fixed

  • add Claude bin directory to PATH in hook test execution (c0bd7909)

Other

[1.2.14] - 2025-12-07

Fixed

  • convert all hook timeouts from milliseconds to seconds (c3d303d2)

[1.2.13] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOGs (6e6f236a)
  • remove double blank lines from CHANGELOGs (7d5bfb37)
  • remove double blank lines from CHANGELOGs (ae2fa50f)
  • remove double blank lines from CHANGELOGs (4a1daf78)
  • remove double blank lines from CHANGELOGs (84d69e10)
  • remove double blank lines from CHANGELOGs (97cb0320)
  • remove double blank lines from CHANGELOGs (10c19571)
  • remove double blank lines from CHANGELOGs (35141f73)
  • remove double blank lines from CHANGELOGs (d3773c3e)
  • remove double blank lines from existing CHANGELOGs (b829c36c)
  • remove double blank lines from CHANGELOG files (58eb3336)
  • fix markdown formatting in CHANGELOG files (21ca9a75)
  • remove trailing blank lines from CHANGELOG files (999bbf73)

[1.2.12] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOGs (7d5bfb37)
  • remove double blank lines from CHANGELOGs (ae2fa50f)
  • remove double blank lines from CHANGELOGs (4a1daf78)
  • remove double blank lines from CHANGELOGs (84d69e10)
  • remove double blank lines from CHANGELOGs (97cb0320)
  • remove double blank lines from CHANGELOGs (10c19571)
  • remove double blank lines from CHANGELOGs (35141f73)
  • remove double blank lines from CHANGELOGs (d3773c3e)
  • remove double blank lines from existing CHANGELOGs (b829c36c)
  • remove double blank lines from CHANGELOG files (58eb3336)
  • fix markdown formatting in CHANGELOG files (21ca9a75)
  • remove trailing blank lines from CHANGELOG files (999bbf73)

Changed

  • update hooks.json to new hook command format (fa1974dd)

[1.2.11] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOGs (ae2fa50f)
  • remove double blank lines from CHANGELOGs (4a1daf78)
  • remove double blank lines from CHANGELOGs (84d69e10)
  • remove double blank lines from CHANGELOGs (97cb0320)
  • remove double blank lines from CHANGELOGs (10c19571)
  • remove double blank lines from CHANGELOGs (35141f73)
  • remove double blank lines from CHANGELOGs (d3773c3e)
  • remove double blank lines from existing CHANGELOGs (b829c36c)
  • remove double blank lines from CHANGELOG files (58eb3336)
  • fix markdown formatting in CHANGELOG files (21ca9a75)
  • remove trailing blank lines from CHANGELOG files (999bbf73)

Changed

  • update hooks.json to new hook command format (fa1974dd)

[1.2.10] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOGs (4a1daf78)
  • remove double blank lines from CHANGELOGs (84d69e10)
  • remove double blank lines from CHANGELOGs (97cb0320)
  • remove double blank lines from CHANGELOGs (10c19571)
  • remove double blank lines from CHANGELOGs (35141f73)
  • remove double blank lines from CHANGELOGs (d3773c3e)
  • remove double blank lines from existing CHANGELOGs (b829c36c)
  • remove double blank lines from CHANGELOG files (58eb3336)
  • fix markdown formatting in CHANGELOG files (21ca9a75)
  • remove trailing blank lines from CHANGELOG files (999bbf73)

Changed

  • update hooks.json to new hook command format (fa1974dd)

[1.2.9] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOGs (84d69e10)
  • remove double blank lines from CHANGELOGs (97cb0320)
  • remove double blank lines from CHANGELOGs (10c19571)
  • remove double blank lines from CHANGELOGs (35141f73)
  • remove double blank lines from CHANGELOGs (d3773c3e)
  • remove double blank lines from existing CHANGELOGs (b829c36c)
  • remove double blank lines from CHANGELOG files (58eb3336)
  • fix markdown formatting in CHANGELOG files (21ca9a75)
  • remove trailing blank lines from CHANGELOG files (999bbf73)

Changed

  • update hooks.json to new hook command format (fa1974dd)

[1.2.8] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOGs (97cb0320)
  • remove double blank lines from CHANGELOGs (10c19571)
  • remove double blank lines from CHANGELOGs (35141f73)
  • remove double blank lines from CHANGELOGs (d3773c3e)
  • remove double blank lines from existing CHANGELOGs (b829c36c)
  • remove double blank lines from CHANGELOG files (58eb3336)
  • fix markdown formatting in CHANGELOG files (21ca9a75)
  • remove trailing blank lines from CHANGELOG files (999bbf73)

Changed

  • update hooks.json to new hook command format (fa1974dd)

[1.2.7] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOGs (10c19571)
  • remove double blank lines from CHANGELOGs (35141f73)
  • remove double blank lines from CHANGELOGs (d3773c3e)
  • remove double blank lines from existing CHANGELOGs (b829c36c)
  • remove double blank lines from CHANGELOG files (58eb3336)
  • fix markdown formatting in CHANGELOG files (21ca9a75)
  • remove trailing blank lines from CHANGELOG files (999bbf73)

Changed

  • update hooks.json to new hook command format (fa1974dd)

[1.2.6] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOGs (35141f73)
  • remove double blank lines from CHANGELOGs (d3773c3e)
  • remove double blank lines from existing CHANGELOGs (b829c36c)
  • remove double blank lines from CHANGELOG files (58eb3336)
  • fix markdown formatting in CHANGELOG files (21ca9a75)
  • remove trailing blank lines from CHANGELOG files (999bbf73)

Changed

  • update hooks.json to new hook command format (fa1974dd)

[1.2.5] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOGs (d3773c3)
  • remove double blank lines from existing CHANGELOGs (b829c36)
  • remove double blank lines from CHANGELOG files (58eb333)
  • fix markdown formatting in CHANGELOG files (21ca9a7)
  • remove trailing blank lines from CHANGELOG files (999bbf7)

Changed

  • update hooks.json to new hook command format (fa1974d)

[1.2.4] - 2025-12-03

Fixed

  • remove double blank lines from existing CHANGELOGs (b829c36)
  • remove double blank lines from CHANGELOG files (58eb333)
  • fix markdown formatting in CHANGELOG files (21ca9a7)
  • remove trailing blank lines from CHANGELOG files (999bbf7)

Changed

  • update hooks.json to new hook command format (fa1974d)

[1.2.3] - 2025-12-03

Fixed

  • remove double blank lines from CHANGELOG files (58eb333)
  • fix markdown formatting in CHANGELOG files (21ca9a7)
  • remove trailing blank lines from CHANGELOG files (999bbf7)

Changed

  • update hooks.json to new hook command format (fa1974d)

[1.2.2] - 2025-12-03

Fixed

  • fix markdown formatting in CHANGELOG files (21ca9a7)
  • remove trailing blank lines from CHANGELOG files (999bbf7)

Changed

  • update hooks.json to new hook command format (fa1974d)

[1.2.1] - 2025-12-03

Fixed

  • remove trailing blank lines from CHANGELOG files (999bbf7)

Changed

  • update hooks.json to new hook command format (fa1974d)

[1.2.0] - 2025-12-03

Fixed

  • source CLAUDE_ENV_FILE before running hook commands (4558340)
  • remove SubagentStop hooks to prevent infinite loops (870244c)

Changed

  • update hooks.json to new hook command format (fa1974d)

Readme

npm

NPM package manager skills with dependency validation hooks for Claude Code.

Features

  • Automatic dependency sync: Ensures npm install runs when package.json or package-lock.json changes
  • Smart caching: Only runs when relevant files have changed
  • CI-like behavior: Tries npm ci first for reproducible installs, falls back to npm install

Installation

han plugin install npm

Hooks

install (Stop hook)

Automatically runs when you stop Claude Code to ensure dependencies are in sync:

  • Detects directories containing package-lock.json
  • Only runs if package.json or package-lock.json have changed since last successful run
  • Attempts npm ci first for faster, reproducible installs
  • Falls back to npm install if lockfile needs updating

Configuration

You can customize the hook behavior in your project's han-config.yml:

npm:
  hooks:
    install:
      enabled: true
      # Override the command if needed
      # command: "npm install"

To disable the hook for a specific project:

npm:
  hooks:
    install:
      enabled: false

Note

If your project uses yarn instead of npm, consider using yarn instead.

Details

Marketplace
TheBushidoCollective/han
Source
plugins/tools/npm
Category
Tool
Keywords
npm, package-manager, dependencies, node
Listed since
Apr 7, 2026

More from TheBushidoCollective/han

All 340

Similar to jutsu-npm

More Developer Tools