lint

lint is a command for coding agents from jhlee0409/claude-plugins. It costs 10 tokens per session (4,751 once invoked), scanned A, original, MIT.

A consistency checker for an OpenAPI description and the code that implements or uses the API. OpenAPI is a standard format for describing API paths, inputs, and responses.

In plain words
What is it for?
Linting the API description, linting the codebase, checking specific rules such as naming or response structure, and suggesting fixes.
Why use it?
It finds mismatches between the documented API and the code, including issues in manually written specifications or implementations. It can use cached data, work offline for code checks, and provide fix suggestions.

Command

Part of the oas plugin — 6 skills, 6 commands shipped together

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.

agentmods
npx agentmods add commands/jhlee0409/claude-plugins/lint
Clone the repo
git clone --depth 1 https://github.com/jhlee0409/claude-plugins

Or install oas, the plugin that ships this one along with the rest of its 6 skills, 6 commands.

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 lint

README.md
[![agentmods](https://agentmods.dev/badge/commands/jhlee0409/claude-plugins/lint.svg)](https://agentmods.dev/commands/jhlee0409/claude-plugins/lint)
Your own site
<a href="https://agentmods.dev/commands/jhlee0409/claude-plugins/lint"><img src="https://agentmods.dev/badge/commands/jhlee0409/claude-plugins/lint.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 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,751 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.04751
Opus 5 $0.00005 $0.02375
Sonnet 5 $0.00002 $0.00950
Haiku 4.5 $0.00001 $0.00475

Measured 4d ago against content hash 079bdb8db43f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lint 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 4d 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/oas/commands/lint.md · 749 lines

How it starts

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

API Lint

Check OpenAPI spec and codebase for consistency. Finds inconsistencies in manually written specs/code.

MCP Dependency Check

Before executing this command, invoke skill: mcp-dependency

  • Verify OpenAPI Sync MCP server is installed
  • If not available, offer to install via npm install -g @jhlee0409/openapi-sync-mcp
  • Only proceed after MCP is confirmed available

Target Selection

/oas:lint           → Check both spec + code (default)
/oas:lint --spec    → Check OpenAPI spec only
/oas:lint --code    → Check codebase only

Usage

# Full check (smart caching for spec)
/oas:lint

# Specific rule only
/oas:lint --rule=naming
/oas:lint --rule=response-structure

# Fix suggestions
/oas:lint --fix

# Force fetch spec (bypass cache)
/oas:lint --force

# Use cached spec only (offline)
/oas:lint --offline

Smart Caching

Use skill: cache-manager

When linting spec (--spec or default):
  1. Check if spec changed (HEAD request / mtime)
  2. If unchanged → Use cached spec
  3. If changed → Fetch new spec, update cache

When linting code only (--code):
  → No spec fetch needed

Part 1: Spec Lint Rules (--spec)

1. response-key-consistency

Check list response key naming consistency:

⚠️ INCONSISTENT: List response keys vary

  Found 4 different patterns:
    "items"    → 12 endpoints (48%)
    "results"  → 8 endpoints (32%)
    "videos"   → 3 endpoints (12%)
    "projects" → 2 endpoints (8%)

  Examples:
    GET /shortform/videos     → { videos: [...] }
    GET /project/projects     → { results: [...] }
    GET /workspace/users      → { items: [...] }

  💡 Recommendation:
    Standardize on "items" (most common)
    Or use resource-specific names consistently

2. timestamp-naming

Timestamp field naming consistency:

⚠️ INCONSISTENT: Timestamp field naming varies

  Found 3 patterns:
    "created_at"   → 15 schemas
    "created"      → 8 schemas
    "createdAt"    → 3 schemas (camelCase)

  Examples:
    UserProfile.created_at
    Project.created
    VideoClip.createdAt

  💡 Recommendation:
    Standardize on "created_at" (most common, follows snake_case)

Read the full file on GitHub · 749 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. 4d ago First seen · 749 lines · 10 tokens per session scan A 079bdb8db43f

Subscribe to this mod's changes

lint is a command published in the GitHub repository jhlee0409/claude-plugins (4 stars, last pushed 7mo ago), licensed MIT. It adds 10 tokens to every session and 4,751 once invoked, about $0.0001 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.