onboard-to-openapi-server

Convert an Express router in a Backstage backend plugin to an OpenAPI-based router.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/jacobduijzer/bimcollab-backstage-demo --skill onboard-to-openapi-server
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: onboard-to-openapi-server
Source: https://github.com/jacobduijzer/bimcollab-backstage-demo/tree/main/src/bimcollab/.agents/skills/onboard-to-openapi-server
Command: npx skills add https://github.com/jacobduijzer/bimcollab-backstage-demo --skill onboard-to-openapi-server

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires backstage-repo-tools, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the migration of existing Backstage backend plugin's hand-written Express router to the typed OpenAPI tooling, enhancing maintainability and scalability.

Core Features & Use Cases

  • Router Migration: Converts Express routers to typed OpenAPI definitions.
  • Server Stub Generation: Generates server stubs for typed routing.
  • Client Generation: Optionally generates typed clients for API consumption.
  • Test Migrations: Optionally migrates router tests to OpenAPI test wrappers.
  • Use Case: Migrate a plugin with a complex router to leverage OpenAPI for better documentation and easier maintenance.

Quick Start

Run the onboard-to-openapi-server skill on your plugin directory to start the migration process.

Frequently Asked Questions about onboard-to-openapi-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate an Express router to OpenAPI in a Backstage backend plugin?

To migrate an Express router to OpenAPI in a Backstage backend plugin, use this Skill to convert hand-written routes into typed OpenAPI definitions and generate server stubs. The process requires a working Express router and passing tests to succeed.

Can I generate typed clients from an OpenAPI definition in Backstage?

Yes, you can generate typed clients for API consumption in Backstage. This Skill optionally creates typed clients and migrates router tests to OpenAPI test wrappers after converting your existing Express router endpoints.

What prerequisites are needed to convert Express routers to OpenAPI server stubs?

Converting Express routers to OpenAPI server stubs requires a Backstage backend plugin with a working Express router and passing tests. Additionally, the backstage-repo-tools dependency must be present in your environment to facilitate the migration.

Why should I migrate my Backstage plugin's hand-written Express router to OpenAPI?

You should migrate your hand-written Express router to OpenAPI to enhance maintainability and scalability. This transition enables typed client generation and provides better API documentation for your Backstage backend plugin.

Does this Express router migration tool update my existing plugin tests?

Yes, this Express router migration tool optionally updates your existing plugin tests. It migrates current router tests to OpenAPI test wrappers, ensuring your test suite remains functional and aligns with the newly generated server stubs.

What are the limitations of automating Express router to OpenAPI migration?

A key limitation of automating Express router to OpenAPI migration is the strict requirement for a working Express router and passing tests beforehand. Without a functional test suite, the automated migration process cannot be successfully executed.