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.
npx skills add 8b-is/smart-tree --skill ultra-graph-theorygit clone --depth 1 https://github.com/8b-is/smart-treeWrote 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/8b-is/smart-tree/ultra-graph-theory)<a href="https://agentmods.dev/skills/8b-is/smart-tree/ultra-graph-theory"><img src="https://agentmods.dev/badge/skills/8b-is/smart-tree/ultra-graph-theory/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/8b-is/smart-tree/ultra-graph-theory"><img src="https://agentmods.dev/badge/skills/8b-is/smart-tree/ultra-graph-theory.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.00107 | $0.05347 |
| Opus 5.5 | $0.00043 | $0.02139 |
| Sonnet 5.5 | $0.00021 | $0.01069 |
| Haiku 4.5 | $0.00011 | $0.00535 |
Grade A, and why
ultra-graph-theory scanned grade A with 1 finding 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 2d 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.
Reads agent configuration directorieslowAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
| **Antigravity** | `agy` | `~/.gemini/config/mcp_config.json` & `.agents/hooks.json` | Native `--agy-hook` lifecycle (`session-start`, `pre-invocation`, `pre-tool-use`, `post-tool-use`, `stop`) + subagent spawning per ` Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ultra Graph Theory — "Straight from The Book" (smart-tree v10.9.0+)
"Another roof, another proof. In God's Book are the most elegant proofs — and the cleanest architectures." — Paul Erdős (1913–1996), The Magician from Budapest
ultra-graph-theory is a 100% model-agnostic and harness-agnostic architectural intelligence skill powered by smart-tree (st --mode the-book / src/mem8/regularity/). It replaces naive $O(V + E)$ directory dumps with five rigorous theorems from extremal, probabilistic, and structural graph theory.
1. First-Class Citizens: Models & Agent Harnesses
This skill treats all four frontier model families and all four terminal/IDE agent harnesses as first-class citizens without vendor lock-in.
A. First-Class Frontier Models
| Model Family | Optimal st Invocation |
Context & Reasoning Calibration |
|---|---|---|
Gemini (gemini-2.5-pro, gemini-3) |
st -m the-book . + ZeroCopyMem8Book::top_k_super_nodes |
Pair Gemini's deep multimodal/long-context window with Szemerédi super-node maps (K <= 256) as a global structural index, expanding Erdős Number 0..=2 shells (max_erdos_radius = 2). |
ChatGPT / Codex (gpt-4o, o3, o4-mini, codex) |
st -m the-book --compact . |
Feed the deterministic ERDOS-THE-BOOK-v1.0 JSON schema directly into structured tool outputs; use worktree_buckets for parallel function calls and token_budget = 8000 for tight latency. |
DeepSeek (deepseek-r1, deepseek-v3) |
st -m the-book . + st --security-scan . |
Inject the 4 Erdős–Rényi invariants ($\kappa, s(C), \Lambda(C), \lambda_1$), Kohayakawa–Rödl energy $q_p(\mathcal{P})$, and Moser Witness Trees into <think> verification blocks before generating patches. |
Claude (claude-4-opus, claude-4-sonnet) |
st -m the-book . + st --mcp |
Combine ZeroCopyMem8Book (.m8b mmap) + T8R LEB128 exception streams with MCP tool calls so Claude expands only Erdős Number 0 terminals and 1 Steiner bridges. |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2d ago First seen · 151 lines · 107 tokens per session scan A 85281923f957
ultra-graph-theory is a skill published in the GitHub repository 8b-is/smart-tree (272 stars, last pushed yesterday), licensed MIT. It adds 107 tokens to every session and 5,347 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-04.
ultra-graph-theory compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ultra-graph-theory8b-is/smart-tree | Skill | 272 | yesterday | MIT | A | 107 | Claude Code |
| clawhub-pr-maintaineropenclaw/clawhub | Skill | 9.5k | today | MIT | A | 50 | Claude Code, Codex |
| autoreviewopenclaw/clawhub | Skill | 9.5k | today | MIT | A | 17 | Claude Code, Codex |
| convex-revieweropenclaw/clawhub | Skill | 9.5k | today | MIT | A | 40 | Claude Code, Codex |
| mindosGeminiLight/MindOS | Skill | 704 | 14d ago | MIT | A | 136 | Claude Code |
| laravel-auditMrPunyapal/laravel-auditor | Skill | 60 | 7d ago | MIT | A | 46 | Claude Code, Codex |
| handoffPVRLabs/aibadger | Skill | 79 | 7d ago | MIT | A | 35 | Claude Code, Codex |