package-json-maintenance — community package-json-maintenance, typescript-features-by-version, community, ide skills, Claude Code, Cursor, Windsurf

v0.1
GitHub

About this Skill

Ideal for JavaScript-focused AI Agents requiring automated package maintenance and security auditing capabilities. Sample code for each major and minor feature of Typescript based on blog post announcements from the Typescript team.

WhatIfWeDigDeeper WhatIfWeDigDeeper
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The package-json-maintenance skill by WhatIfWeDigDeeper is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for JavaScript-focused AI Agents requiring automated package maintenance and security auditing capabilities.

Core Value

Empowers agents to perform security audits, detect vulnerabilities, and update dependencies using npm, yarn, pnpm, or bun, ensuring project security and integrity with features like glob pattern support and automatic package manager detection.

Capabilities Granted for package-json-maintenance

Automating dependency updates for npm, yarn, pnpm, or bun packages
Performing security audits to identify CVE vulnerabilities
Managing packages using specific, all, or glob pattern selections

! Prerequisites & Limits

  • Requires isolated worktree for package maintenance
  • Limited to JavaScript package management ecosystems
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

package-json-maintenance

Install package-json-maintenance, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command...

SKILL.md
Readonly

Package.json Maintenance

Manages JavaScript package maintenance tasks in an isolated worktree, including security audits and dependency updates. Automatically detects and uses the project's package manager (npm, yarn, pnpm, or bun).

Arguments

  • Specific packages: jest @types/jest
  • All packages: .
  • Glob patterns: @testing-library/* jest*

Workflow Selection

Based on user request:

Shared Process

1. Create Isolated Environment

Preferred: Worktree (isolated, non-disruptive)

bash
1TIMESTAMP=$(date +%Y%m%d-%H%M%S) 2BRANCH_NAME="pkg-maintenance-$TIMESTAMP" 3WORKTREE_PATH="../$BRANCH_NAME" 4git worktree add "$WORKTREE_PATH" -b "$BRANCH_NAME" 5cd "$WORKTREE_PATH" 6USE_WORKTREE=true

Fallback: Branch (if worktree fails due to sandbox directory restrictions)

Prompt user: "Worktree creation failed (sandbox may restrict creating directories outside the working directory). Run in current directory on a new branch instead? This will stash any uncommitted changes."

If user accepts:

bash
1git stash --include-untracked 2git checkout -b "$BRANCH_NAME" 3USE_WORKTREE=false

2. Detect Package Manager

Check for lock files to determine the package manager. See references/package-managers.md for detection logic and command mappings.

bash
1if [ -f "bun.lockb" ]; then PM="bun" 2elif [ -f "pnpm-lock.yaml" ]; then PM="pnpm" 3elif [ -f "yarn.lock" ]; then PM="yarn" 4else PM="npm" 5fi

Also check package.json for packageManager field which takes precedence.

3. Verify Registry Access

Verify the package manager can reach its registry. See references/package-managers.md for manager-specific commands.

If this fails, prompt user: "Cannot reach package registry. Sandbox may be blocking network access. To allow package manager commands in sandbox mode, update settings.json."

Do not proceed until connectivity is confirmed.

4. Discover Package Locations

Find all package.json files excluding node_modules:

bash
1find . -name "package.json" -not -path "*/node_modules/*" -type f

Store results as an array of directories to process.

5. Identify Packages

  • Parse $ARGUMENTS to determine packages
  • For globs, expand against package.json dependencies
  • For ., process all packages

6. Validate Changes

Check package.json scripts for available validation commands:

PurposeCommon names
Buildbuild, compile, tsc
Lintlint, check, eslint
Testtest, jest, vitest

Run available scripts using $PM run <script> in order (build → lint → test), continuing on failure to collect all errors. Skip any that don't exist.

If validation fails, revert to previous version before continuing.

7. Update Documentation for Major Version Changes

For major version upgrades (e.g., 18.x to 19.x):

  1. Search for version references: grep -r "React 18\|Express 4" --include="*.md" .
  2. Update in: CLAUDE.md, README.md, docs/*.md
  3. Skip: specs/*/research.md, specs/*/tasks.md, archived files
  4. Include changes in report/PR description

8. Cleanup

If using worktree:

bash
1cd - 2git worktree remove "$WORKTREE_PATH" 3# Delete branch only if no PR was created 4git branch -d "$BRANCH_NAME"

If using branch fallback:

bash
1git checkout - 2git stash pop 3# Delete branch only if no PR was created 4git branch -d "$BRANCH_NAME"

Edge Cases

  • No package.json: Error with clear message
  • Not a git repo: Error - git required for branch/worktree isolation
  • Package not found: Suggest checking package name
  • Glob matches nothing: Warn and list available packages
  • Network restricted: Package manager commands require internet access; will fail in offline sandbox environments
  • Unsupported package manager: If using an unrecognized package manager, prompt user for guidance

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is package-json-maintenance?

Ideal for JavaScript-focused AI Agents requiring automated package maintenance and security auditing capabilities. Sample code for each major and minor feature of Typescript based on blog post announcements from the Typescript team.

How do I install package-json-maintenance?

Run the command: npx killer-skills add WhatIfWeDigDeeper/typescript-features-by-version/package-json-maintenance. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for package-json-maintenance?

Key use cases include: Automating dependency updates for npm, yarn, pnpm, or bun packages, Performing security audits to identify CVE vulnerabilities, Managing packages using specific, all, or glob pattern selections.

Which IDEs are compatible with package-json-maintenance?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for package-json-maintenance?

Requires isolated worktree for package maintenance. Limited to JavaScript package management ecosystems.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add WhatIfWeDigDeeper/typescript-features-by-version/package-json-maintenance. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use package-json-maintenance immediately in the current project.

Related Skills

Looking for an alternative to package-json-maintenance or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI