review-api-usage

Solid

Check API, library, and framework usage in code against official documentation and installed skill knowledge. Flags deprecated APIs, incorrect method signatures, wrong parameter types, version-incompatible patterns, and best-practice violations. Use when the user asks to "review API usage", "check API usage", "verify against docs", "check library usage", "validate API calls", "check against documentation", or "check for deprecated APIs".

Code & Development 335 stars 26 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
84
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Review API Usage Check API, library, and framework usage in code against official documentation and installed skill knowledge. Return structured findings. ## Step 1: Determine the Scope Determine what to review: - If a specific **diff command** was provided (e.g., `git diff --cached`, `git diff main...HEAD`), use that. - If a **file list or directory** was provided, review those files directly (read the full files, not a diff). - If **neither** was provided, default to diffing against the repository's default branch (detect via `gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'`). ## Step 2: Extract Library Usage 1. For diff scope: run the diff command to obtain the changes and identify external library/framework APIs in changed lines. For file scope: read the specified files and identify all external library/framework API usage. 2. Cross-reference with project dependency files to determine library versions in use 3. Filter out standard library and language built-ins. Focus on third-party dependencies. If no external library usage is found, report that and stop. ## Step 3: Look Up Documentation For each identified library with non-trivial usage in the diff: 1. Resolve the library using documentation MCP tools or WebSearch 2. Query for the specific APIs, methods, or configuration patterns being used 3. Note the documented signatures, parameter types, return types, deprecation status, and version requirements Prioritize libraries where the diff int...

Details

Author
tobihagemann
Repository
tobihagemann/turbo
Created
3 months ago
Last Updated
5 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category