Extracts and documents public API surfaces from NPM packages using TypeScript Compiler API (ts.createProgram) and API Extractor from @microsoft/api-extractor. Generates .api.md report files and .d.ts rollups.
Scanned 6/8/2026
Install via CLI
openskills install agentskillexchange/skills---
name: "NPM Package API Surface Extractor"
slug: "npm-package-api-surface-extractor"
description: "Extracts and documents public API surfaces from NPM packages using TypeScript Compiler API (ts.createProgram) and API Extractor from @microsoft/api-extractor. Generates .api.md report files and .d.ts rollups."
verification: "security_reviewed"
source: "https://api-extractor.com/"
author: "Microsoft"
category: "Library & API Reference"
framework: "Claude Code"
---
# NPM Package API Surface Extractor
Extracts and documents public API surfaces from NPM packages using TypeScript Compiler API (ts.createProgram) and API Extractor from @microsoft/api-extractor. Generates .api.md report files and .d.ts rollups.
## Prerequisites
Node.js, TypeScript
## Installation
Requirements and caveats from upstream:
- Missing exports: Suppose the awesome-widgets package exports an API function AwesomeButton.draw() that requires a parameter of type DrawStyle , but you forgot to export this enum. Things seem fine at first, but when a...
Basic usage or getting-started notes:
- API Extractor helps you build better TypeScript library packages. Suppose for example that your company has published an NPM package called “ awesome-widgets ” that exports many classes and interfaces. As developers s...
- Source: https://api-extractor.com/
## Documentation
- https://api-extractor.com/
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/npm-package-api-surface-extractor/)
No comments yet. Be the first to comment!