insomnia-collection-generator

Generate Insomnia v4 collection exports from Express, Next.js, and Fastify routes.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/Camilo8902/GabyCosmetics --skill insomnia-collection-generator-camilo8902
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: insomnia-collection-generator
Source: https://github.com/Camilo8902/GabyCosmetics/tree/main/.claude/skills/insomnia-collection-generator
Command: npx skills add https://github.com/Camilo8902/GabyCosmetics --skill insomnia-collection-generator-camilo8902

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of Insomnia API collections, saving developers significant time and effort in setting up their API testing environments.

Core Features & Use Cases

  • Automated Collection Generation: Creates Insomnia workspaces, request groups, and requests directly from API route definitions.
  • Framework Agnostic: Supports Express, Next.js, Fastify, and other API frameworks.
  • Use Case: When you need to share your API structure with a colleague or set up a new testing environment, use this Skill to generate an Insomnia collection that can be imported directly.

Quick Start

Use the insomnia-collection-generator skill to generate an Insomnia collection for your Express API located in the './src' directory, outputting to './insomnia-collection.json'.

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 existing API routes?

To generate an Insomnia collection, this Skill scans your API route definitions to extract methods, paths, parameters, and bodies, then exports them as an Insomnia v4 JSON file. It creates organized workspaces, request groups, and environments automatically.

Can I create an Insomnia workspace from an Express or Next.js project?

Yes, you can create an Insomnia workspace from an Express or Next.js project. This Skill supports multiple frameworks including Express, Next.js, and Fastify by scanning your source directories for API route definitions.

Does the Insomnia collection generator extract authentication configurations and request bodies?

Yes, the Insomnia collection generator extracts authentication configurations and request bodies. It automatically scans routes to extract metadata including methods, paths, parameters, and bodies for comprehensive API testing setups.

How do I automate API testing environment setup for my team?

You automate API testing environment setup by generating an Insomnia collection export file from your API routes. This creates a shareable JSON file that colleagues can import directly into Insomnia, replicating the full workspace structure.

What is the best way to export Fastify API routes to Insomnia v4 JSON?

The best way to export Fastify API routes to Insomnia v4 JSON is using an automated collection generator. It scans your Fastify route definitions and structures them into Insomnia-compatible workspaces with request groups and environments.

Are there limitations when generating Insomnia collections from API frameworks?

The primary limitation is framework support; this Skill currently targets Express, Next.js, and Fastify. Generated collections use the Insomnia v4 JSON export format, so compatibility depends on your Insomnia client version supporting this format.