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

manage-server-data/generate-rtk-query-from-openapi

Skill by reduxjs

Guides generation of RTK Query endpoints from OpenAPI schemas using @rtk-query/codegen-openapi. Covers the empty API pattern, endpoint filtering, endpoint overrides, generated tags, and reviewing output before use.

  • Score 91
  • 11k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install manage-server-data/generate-rtk-query-from-openapi

Built from the published package, never by AI.

git clone --depth 1 https://github.com/reduxjs/redux-toolkit /tmp/redux-toolkit && mkdir -p ~/.claude/skills && cp -r /tmp/redux-toolkit/packages/rtk-query-codegen-openapi/skills/manage-server-data/generate-rtk-query-from-openapi ~/.claude/skills/manage-server-data-generate-rtk-query-fr

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

Step-by-step: install manage-server-data/generate-rtk-query-from-openapi in Claude Code

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

About

This skill guides an AI assistant through generating RTK Query endpoints from OpenAPI schemas with the @rtk-query/codegen-openapi package. It shows how to create an empty API root and point a codegen config at it, so generated endpoints plug into one shared API. It also covers filtering endpoints with filterEndpoints, using endpointOverrides to change endpoint types, parameters, or tags, and reviewing generated output before it becomes part of the app.

It is for developers who use Redux Toolkit and want to build RTK Query endpoints from an OpenAPI file. The skill notes that generated tags are string-only by default and can invalidate more cache than intended. It also says real schemas often need type, parameter, or tag corrections, so generated code should be treated as reviewed source. It requires the adopt-rtk-query skill.

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

What it can do

  • Empty API patternGenerates endpoints into a shared empty createApi root instead of a new API root.
  • filterEndpointsLimits generation to a narrow slice of a broad OpenAPI schema using names or patterns.
  • endpointOverridesOverrides generated endpoint type, parameter filtering, or provided tags for matched endpoints.
  • Generated tagsSets tag: true so generated endpoints use RTK Query tags for cache invalidation.
  • Output reviewGuides checking generated endpoints and overriding behavior instead of hand-editing the output file.

What you need

  • @rtk-query/codegen-openapi
  • @reduxjs/toolkit
  • An OpenAPI schema file or URL
  • The adopt-rtk-query skill

Try asking

  • Generate RTK Query endpoints from my openapi.json into an empty API
  • Filter generated endpoints to only the User-related operations
  • Override the getPetById endpoint to provide a SinglePet tag

Good to know

  • Generated tags are string-only by default and can invalidate more cache than intended.
  • Generated output often needs type, parameter, or tag corrections and should be reviewed.

Security check

A

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

Checked automatically: packages/rtk-query-codegen-openapi/skills/manage-server-data/generate-rtk-query-from-openapi/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • references/codegen-overrides.md1 KB

Alternatives to manage-server-data/generate-rtk-query-from-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

manage-server-data/generate-rtk-query-from-openapi: common questions

Why should generated RTK Query code extend an empty API?

The source says codegen works best when it extends a single RTK Query architecture instead of creating standalone API roots. This keeps invalidation and store wiring coherent.

How do I keep generated endpoints from invalidating too much cache?

The source says generated tags are string-only by default, so it recommends adding endpointOverrides with specific providesTags for endpoints such as getPetById.

Should I edit the generated file by hand to fix endpoints?

No. The source advises reviewing generated endpoints and using endpointOverrides to change type, parameter, or tag behavior instead of hand-editing the emitted file.

How do I install manage-server-data/generate-rtk-query-from-openapi?

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

Is manage-server-data/generate-rtk-query-from-openapi free?

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

Is manage-server-data/generate-rtk-query-from-openapi safe to use?

It scores 91 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 manage-server-data/generate-rtk-query-from-openapi?

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

manage-server-data/generate-rtk-query-from-openapi Install

Add to stack

Loading.