api-validation-workflow

api-validation-workflow is a cursor rule for Cursor from felipebarcelospro/igniter-js. It costs 2,390 tokens per session, scanned A, original, Apache-2.0.

A development workflow for checking OpenAPI definitions and testing HTTP requests to application APIs.

In plain words
What is it for?
Use it to retrieve API specifications, test endpoints, validate API contracts, and repeat checks after fixes to catch regressions.
Why use it?
It helps catch incorrect endpoints, data structures, success cases, and error cases before a feature is considered complete.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to retrieve API specifications, test endpoints, validate API contracts, and repeat checks after fixes to catch regressions.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/felipebarcelospro/igniter-js/api-validation-workflow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/felipebarcelospro/igniter-js

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-validation-workflow

README.md
[![agentmods](https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/api-validation-workflow/github.svg)](https://agentmods.dev/rules/felipebarcelospro/igniter-js/api-validation-workflow)
Your own site
<a href="https://agentmods.dev/rules/felipebarcelospro/igniter-js/api-validation-workflow"><img src="https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/api-validation-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-validation-workflow

Your own site · 80×15
<a href="https://agentmods.dev/rules/felipebarcelospro/igniter-js/api-validation-workflow"><img src="https://agentmods.dev/badge/rules/felipebarcelospro/igniter-js/api-validation-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,390 This file is loaded in full into every session.
When invoked 2,390 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02390 $0.02390
Opus 5.5 $0.00956 $0.00956
Sonnet 5.5 $0.00478 $0.00478
Haiku 4.5 $0.00239 $0.00239

Measured 1mo ago against content hash f331f2a30c05, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-validation-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

apps/sample-realtime-chat/.cursor/rules/api-validation-workflow.mdc · 376 lines

How it starts

The opening of the file, as written. The whole thing — 376 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Validation Workflow Integration

This rule defines how API validation tools (get_openapi_spec and make_api_request) should be integrated into the development workflow to enable autonomous testing and continuous validation of implemented features.

1. Development Cycle Integration

1.1 Workflow Phases with API Validation

graph TB
    A[Requirements Gathering] --> B[Planning]
    B --> C[Waiting Approval]
    C --> D[Work Phase]
    D --> E{Validation Phase}
    E --> F[API Testing]
    F --> G{Tests Pass?}
    G -->|Yes| H[Revise & Document]
    G -->|No| I[Debug & Fix]
    I --> F
    H --> J[Feedback]
    J --> K[Learn & Improve]

    style F fill:#e1f5fe
    style G fill:#fff3e0

1.2 Mandatory Integration Points

During Work Phase:

  • After implementing each endpoint
  • After modifying API data structures
  • Before marking tasks as complete

During Validation Phase:

  • Complete validation of implemented feature
  • Testing success and error scenarios
  • API contract validation

During Revise Phase:

  • Re-testing after fixes
  • Regression validation

2. Tool Usage Protocols

2.1 get_openapi_spec Protocol

When to use:

  • At the beginning of each development session
  • After generating or modifying controllers
  • Before implementing client/frontend code
  • To understand existing API contracts

Usage workflow:

// 1. Ensure development server is running
await dev({ port: 3000, watch: true });

// 2. Fetch OpenAPI specification
const spec = await get_openapi_spec();

// 3. Analyze available endpoints
// 4. Plan tests based on specification
// 5. Store insights about the API

Knowledge storage:

  • Always store significant API changes as api_mapping memories
  • Document new endpoints and their responsibilities
  • Relate endpoints to features and requirements

2.2 make_api_request Protocol

When to use:

  • After implementing any endpoint
  • To test success scenarios (happy path)
  • To test error scenarios and edge cases
  • To validate changes in existing endpoints
  • During API problem debugging

Read the full file on GitHub · 376 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 376 lines · 2,390 tokens per session scan A f331f2a30c05

Subscribe to this mod's changes

api-validation-workflow is a cursor rule published in the GitHub repository felipebarcelospro/igniter-js (241 stars, last pushed 11d ago), licensed Apache-2.0. It adds 2,390 tokens to every session, about $0.0096 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other cursor rules, from other repositories