inspector-contract-consistency

inspector-contract-consistency is an agent for Claude Code from mumerfarooq-con/asdlc-tools. It costs 39 tokens per session (623 once invoked), scanned A, original, MIT.

A read-only review that checks whether a codebase presents consistent APIs and follows one coherent architectural shape. An API is the agreed interface through which software communicates, such as endpoint names and response fields.

In plain words
What is it for?
Use it to inspect routes, request and response formats, error responses, authentication patterns, naming, pagination, and other cross-codebase contracts.
Why use it?
It derives the project’s existing conventions and flags changes that break them, helping prevent clients and developers from having to handle several incompatible patterns.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the asdlc plugin — 3 commands, 15 agents shipped together

Good fit Use it to inspect routes, request and response formats, error responses, authentication patterns, naming, pagination, and other cross-codebase contracts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mumerfarooq-con/asdlc-tools/inspector-contract-consistency
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/mumerfarooq-con/asdlc-tools

Made for: Claude Code.

Or install asdlc, the plugin that ships this one along with the rest of its 3 commands, 15 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 inspector-contract-consistency

README.md
[![agentmods](https://agentmods.dev/badge/agents/mumerfarooq-con/asdlc-tools/inspector-contract-consistency.svg)](https://agentmods.dev/agents/mumerfarooq-con/asdlc-tools/inspector-contract-consistency)
Your own site
<a href="https://agentmods.dev/agents/mumerfarooq-con/asdlc-tools/inspector-contract-consistency"><img src="https://agentmods.dev/badge/agents/mumerfarooq-con/asdlc-tools/inspector-contract-consistency.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 623 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.00039 $0.00623
Opus 5 $0.00019 $0.00311
Sonnet 5 $0.00008 $0.00125
Haiku 4.5 $0.00004 $0.00062

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

Security

Grade A, and why

inspector-contract-consistency 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 8d 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/asdlc/agents/inspector-contract-consistency.md · 32 lines

How it starts

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

You are the Contract and Consistency inspector for the Pre-Delivery Quality Check.

Universal principle: a codebase should expose a single, coherent public contract and honor a single architectural shape. Inconsistency introduced across many independent changes is invisible to per-PR review and is your primary target.

Method — derive, then deviate

Do not judge against an external ideal. First derive the conventions the code already follows, then flag deviations from them. Your two rule sources, in priority order:

  1. The repo's own standards and architecture docs (from the input manifest). A documented rule that is violated is a standards_doc finding.
  2. The dominant pattern observed across the code, when the docs are silent. A minority deviation from the established majority is a convention_derived finding.

What to derive and check across the whole codebase

  • Endpoint contract: resource/route naming, HTTP method usage, path/versioning scheme, request and response field casing, pagination style, filtering/sorting conventions, auth pattern applied per endpoint.
  • Response envelope: the shape of success responses and — critically — the shape of error responses. Every endpoint should use the same envelope. Flag any endpoint that returns a divergent shape or status-code mapping.
  • Architecture: the intended layering (e.g. route → service → repository). Flag business logic leaking into controllers, direct data access from the wrong layer, circular dependencies, and modules that violate the documented boundaries.
  • Spec conformance (high-value): for every endpoint, diff the implemented request/response against the PRD, design docs, and API design surfaced by discovery. Flag response fields present in the design but missing from the implementation, designed endpoints or operations that were never implemented, and behavior that contradicts the documented requirement. Treat the design docs as a first-class rule source alongside the code's own conventions. If a seed checklist is present, let its patterns prioritize where you look first; if it is absent, apply this check across all endpoints uniformly.

Read the full file on GitHub · 32 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. 8d ago First seen · 32 lines · 39 tokens per session scan A 501634deafa8

Subscribe to this mod's changes

inspector-contract-consistency is an agent published in the GitHub repository mumerfarooq-con/asdlc-tools (2 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 623 once invoked, about $0.0002 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

enterprise-saas-reviewer

B2B / enterprise-SaaS pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off tenant-isolation decisions before senior-dev claims tasks.

avelikiy/great_cto · 40 tokens

integrations-engineer

Third-party integration specialist for SMB Product-Builder archetypes. Owns the integration contract — OAuth2/API-key flows, webhook signature verification, idempotency keys, retry/backoff with jitter, rate-limit handling, secret storage, and sandbox→prod promotion — for Stripe, Twilio, QuickBooks, Google/Microsoft…

avelikiy/great_cto · 106 tokens

migration-import-engineer

Data-migration and onboarding-import specialist for SMB Product-Builder archetypes. Owns the import contract — incumbent export (CSV/XLSX/JSON/API) → our schema with field mapping, type coercion, dedup, a validation report, dry-run + rollback, and idempotent re-import. Source playbooks for ServiceTitan, Toast…

avelikiy/great_cto · 109 tokens

api-platform-reviewer

API platform / dev-API pre-implementation reviewer. Outputs threat model TM-{slug}.md.

avelikiy/great_cto · 25 tokens

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

api-contract-validator

API contract validation agent that ensures frontend API calls match backend endpoints, request/response types align, error codes are handled, and the API surface is consistent and well-documented.

ShaheerKhawaja/ProductionOS · 39 tokens