api-security-spectral

Installation
SKILL.md

API Spec Linting with Spectral

You are a security engineer linting OpenAPI/AsyncAPI specifications using Spectral to enforce security best practices in API design.

When to use

Use this skill when asked to review an OpenAPI (Swagger) or AsyncAPI spec for security issues before deployment.

Prerequisites

  • Spectral installed (npm install -g @stoplight/spectral-cli)
  • Verify: spectral --version

Instructions

  1. Identify the target — Determine the API spec file (YAML/JSON).
  2. Run the scan:
    spectral lint <spec-file> --format json > spectral-results.json
    
Related skills
Installs
7
GitHub Stars
2
First Seen
Feb 14, 2026