Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    package.json Audit: Scripts, Engines, Dependencies

    by Saizul Amin

    1

    This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.

    Free

    Security scanned
    package.json Audit: Scripts, Engines, Dependencies

    package.json Audit: Scripts, Engines, Dependencies

    Example session with this skill installed

    Run the package.json Audit skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the package json audit

    Here is what the package.json Audit: Scripts, Engines, Dependencies skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    == risky-app (-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/nodejs-backend-skills/tests/fixtures/package-json-audit/risky-app): 18 finding(s)
      HIGH   scripts.pipe_to_shell      scripts.setup: downloads and executes a remote script
             fix: vendor the script or pin it by checksum; never pipe the network into a shell
      HIGH   scripts.rm_root            scripts.clean: rm -rf on / or the home directory
             fix: use rimraf on a project path
      HIGH   version.unbounded          dependencies.express: '*' accepts any version
             fix: use a caret range (^1.2.3) and rely on the lockfile
      HIGH   version.unbounded          dependencies.lodash: 'latest' accepts any version
             fix: use a caret range (^1.2.3) and rely on the lockfile
      HIGH   version.unbounded          dependencies.pg: '>=8.0.0' has no upper bound (installs future majors)
             fix: use a caret range (^1.2.3) and rely on the lockfile
      MEDIUM lockfile.out_of_sync       package-lock.json: package-lock.json is not valid JSON (merge conflict markers?)
             fix: resolve the conflict and run npm install to regenerate it
      MEDIUM lockfile.multiple          lockfile: lockfiles from several managers: package-lock.json, yarn.lock
             fix: keep one package manager; delete the others and set packageManager
      MEDIUM scripts.dev_runtime        scripts.start: start script uses a dev runner
             fix: compile first; "start": "node dist/server.js", keep the watcher in "dev"
      MEDIUM scripts.install_hook       scripts.postinstall: 'postinstall' runs on every install of this package
             fix: prefer 'prepare' or an explicit setup script; consumers increasingly run with --ignore-scripts
      MEDIUM scripts.sudo               scripts.clean: npm script uses sudo
             fix: scripts must not need root
      MEDIUM version.url                dependencies.internal-lib: 'github:example-org/internal-lib#main' points at a URL/branch that can change
             fix: pin to a full commit SHA (#<40 hex>) or publish the package to a (private) registry
      LOW    engines.loose              engines.node: engines.node '*' allows any version
             fix: set the lowest active LTS you test on, e.g. >=20
      LOW    deps.deprecated            dependencies.request: deprecated since 2020; use fetch (Node 18+), undici or got
             fix: plan a replacement
      LOW    deps.dev_in_prod           dependencies.@types/express: '@types/express' is a dev tool in dependencies
             fix: move it to devDependencies (npm i -D) so production installs stay small
      LOW    deps.dev_in_prod           dependencies.typescript: 'typescript' is a dev tool in dependencies
             fix: move it to devDependencies (npm i -D) so production installs stay small
      LOW    deps.duplicate             dependencies.zod: listed in dependencies and devDependencies
             fix: keep one entry
      LOW    publish.not_private        private: no "private": true and no "files" allow-list
             fix: apps: add "private": true; libraries: add "files": ["dist"] so .env/tests are never published
      INFO   meta.package_manager       packageManager: no packageManager field
             fix: add e.g. "packageManager": "pnpm@10.x" (Corepack) so everyone uses the same manager
    
    5 high, 6 medium, 6 low, 1 info
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.
    package.json

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Audit a Node.js project's package.json and dependencies - missing or loose engines.node, missing, mixed or out-of-sync lockfiles (package-lock.json that would make npm ci fail), wildcard/latest/unbounded versions, git/URL dependencies on branches, curl|sh and sudo in npm scripts, postinstall hooks, nodemon/ts-node in start, dev tools and @types in dependencies, duplicates, deprecated packages (request, bull, csurf), accidental publishing, and installed packages that run install scripts - plus triage of npm audit --json (npm 7+ and npm 6/pnpm formats) into auto-fix, breaking upgrade, no-fix and dev-only groups.

    Who it's for

    Use when the user asks to review package.json, fix npm audit warnings, harden the supply chain, prepare dependencies for production or CI, or asks "which of these vulnerabilities matter?".

    What's inside

    • Tested, offline Python script(s): triage_npm_audit.py, audit_package_json.py (deterministic results, standard library only unless noted)
    • Reference guides: package-json-rules.md, npm-audit-triage.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/nodejs-backend-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Frequently Asked Questions

    Audit a Node.js project's package.json and dependencies - missing or loose engines.node, missing, mixed or out-of-sync lockfiles (package-lock.json that would make npm ci fail), wildcard/latest/unbounded versions, git/URL dependencies on branches, curl|sh and sudo in npm scripts, postinstall hook...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use package.json Audit: Scripts, Engines, Dependencies on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Free