auditing-api-surface

Official

Identify dead API exports across fleets.

AuthorSocketDev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Audits a library's published export surface to identify dead or unconsumed subpaths. For each package.json#exports subpath, it checks whether any other fleet repo imports it and whether the lib's own src/ references it, then classifies every subpath (dead / single-consumer / internal-only / consumed) into a ranked report. Read-only — reports prune candidates, never deletes. Use weekly (the audit-api-surface.lock.yml gh-aw cron drives it), before a major version bump, or when trimming bundle size on an infra lib.

Core Features & Use Cases

  • Cross-repo export surface auditing across fleet libraries to surface dead exports.
  • Classifies subpaths into dead, single-consumer, internal-only, or consumed with a concise report.
  • Read-only workflow designed for governance, version-bump planning, and bundle trimming.

Quick Start

Run the audit-api-surface tool on your repository to generate a ranked report of dead, single-consumer, internal-only, and consumed exports.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: auditing-api-surface
Download link: https://github.com/SocketDev/socket-mcp/archive/main.zip#auditing-api-surface

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.