doc-cross-repo-dependency-flow

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

A documentation task for mapping how repositories in a software group exchange data. It creates one Mermaid flowchart, a diagram written in text, with repositories, events, and contract labels.

In plain words
What is it for?
Use it to document cross-repository HTTP endpoints and event streams for a group of repositories.
Why use it?
It gives developers one view of data moving between separate codebases. It also limits the work to the specified documentation file.

Agent for Claude Code

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-dependency-flow
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-dependency-flow

README.md
[![agentmods](https://agentmods.dev/badge/agents/theagenticguy/opencodehub/doc-cross-repo-dependency-flow.svg)](https://agentmods.dev/agents/theagenticguy/opencodehub/doc-cross-repo-dependency-flow)
Your own site
<a href="https://agentmods.dev/agents/theagenticguy/opencodehub/doc-cross-repo-dependency-flow"><img src="https://agentmods.dev/badge/agents/theagenticguy/opencodehub/doc-cross-repo-dependency-flow.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,868 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.00000 $0.01868
Opus 5 $0.00000 $0.00934
Sonnet 5 $0.00000 $0.00374
Haiku 4.5 $0.00000 $0.00187

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

Security

Grade A, and why

doc-cross-repo-dependency-flow 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 3d 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-dependency-flow.md · 112 lines

How it starts

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

Packet · {{ group }} · cross-repo/dependency-flow.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/dependency-flow.md: a single Mermaid flowchart TB showing inter-repo data flow across the {{ group }} group — nodes are repos (plus events/streams as needed), edges are contract groups labeled by HTTP verb + path or event type.

2. Scope

  • Create: {{ group_docs_root }}/cross-repo/dependency-flow.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 {{ group_prefetch_path }} § group_contracts cached
Per-member route inventory {{ group_prefetch_path }} § route_map(<repo>) per {{ member_repos }} cached
Async / event topics mcp__codehub__group_query({group: "{{ group }}", text: "message consumer"}) or "publishes" mid-run, only if stream edges are suspected

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 inventory from {{ group_prefetch_path }} § group_contracts. For each (producer_repo, consumer_repo) pair, group the contracts by method + path-prefix to form a single edge labeled with the representative HTTP verb + path (e.g., POST /invoices).
  3. Scan the contract list for event/stream shapes (kind = topic / queue / stream in the cached digest). For each stream, add a parenthesized node name[(stream.name)] and draw dashed edges (-.->) from consumers and solid edges (-->) from publishers.
  4. Compose the node set: one node per member repo (repo["repo"] plain rectangle) plus one parenthesized node per event/stream. Cap at 20 nodes — if the group plus streams exceed 20, keep the top-20 by edge count and move overflow into a ## Legend (overflow) table.
  5. Compose the edge set: solid arrows for synchronous HTTP calls, dashed arrows for async/pub-sub. Each edge label carries the HTTP verb + path (routes) or the event type (streams); ≤ 15 chars.
  6. Draft the Mermaid flowchart TB. Every repo node's string identifier and every path/event on every edge must trace back to group_contracts or a route_map digest — no invented flows.
  7. Write {{ group_docs_root }}/cross-repo/dependency-flow.md with H1 = {{ group }} · Dependency flow.

Read the full file on GitHub · 112 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. 3d ago First seen · 112 lines · 0 tokens per session scan A 532f47017efd

Subscribe to this mod's changes

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