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

OpenAPI

Skill by PyGithub

Creates or modifies PyGithub classes and methods from the GitHub REST API OpenAPI specification. It is a skill for developers who maintain the PyGithub code base.

  • Score 84
  • 7.8k stars
  • LGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install OpenAPI

Built from the published package, never by AI.

git clone --depth 1 https://github.com/PyGithub/PyGithub /tmp/PyGithub && mkdir -p ~/.claude/skills && cp -r /tmp/PyGithub/.claude/skills/openapi ~/.claude/skills/openapi

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

Step-by-step: install OpenAPI in Claude Code

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

About

The OpenAPI skill runs a Python script, scripts/openapi.py, that works with the GitHub REST API OpenAPI specification and the PyGithub code base. It fetches a spec file, builds an index of both, and then suggests paths and schemas for classes. It can also apply schemas to class properties and methods, or create new classes and methods.

Use --dry-run to make commands read-only and preview changes. The source says generated code is not guaranteed to compile and work, and it is a suggestion. The skill is aimed at contributors to PyGithub who need to add or update classes against a specific GitHub API version. Any code changes should be checked with pre-commit and mypy.

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

What it can do

  • initGenerates the spec and index files before first use, by running fetch and index.
  • fetchFetches an OpenAPI spec file from github.com for a given API and version.
  • indexIndexes the spec file and the PyGithub code base into a JSON index file.
  • suggest pathsSuggests which API paths a class should implement, with evidence. Does not modify files.
  • suggest schemasSuggests which schemas a class should implement. Adds them only with --add.
  • apply propertiesAdds or updates attributes and property accessors for a class from its schemas.
  • apply methodsAdds or updates method arguments, docstrings, assertions and web calls from path schemas.
  • create classCreates a new PyGithub class from an OpenAPI schema, optionally with tests.
  • create methodCreates a new method on a class from an OpenAPI path and response.

What you need

  • Python 3
  • A local PyGithub code base
  • An OpenAPI spec file from the rest-api-description repository
  • pre-commit and mypy for linting

Try asking

  • Suggest which paths the Commit class should implement in PyGithub
  • Apply the OpenAPI schema properties to the Commit class
  • Create a new method for the Artifact class from an OpenAPI path

Good to know

  • Generated code is not guaranteed to compile and work.
  • create-class does not support --dry-run.
  • Without --rewrite, apply methods avoids removing attributes or breaking changes.
  • Any change to the PyGithub source requires re-running the index command.

Security check

A

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

Checked automatically: .claude/skills/openapi/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB

Alternatives to OpenAPI

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

OpenAPI: common questions

What does the OpenAPI skill generate?

It generates or updates PyGithub class properties, methods and classes from the GitHub OpenAPI spec. The source calls the output a suggestion that may not compile.

Does the skill change my files when I run it?

Commands are read-only when --dry-run is given. The source says only suggest schemas with --add modifies files, unless --dry-run is used.

Which spec file does it use?

It fetches a spec file from github.com by API name and version. The source says a different spec file requires a different index file.

How do I install OpenAPI?

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

Is OpenAPI free?

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

Is OpenAPI safe to use?

It scores 84 of 100. Grades: maintenance A, licence C, 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 OpenAPI?

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

OpenAPI Install

Add to stack

Loading.