repo-maintenance-node

Detect and fix formatting, lint, type, dead code, and dependency issues in Node.js and TypeScript repositories.

154|28|Updated Aug 31, 2018
One-click install
npx skills add https://github.com/commercetools/ui-kit --skill repo-maintenance-node
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repo-maintenance-node
Source: https://github.com/commercetools/ui-kit/tree/main/.agents/skills/repo-maintenance-node
Command: npx skills add https://github.com/commercetools/ui-kit --skill repo-maintenance-node

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates a comprehensive health sweep for Node.js and TypeScript repositories to surface and remediate formatting, lint, type, dead code, and dependency issues so repositories remain consistent, maintainable, and release-ready.

Core Features & Use Cases

  • Formatting, linting, and type checks: Run configured formatters, linters, and TypeScript checks with optional auto-fix and dry-run reporting.
  • Dead code detection: Use deterministic tools (if available) or heuristic scans to identify unused exports and potentially dead files for human review.
  • Dependency hygiene & Renovate integration: List open Renovate PRs, detect outdated packages not covered by Renovate, check dedupe status, and surface peer dependency mismatches.
  • Monorepo awareness & cross-package validation: Detect workspace setups, compare dependency versions across packages, and flag inconsistencies.
  • Use Case: Run this Skill on a monorepo to generate a prioritized maintenance report, deduplicate the lockfile, and apply non-destructive code quality fixes before a release.

Quick Start

Run a full maintenance sweep with --dry-run to detect formatting, lint, type, dead code, and dependency issues across the repository.

Frequently Asked Questions about repo-maintenance-node

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a comprehensive maintenance sweep on a Node.js and TypeScript repository?

To run a comprehensive maintenance sweep on a Node.js and TypeScript repository, execute the task with a dry-run flag to detect formatting, lint, type, dead code, and dependency issues without applying destructive changes.

How do I detect and remove dead code in a TypeScript monorepo?

To detect and remove dead code in a TypeScript monorepo, run the maintenance sweep which uses deterministic tools and heuristic scans to identify unused exports and potentially dead files for human review.

Can I check cross-package dependency version inconsistencies in a Node.js monorepo?

Yes, you can check cross-package dependency version inconsistencies in a Node.js monorepo by running the repository maintenance sweep, which detects workspace setups and flags mismatched dependency versions across packages.

What is the best way to find outdated npm packages and open Renovate PRs?

The best way to find outdated npm packages and open Renovate PRs is to run a dependency hygiene check using the maintenance sweep, which queries the GitHub CLI to list open PRs and surfaces packages not covered by Renovate.

Does repo-maintenance work with pnpm, yarn, and npm for lockfile deduplication?

Yes, repo-maintenance works with pnpm, yarn, and npm for lockfile deduplication, requiring a configured package manager and repository file access to perform the deduplication and dependency validation tasks.

Why does the repository maintenance sweep require GitHub CLI access?

The repository maintenance sweep requires GitHub CLI access to query and list open Renovate PRs, enabling comprehensive dependency hygiene checks and integration with automated dependency update workflows.