---
name: "insomnia-api-spec-designer"
description: "Design, test, and document REST and GraphQL APIs using Insomnia Git sync."
metadata:
  author: "Kong"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "design api spec in insomnia"
  - "chain requests insomnia"
  - "sync insomnia with git"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Insomnia Document-Driven REST Designer

Manages collaborative API workspaces with Insomnia: OpenAPI design linting, environment switching, request chaining, and bidirectional Git repository synchronization.

## When to Invoke
Invoke this skill whenever you need to:
- design api spec in insomnia
- chain requests insomnia
- sync insomnia with git

## Execution SOP & Rules
1. Configure base environments and sub-environments (Local, Staging, Production).
2. Use response tag chaining ({% response 'body', ... %}) to extract dynamic token values.
3. Lint OpenAPI specifications against industry best practices before publishing.
4. Export collections as standardized JSON for import into partner toolchains.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
