Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

api-surface-review

Skill by polarsource

Reviews diffs that change Polar's API contract, including Pydantic schemas, FastAPI endpoints, OpenAPI output and generated SDKs. Helps maintainers judge exposure, shape, naming and breaking changes in pull requests.

  • Score 84
  • 11k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install api-surface-review

Built from the published package, never by AI.

git clone --depth 1 https://github.com/polarsource/polar /tmp/polar && mkdir -p ~/.claude/skills && cp -r /tmp/polar/.agents/skills/api-surface-review ~/.claude/skills/api-surface-review

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install api-surface-review in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill reviews changes to Polar's API surface. It is triggered when a diff touches files such as schemas.py, endpoints.py, docs/openapi.json or sdk/, or when a user asks whether an API change is breaking. It checks whether new routes and fields are public or private, whether schema shape and naming follow the repo's rules, and whether a change breaks merchants or generated clients.

The skill reads the OpenAPI Diff pull request comment rather than recomputing the schema delta by hand. Its output groups findings as blocking, should fix, or questions, and it ends with a verdict. It defers ADR, endpoint convention, reuse and deploy-safety checks to other skills. It is written for engineers reviewing changes to Polar's backend and its SDKs.

Written from the project's SKILL.md and checked against it.

What it can do

  • Public or private checkChecks whether new routes and fields should be public (in the SDK) or private, using APITag.
  • Schema shape reviewChecks required and nullable fields, enum typing, base schema reuse and user-facing descriptions.
  • Naming reviewChecks union and variant names, snake_case fields and avoiding overloaded concepts.
  • Breaking change reviewFlags removed fields, type changes, renames and status code changes that clients may depend on.
  • Route shape reviewChecks trailing slashes, distinct status codes, pure query filters and list endpoint filtering.
  • Verdict outputProduces a structured review with blocking, should fix, question and notes sections and a verdict.

What you need

  • Access to the Polar repository diff
  • Access to the OpenAPI Diff pull request comment, if present
  • Access to Logfire to check real usage before removing a field

Try asking

  • Review this diff for breaking changes to Polar's API contract
  • Is this new field in schemas.py public or private?
  • Check this endpoints.py change against the Polar API conventions

Good to know

  • Does not recompute the OpenAPI Diff or client regeneration checks; it reads CI results instead
  • Breaking changes are flagged for a human decision, not approved automatically
  • ADR, endpoint convention, reuse and deploy-safety checks are handled by other skills

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/api-surface-review/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB

Alternatives to api-surface-review

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

api-surface-review: common questions

What does the api-surface-review skill check?

It checks public versus private exposure, schema shape and naming, route shape, and whether a change breaks merchants or generated clients.

Does it replace the OpenAPI Diff CI check?

No. The source says it reads the OpenAPI Diff pull request comment and judges whether the delta is acceptable, instead of recomputing it.

When should this skill be used?

The source says to use it when a diff touches schemas.py, endpoints.py, docs/openapi.json or sdk/, or when a user asks whether an API change is breaking.

How do I install api-surface-review?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is api-surface-review free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is api-surface-review safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to api-surface-review?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

api-surface-review Install

Add to stack

Loading.