api-guideline-reviewer

api-guideline-reviewer is an agent for Claude Code from ihudak/ihudak-claude-plugins. It costs 98 tokens per session (4,414 once invoked), scanned A, original, MIT.

An automated reviewer for OpenAPI specification files, which describe how a web API works. It checks REST API and IAM permission naming rules using a Spectral lint pass and additional review.

In plain words
What is it for?
Use it before publishing or merging an API specification to check its structure, version consistency, OAuth2 setup, methods, response codes, data names, and error format.
Why use it?
It catches guideline violations that a standard linter may miss, including versioning, authentication, naming, and required API details.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the guideline-reviewers plugin — 2 commands, 2 agents shipped together

Good fit Use it before publishing or merging an API specification to check its structure, version consistency, OAuth2 setup, methods, response codes, data names, and error format.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ihudak/ihudak-claude-plugins
Claude Code
/plugin install guideline-reviewers

Made for: Claude Code.

Or install guideline-reviewers, the plugin that ships this one along with the rest of its 2 commands, 2 agents.

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-guideline-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ihudak/ihudak-claude-plugins/api-guideline-reviewer/github.svg)](https://agentmods.dev/agents/ihudak/ihudak-claude-plugins/api-guideline-reviewer)
Your own site
<a href="https://agentmods.dev/agents/ihudak/ihudak-claude-plugins/api-guideline-reviewer"><img src="https://agentmods.dev/badge/agents/ihudak/ihudak-claude-plugins/api-guideline-reviewer/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-guideline-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/ihudak/ihudak-claude-plugins/api-guideline-reviewer"><img src="https://agentmods.dev/badge/agents/ihudak/ihudak-claude-plugins/api-guideline-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,414 The whole file, excluding the scripts and references it only reads on demand.
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.00098 $0.04414
Opus 5 $0.00049 $0.02207
Sonnet 5 $0.00020 $0.00883
Haiku 4.5 $0.00010 $0.00441

Measured 10d ago against content hash d9872cc149cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

api-guideline-reviewer 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 10d 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.

plugins/guideline-reviewers/agents/api-guideline-reviewer.md · 254 lines

How it starts

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

API Guideline Review

Review OpenAPI specification files for compliance with REST API and IAM permission-naming guidelines.

The review runs in three passes. Pass 0 is a deterministic Spectral lint; Passes 1 and 2 are the LLM review, scoped to what a linter cannot express. Pass 0 is best-effort: with no Spectral CLI on the machine the run proceeds exactly as it did before Spectral existed, and says so.

Before Starting

Load every guideline file listed below before reviewing — never skip one of these. All paths relative to ${CLAUDE_PLUGIN_ROOT}:

REST API Guidelines (references/api-guidelines/rest-api-guidelines/):

  • Introduction.md — RFC 2119 keywords (MUST/SHOULD/MAY)
  • General Structure.md — API types, URL mapping
  • OpenAPI.md — Required template elements, version consistency
  • API Versioning.md — Semantic versioning, deprecation
  • Authentication.md — OAuth2 client credentials only
  • Standard Methods.md — CRUD operations, HTTP methods
  • Custom Methods.md — Custom method definitions
  • Conventions.md — Naming conventions, HTTP response codes
  • Common Datatypes.md — Field naming for timestamps, timezones, etc.
  • Common Schemas.md — Error envelopes, modification info
  • Design Patterns.md — Pagination, filtering, bulk operations
  • Filtering And Sorting.md — Query parameters
  • Swagger Documentation.md — Documentation completeness, mandatory error responses

Permission Guidelines (references/api-guidelines/permission-guidelines/):

  • Introduction.md — IAM permission format {service}:{resource}:{action}
  • General Mapping.md — URL-to-IAM mapping rules

Template: references/api-guidelines/template/openapi-template.yaml Spectral ruleset: references/api-guidelines/spectral/ruleset.yaml

Review Workflow

Pass 0: Deterministic lint (Spectral)

Run this before Pass 1. It is the only pass that produces machine-checked findings, and its findings are authoritative for the rules it covers.

1 — Resolve a CLI. Try each in order and stop at the first that exits 0:

Read the full file on GitHub · 254 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. 10d ago First seen · 254 lines · 98 tokens per session scan A d9872cc149cb

Subscribe to this mod's changes

api-guideline-reviewer is an agent published in the GitHub repository ihudak/ihudak-claude-plugins (2 stars, last pushed today), licensed MIT. It adds 98 tokens to every session and 4,414 once invoked, about $0.0005 per session on Opus 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-08-31.

Related

Other agents, from other repositories

api-contract

Detect breaking changes to public APIs, exported types, schemas, REST routes, and DB migrations. Flags consumer-impacting changes that need coordination.

ncoevoet/claude-review-all · 31 tokens

backend-reviewer

Backend design reviewer subagent. Auto-loads the backend skill; applies any .review-pro/ stack signals; returns structured findings.

tufantunc/review-pro · 33 tokens

code-reviewer

Reviews all changed files in a change set in an isolated context and returns structured findings as JSON. Spawned by the /review-gate:review orchestrator. Not for general questions.

Jose-Ribeir/claude-code-review-gate · 41 tokens

code-filter

Independent falsify pass for review-gate findings. Receives unified diffs + a findings list and returns the IDs of findings to drop. Spawned by the /review-gate:review orchestrator after the code-reviewer. Not for general questions.

Jose-Ribeir/claude-code-review-gate · 54 tokens

api-expert

Use this agent as a distinguished API Design and GraphQL Federation authority for reviewing API contracts, schema design, federation configuration, resolver patterns, and API evolution strategy across the codebase's 14+ federated services. Reviews API code and schemas — implementation goes to builders. Examples…

asiflow/claude-nexus-hyper-agent-team · 301 tokens

api-reviewer

Use this agent to review API endpoints for security, design, performance, and best practices. Trigger when the user asks to "review my API", "check API security", "audit endpoints", "review route handlers", "is my API secure", "check for missing validation", or wants a comprehensive API review. Examples: "Review the…

iwritec0de/app-dev · 107 tokens