nih-audit

Identify hand-rolled utilities and recommend established libraries in a monorepo.

2|Updated Sep 12, 2016
One-click install
npx skills add https://github.com/paulnsorensen/dotfiles --skill nih-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nih-audit
Source: https://github.com/paulnsorensen/dotfiles/tree/main/claude/skills/nih-audit
Command: npx skills add https://github.com/paulnsorensen/dotfiles --skill nih-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The NIH audit helps teams quickly identify hand-rolled utilities and DIY implementations that duplicate functionality available in mature open-source libraries, reducing maintenance burden and risk.

Core Features & Use Cases

  • Detect hand-rolled utilities, retry logic, date handling, parsing, or formatting that duplicates library functionality.
  • Score and recommend libraries to adopt, considering licensing, activity, and compatibility with the repo's language.
  • Use cases: when consolidating utility code, evaluating a monorepo, or planning a build-vs-buy decision.

Quick Start

Run an NIH audit on the current repo to surface hand-rolled utilities and recommended libraries.

Frequently Asked Questions about nih-audit

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

FAQPage Schema
How do I identify reinvented utilities and hand-rolled code in a monorepo?

To identify reinvented utilities in a monorepo, perform an NIH audit to scan manifests, code, and specs for common patterns that duplicate established library functionality. This process detects hand-rolled implementations like custom retry logic or date handling.

What is an NIH audit and when do I need it for my codebase?

An NIH audit is a structured analysis that identifies hand-rolled utilities duplicating mature open-source libraries, providing a score-based rationale. You need it when consolidating utility code, evaluating a monorepo, or planning build-vs-buy decisions to reduce maintenance burden.

How do I replace hand-rolled utilities with established libraries?

To replace hand-rolled utilities with established libraries, run an audit that provides a concrete migration plan alongside library suggestions. It scores recommendations considering licensing, activity, and compatibility with your repo's language to ensure safe vetted dependency adoption.

Does the NIH audit work across multiple manifests and specs in a monorepo?

Yes, the NIH audit works across a monorepo by scanning manifests, code, and specs to detect common NIH patterns. It evaluates the entire codebase to surface hand-rolled utilities and provides structured library recommendations with usage details.

What is the best way to evaluate build-vs-buy decisions for utility code?

The best way to evaluate build-vs-buy decisions for utility code is to run an NIH audit that scores and recommends established libraries. It provides a structured rationale and migration plan for replacing DIY implementations with vetted dependencies.

Can I get licensing and compatibility details when adopting recommended libraries?

Yes, you get licensing and compatibility details when adopting recommended libraries through the audit's structured score-based rationale. It evaluates library activity and compatibility with your repo's language to ensure safe replacement of hand-rolled utilities.