# Deps Minor

> Safe minor dependency updates with validation (lint/test/build) and automatic rollback on failure. Use when this capability is needed.

- Skill: `tomevault-io/deps-minor` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/deps-minor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/deps-minor/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/deps-minor

---


# Purpose

Perform safe **minor** npm dependency updates for the current project.  
Run validation (lint → test → build) after each update, and revert if any step fails.  
No major updates are performed.

# Scope

- Operates on both `dependencies` and `devDependencies`.
- Updates only minor versions (`x.X.x`).
- No git operations.
- Excludes i18next* and storybook* packages.

# Process

1. **Discovery**
   - Run: `ncu --target minor --jsonAll`
   - Filter out:
     - Any package containing `i18next`, `18next`, or `storybook`
2. **Batch Update**
   - Update in batches of ≤8 packages:
     ```bash
     ncu -u <pkg-list> --target minor
     npm install --no-audit --no-fund
     ```
3. **Validation**
   - Run (if present):
     ```bash
     npm run lint
     npm run test
     npm run build
     ```
   - If any step fails:
     - Revert last batch changes using backup copy.
     - Log failure and skip problematic packages.
4. **Reporting**
   - Output summary with:
     - Updated packages
     - Skipped packages
     - Validation results
   - Remind user: “No git operations were performed.”

# Tool Permissions

- **Bash**: run shell commands
- **Read**: inspect `package.json`, test scripts
- **Write**: modify `package.json`, `package-lock.json`

# Safety

- Always back up `package.json` and `package-lock.json` before updates.
- Never touch excluded packages.
- Stop on first failed batch.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/huseyindeniz) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

