doc-cross-repo-contracts-matrix

doc-cross-repo-contracts-matrix is an agent for Claude Code from theagenticguy/opencodehub. It costs 0 tokens per session (1,759 once invoked), scanned A, original, Apache-2.0.

A documentation task that builds a producer-and-consumer matrix for repositories in a software group. It records how many contracts each repository produces for or consumes from the others, then lists notable contracts with source references.

In plain words
What is it for?
Use it to document cross-repository contracts, compare producer and consumer relationships, and highlight the ten most notable connections.
Why use it?
It makes dependencies between separate codebases easier to compare in one table. The source locations help developers trace each important connection back to both repositories.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents.

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 agents/theagenticguy/opencodehub/doc-cross-repo-contracts-matrix
Clone the repo
git clone --depth 1 https://github.com/theagenticguy/opencodehub

Made for: Claude Code.

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 doc-cross-repo-contracts-matrix

README.md
[![agentmods](https://agentmods.dev/badge/agents/theagenticguy/opencodehub/doc-cross-repo-contracts-matrix.svg)](https://agentmods.dev/agents/theagenticguy/opencodehub/doc-cross-repo-contracts-matrix)
Your own site
<a href="https://agentmods.dev/agents/theagenticguy/opencodehub/doc-cross-repo-contracts-matrix"><img src="https://agentmods.dev/badge/agents/theagenticguy/opencodehub/doc-cross-repo-contracts-matrix.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,759 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.1 $0.00000 $0.01759
Opus 5 $0.00000 $0.00879
Sonnet 5 $0.00000 $0.00352
Haiku 4.5 $0.00000 $0.00176

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

Security

Grade A, and why

doc-cross-repo-contracts-matrix 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 5d 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.

.claude/skills/codehub-document/templates/agents/doc-cross-repo-contracts-matrix.md · 105 lines

How it starts

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

Packet · {{ group }} · cross-repo/contracts-matrix.md

Group mode only. This packet runs when the skill orchestrator is invoked with --group {{ group }}. In single-repo mode it is never seeded.

1. Objective

Produce {{ group_docs_root }}/cross-repo/contracts-matrix.md: the N×N producer/consumer matrix for the {{ group }} group (rows = producers, columns = consumers, cells = contract counts), followed by a ## Notable contracts H2 listing the top 10 contracts with both-ends repo:path:LOC citations.

2. Scope

  • Create: {{ group_docs_root }}/cross-repo/contracts-matrix.md
  • Do not touch: any other file under {{ group_docs_root }}/, any file under a member repo (including {{ member_repos }}/), {{ group_context_path }}, {{ group_prefetch_path }}, or any .packets/*.md other than this one.

3. Input specification

Source Read how Cache state
Group shared context Read {{ group_context_path }} always first
Group prefetch ledger Read {{ group_prefetch_path }} always first
Member list + freshness {{ group_context_path }} § Members / {{ group_prefetch_path }} § group_list,group_status cached
Group contracts (the spine) {{ group_prefetch_path }} § group_contracts cached
Per-member route inventory {{ group_prefetch_path }} § route_map(<repo>) per {{ member_repos }} cached
Concept → symbol disambiguation mcp__codehub__group_query({group: "{{ group }}", text: <concept>}) mid-run, on demand

4. Process

  1. Read {{ group_context_path }} and Read {{ group_prefetch_path }}. Confirm the member list and re-verify every member is tagged fresh in the cached group_status digest. Abort to Work log if any member is stale.
  2. Pull the contract list from {{ group_prefetch_path }} § group_contracts. Each row has {producer_repo, consumer_repo, path, method, shape}. This is the spine of the entire artifact.
  3. Build the producer/consumer matrix: rows = producer repos (in group_list order), columns = consumer repos (same order). Each cell = the contract count for that (producer, consumer) pair. Diagonal cells show . Render as a Markdown table.
  4. Select the top 10 contracts by consumer count (ties broken by producer path lexicographically). For each, resolve both ends to real files via the cached route_map digests — producer file comes from route_map(<producer>), consumer file from the group_contracts row's consumer_repo + path. Cite both with repo:path:LOC.
  5. Draft the ## Notable contracts H2: a bullet list of the 10 entries in the form `<producer-repo>:<producer-path>:<LOC>` ← consumed by `<consumer-repo>:<consumer-path>:<LOC>` (method + shape summary).
  6. If the matrix has zero non-diagonal contracts, still emit the full N×N matrix (all 0 / cells), add a > No inter-repo contracts detected — the group graph does not currently encode cross-repo edges banner immediately beneath the H1, and replace ## Notable contracts with ## Notable contracts\n\n_None detected._.
  7. Write {{ group_docs_root }}/cross-repo/contracts-matrix.md with H1 = {{ group }} · Contracts matrix.

Read the full file on GitHub · 105 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. 5d ago First seen · 105 lines · 0 tokens per session scan A 8a1009fad36f

Subscribe to this mod's changes

doc-cross-repo-contracts-matrix is an agent published in the GitHub repository theagenticguy/opencodehub (3 stars, last pushed 24d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,759 tokens. 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

quarto-critic

Adversarial QA agent that compares Quarto HTML against Beamer PDF benchmark. Produces harsh, actionable criticism. Does NOT edit files — read-only analysis only.

brycewang-stanford/Auto-Empirical-Research-Skills · 38 tokens

openwriter-enrichment-minion

Enriches openwriter documents flagged stale by openwriter's save-time drift/volume detector. Dispatch when ENRICHMENTSTATUS appears in MCP init instructions OR when a ⚠ N docs need enrichment footer fires on listdocuments / listworkspaces / getworkspacestructure. Reads each dirty doc and stamps it with a single field…

travsteward/openwriter · 94 tokens

literature-extractor

Extracts literature Statements from papers for a survey. Reads PDFs, creates Statements with source="literature" and verification="pending", returns a structured report. Never registers theme tags, never creates Warrants or Claims.

yqi96/warranted · 48 tokens

chronology-builder

Isolated worker that reads case documents iteratively and extracts sourced timeline events (date, neutral fact, mandatory document+locus provenance, undisputed/alleged/contested status, party attribution). Deduplicates and cross-references across documents and languages. Emits events.json for the legal-chronology…

fedec65/bettercallclaude · 103 tokens

notion

Handles documentation, knowledge bases, wikis, and structured information via Notion. Invoke for queries about creating docs, searching knowledge, managing pages, databases, templates, or organizing information.

tomcounsell/ai · 42 tokens

ollama-transcribe

Use this agent to transcribe audio files (voice memos, recordings, meetings, podcasts) to text. Uses local mlx-whisper. Use whenever the user wants audio converted to text or references an .mp3, .wav, .m4a, .webm file.

PratikHotchandani22/claude-ollama-agents · 62 tokens