insomnia-collection-generator

Generate Insomnia v4 workspaces from Node.js API routes.

5|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/patricio0312rev/skillset --skill insomnia-collection-generator-patricio0312rev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: insomnia-collection-generator
Source: https://github.com/patricio0312rev/skillset/tree/main/templates/testing/insomnia-collection-generator
Command: npx skills add https://github.com/patricio0312rev/skillset --skill insomnia-collection-generator-patricio0312rev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires commander, uuid, and includes scripts (resource) components.

What problem does it solve?

Automates creation of Insomnia workspaces from API routes in your codebase to streamline API testing and documentation.

Core Features & Use Cases

  • Auto-generates workspace structures from Express, Next.js, Fastify, and other Node.js APIs.
  • Organizes endpoints into resource-based groups with environments and authentication.
  • Exports a ready-to-import Insomnia v4 collection for rapid testing and sharing.

Quick Start

Run the insomnia-gen script to generate a collection from your project's API routes.

Frequently Asked Questions about insomnia-collection-generator

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

FAQPage Schema
How do I generate an Insomnia collection from API routes in a Node.js project?

To generate an Insomnia collection, run the insomnia-gen script to scan your Node.js API routes and output a ready-to-import v4 export. The generated collection automatically organizes endpoints into resource groups and configures authentication.

Can I generate Insomnia workspaces from Fastify and Next.js route definitions?

Yes, you can generate Insomnia workspaces from Fastify and Next.js route definitions. The generator applies to Express, Next.js, Fastify, or any Node.js API project, organizing routes into structured request groups.

What is the best way to organize API endpoints into resource groups for Insomnia?

The best way to organize API endpoints into resource groups is to automate workspace creation from your codebase. This Skill maps your route definitions into resource-based groups with pre-configured environments and authentication.

How do I set up environments and authentication when exporting an Insomnia v4 collection?

When exporting an Insomnia v4 collection, the generator automatically configures environments and authentication based on the API routes detected in your codebase. This creates a ready-to-import workspace with structured request groups.

Do I need to manually configure request groups when creating an Insomnia workspace from an Express API?

No, you do not need to manually configure request groups when creating an Insomnia workspace from an Express API. The generator automatically parses route definitions to organize endpoints into resource-based groups.

What format does the insomnia-gen script output for sharing API testing workspaces?

The insomnia-gen script outputs an Insomnia v4 export file. This format contains the workspace, environments, request groups, and requests derived from your route definitions, making it ready for rapid testing and sharing.