api-guideline-reviewer

api-guideline-reviewer is a command for Claude Code from ihudak/ihudak-claude-plugins. It costs 64 tokens per session (663 once invoked), scanned A, original, MIT.

A review command for OpenAPI specification files, which describe the endpoints and data of a web API. It checks the files against REST API and permission-naming rules, using a Spectral lint when available.

In plain words
What is it for?
Use it to review one or more OpenAPI files against bundled or organization-specific guidelines, with optional custom rules.
Why use it?
It finds naming, version, permission, response-status, and schema-composition problems that can make an API inconsistent or harder to use. It also covers issues that an automated linter cannot express.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

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

Good fit Use it to review one or more OpenAPI files against bundled or organization-specific guidelines, with optional custom rules.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ihudak/ihudak-claude-plugins/api-guideline-reviewer
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/ihudak/ihudak-claude-plugins

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/commands/ihudak/ihudak-claude-plugins/api-guideline-reviewer/github.svg)](https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/api-guideline-reviewer)
Your own site
<a href="https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/api-guideline-reviewer"><img src="https://agentmods.dev/badge/commands/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/commands/ihudak/ihudak-claude-plugins/api-guideline-reviewer"><img src="https://agentmods.dev/badge/commands/ihudak/ihudak-claude-plugins/api-guideline-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 663 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.00064 $0.00663
Opus 5 $0.00032 $0.00331
Sonnet 5 $0.00013 $0.00133
Haiku 4.5 $0.00006 $0.00066

Measured yesterday against content hash b4dae9105383, 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 yesterday.

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/commands/api-guideline-reviewer.md · 30 lines

What it actually says

Review OpenAPI specification files for compliance with REST API and IAM permission-naming guidelines: $ARGUMENTS

--rules <path> (optional) — an organization's own API rule directory, layered over the bundled baseline. Set it aside from $ARGUMENTS before resolving the spec files, and pass it to the agent as rules_path. Absent, the agent resolves an overlay itself from <repo-root>/.dev-workflows/api-guidelines/ then $API_GUIDELINES_PATH, falling back silently to the bundled baseline. The executable half has its own precedence: a repo's own .spectral.yaml wins over the bundled Spectral ruleset, which organizations are expected to extend rather than edit.

If $ARGUMENTS is empty, ask the user which OpenAPI spec file(s) to review.

Dispatch the review to the api-guideline-reviewer subagent:

→ Agent (subagent_type: "guideline-reviewers:api-guideline-reviewer"):

"Review the following OpenAPI spec file(s) against the guidelines: $ARGUMENTS"

Surface the subagent's verdict to the user.

Deterministic lint

Before its LLM review passes, the subagent runs a Spectral lint of each spec file against the ruleset bundled with this plugin at references/api-guidelines/spectral/ruleset.yaml — forty rules that make the machine-checkable half of the guidelines executable, on top of spectral:oas (recommended). Where the spec's own repository carries a .spectral.yaml at its root, that file is used instead, on the assumption that an organization extends the bundled ruleset rather than editing it in place.

Two things follow, and both belong to the subagent — this command neither runs the linter nor post-processes its output:

  • A missing Spectral CLI is not a failure. The subagent probes spectral on PATH, then npx --no-install @stoplight/spectral-cli. If neither answers, the lint is skipped silently, the review proceeds exactly as it does without it, and the skip is recorded as lint_source: none in the verdict. Nothing is installed, nothing is prompted, and the run never fails on the linter's absence.
  • Findings are merged, not duplicated. Spectral's findings are authoritative for the rules it covers; the LLM passes cover what Spectral cannot express — cross-field version agreement, allOf property redefinition, error-envelope conformance, semantic naming quality, resource modelling and documentation adequacy, and whether an IAM scope is correct rather than merely well-formed.

Surface the lint_source line with the rest of the verdict, so the reader can tell which half of the review was machine-checked.

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. yesterday Changed b4dae9105383
  2. 10d ago First seen · 30 lines · 64 tokens per session scan A 13e9029517ef

Subscribe to this mod's changes

api-guideline-reviewer is a command published in the GitHub repository ihudak/ihudak-claude-plugins (2 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 663 once invoked, about $0.0003 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.