Borrowing it
Nothing to install: this file belongs to JNZader/repoforge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/JNZader/repoforge/main/.claude/skills/build_modules/graph_context/SKILL.mdgit clone --depth 1 https://github.com/JNZader/repoforgeWrote 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.
[](https://agentmods.dev/skills/jnzader/repoforge/graph_context)<a href="https://agentmods.dev/skills/jnzader/repoforge/graph_context"><img src="https://agentmods.dev/badge/skills/jnzader/repoforge/graph_context/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.
<a href="https://agentmods.dev/skills/jnzader/repoforge/graph_context"><img src="https://agentmods.dev/badge/skills/jnzader/repoforge/graph_context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.00456 |
| Opus 5.5 | $0.00012 | $0.00182 |
| Sonnet 5.5 | $0.00006 | $0.00091 |
| Haiku 4.5 | $0.00003 | $0.00046 |
Grade A, and why
add-graph-context-endpoint 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 2mo 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.
What it actually says
add-graph-context-endpoint
One sentence: Builds and formats graph context for codebase analysis workflows.
Trigger: When loading graph_context module for codebase analysis workflows.
Quick Reference
| Task | Pattern |
|---|---|
| Build graph context | build_graph_context() |
| Select code snippets | select_code_snippets() |
Critical Patterns (Detailed)
Pattern 1: build_graph_context
Builds graph context from root directory and optional file list.
# Real code using actual exported names from this module
context = build_graph_context(root_dir: str, files: list[str] | None=None) -> str
Pattern 2: select_code_snippets
Selects optimal code snippets within token budget.
# Real code using actual exported names from this module
snippets = select_code_snippets(graph, "/path/to/code", entry_points=["main.py"], token_budget=2000)
When to Use
- Analyzing codebase structure for AI context
- Selecting relevant code snippets within token limits
- Building structured graph representations
Commands
python -m repoforge.graph_context --help
docker run --rm -v $(pwd):/code repoforge/graph_context:latest
Anti-Patterns
Don't: Ignore token budget when selecting snippets
# BAD - will exceed context window
snippets = select_code_snippets(graph, root_dir, token_budget=100) # Too small
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.
- 2mo ago Changed · -1 lines · +2 tokens per session 004fb3b33752
- 2mo ago First seen · 75 lines · 28 tokens per session scan A 90e0df1bf333
add-graph-context-endpoint is a skill published in the GitHub repository JNZader/repoforge (4 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 456 once invoked, about $0.0001 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-09-27.
add-graph-context-endpoint compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-graph-context-endpointJNZader/repoforge | Skill | 4 | 2mo ago | MIT | A | 30 | Claude Code |
| molecular-ragsynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 40 | Claude Code, Codex |
| llmwikiatomicstrata/llm-wiki-compiler | Skill | 2.3k | 4d ago | MIT | A | 66 | Claude Code, Codex |
| building-agentsericrisco/rsc-harness | Skill | 709 | 3d ago | MIT | A | 85 | Claude Code, Codex |
| gnogmickel/gno | Skill | 117 | 9d ago | MIT | A | 86 | Claude Code |
| qdrantbug-ops/zeph | Skill | 70 | 5d ago | MIT | A | 88 | Claude Code, Codex |
| rag-evaluatorchandrudp29/skillhub | Skill | 14 | 5mo ago | MIT | A | 44 | Claude Code, Codex |