spec-contract-resolver

spec-contract-resolver is an agent for Claude Code from edloidas/skills. It costs 67 tokens per session (1,463 once invoked), scanned A, original, MIT.

A code-analysis agent that maps how separate software modules connect to each other. It tracks events, public functions, imports, shared registries, and the places where modules send or receive information.

In plain words
What is it for?
Use it after analyzing modules to document cross-module contracts, match event senders with receivers, record data shapes, and flag unmatched integrations.
Why use it?
It reveals broken or incomplete connections, such as an event with no matching listener. The resulting map gives the rest of a code-to-specification process a shared view of module boundaries.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the review plugin — 6 skills, 6 agents shipped together

Good fit Use it after analyzing modules to document cross-module contracts, match event senders with receivers, record data shapes, and flag unmatched integrations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/edloidas/skills/spec-contract-resolver
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/edloidas/skills

Made for: Claude Code.

Or install review, the plugin that ships this one along with the rest of its 6 skills, 6 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 spec-contract-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/edloidas/skills/spec-contract-resolver/github.svg)](https://agentmods.dev/agents/edloidas/skills/spec-contract-resolver)
Your own site
<a href="https://agentmods.dev/agents/edloidas/skills/spec-contract-resolver"><img src="https://agentmods.dev/badge/agents/edloidas/skills/spec-contract-resolver/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 spec-contract-resolver

Your own site · 80×15
<a href="https://agentmods.dev/agents/edloidas/skills/spec-contract-resolver"><img src="https://agentmods.dev/badge/agents/edloidas/skills/spec-contract-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,463 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.00067 $0.01463
Opus 5.5 $0.00027 $0.00585
Sonnet 5.5 $0.00013 $0.00293
Haiku 4.5 $0.00007 $0.00146

Measured today against content hash 432e161ef635, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-contract-resolver 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 today.

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.

review/agents/spec-contract-resolver.md · 137 lines

How it starts

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

You are a cross-module contract resolver. Your mission is to take the per-module summaries produced by spec-module-analyzer agents and reconcile them into a single cross-module contract map: events fired and received, public exports consumed by other modules, shared registries, and asymmetries.

Your output is the contract document that sits between the architecture overview and the per-module specs in the final output.

Core Principles

  1. Reconcile across modules. A single event fired in module A and listened in module B is one contract slot with two endpoints. Your job is to merge both views.
  2. Asymmetries are findings. A fired event with no listener in scope is a leak candidate or an external integration point — flag it. Same for a listener with no in-scope fire site.
  3. Evidence-first. Every contract entry cites the fire site(s) and listen site(s) with file:line.
  4. Literal payloads. Carry through the literal payload shapes from module analyzers. Do not paraphrase. Redact secrets — tokens, keys, passwords, connection strings — in any literal you transcribe: keep the field, replace the value with <redacted>.
  5. Module boundaries. Identify contract slots between modules. Intra-module fire/listen is already captured by the module analyzer; do not duplicate it here unless a cross-module consumer exists.
  6. Domain-neutral. No product identifiers in output structure.

Inputs

Your prompt will contain:

  • Scout output (architecture + module inventory).
  • All per-module summaries from spec-module-analyzer agents.
  • A list of source file paths for the whole bundle (for verification via Grep when needed).

Workflow

Step 1: Build a cross-module index

From each module summary, extract:

  • Events fired (name, payload, fire site).
  • Events listened (name, listen site, handler purpose).
  • Public exports (name, kind, export site, signature).
  • Cross-module references (which modules import what).
  • Shared registries / singletons mentioned.

Read the full file on GitHub · 137 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. today Changed · -10 lines 432e161ef635
  2. 2mo ago First seen · 147 lines · 67 tokens per session scan A 5e85b1016980

Subscribe to this mod's changes

spec-contract-resolver is an agent published in the GitHub repository edloidas/skills (2 stars, last pushed today), licensed MIT. It adds 67 tokens to every session and 1,463 once invoked, about $0.0003 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-08-31.

Related

Other agents, from other repositories

team-reviewer

Multi-dimensional code reviewer that operates on one assigned review dimension (security, performance, architecture, testing, or accessibility) with structured finding format. Use when performing parallel code reviews across multiple quality dimensions.

wshobson/agents · 43 tokens

code-documentation-code-reviewer

Elite code review expert specializing in modern AI-powered code analysis, security vulnerabilities, performance optimization, and production reliability. Masters static analysis tools, security scanning, and configuration review with 2024/2025 best practices. Use PROACTIVELY for code quality assurance.

wshobson/agents · 60 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens

shadow-auditor

Audits agent decisions and session outcomes for compliance and quality. Assign as a shadow for end-of-session review.

AgentWorkforce/relay · 27 tokens

relay-reviewer

A code review agent that checks for bugs, regressions, and testing gaps then reports via Agent Relay. Use when you need a second pair of eyes on changes.

AgentWorkforce/relay · 37 tokens

devops-architect

DevOps and CI gate expert for the ClosedLoop plugin monorepo. Reviews build toolchain correctness (ruff, pyright, uv), plugin versioning discipline (semver per plugin.json), hook lifecycle contracts, pre-push CHANGELOG enforcement, marketplace registration, and cross-plugin coordinated version bumps. Triggers on…

closedloop-ai/claude-plugins · 95 tokens