Topoguard — AI skill for Claude Code
Topology design and a k-of-n corroboration firewall against hallucination spread in multi-agent LLM systems.
How to install Topoguard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open linngem/topoguard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Topoguard does
Topology design and a k-of-n corroboration firewall against hallucination spread in multi-agent LLM systems. Tested with Claude agents on 12 synthetic clinical cases, including autoimmunity. Code, data, prompts and a Claude Code template.
Alternatives in AI
- User Research Skill — Cookiy AI Skill for AI agents (Claude, Codex, Cursor, OpenClaw) — end-to-end user research: AI interviews, syn 1.5k ★
- Browser Search — A skill for AI agents: search the web with SearXNG, browse with Camofox, bypass protections with CloakBrowser 499 ★
- onWatch — Open-source Go CLI that tracks AI API quota usage across 7 providers (Synthetic, Z.ai, Anthropic, Codex, GitHu 397 ★
README
topoguard
**Topology design and a k-of-n corroboration firewall against hallucination spread in multi-agent LLM systems.**
📄 **Article with the experiments and results: [ARTICLE.md](ARTICLE.md)** 🧩 **Ready-to-use Claude Code template: [templates/claude-code](templates/claude-code/README.md)** · 📋 [Cases and prompts](docs/CASES_AND_PROMPTS.md)
Based on consensus and contagion dynamics on networks (Savari et al., *Sci. Rep.* 2026; Horsevad et al., *Nat. Commun.* 2022) and validated with Claude agents on 12 synthetic clinical cases.

Key findings (Claude Haiku 4.5, 12 synthetic clinical cases)
- Agents filter by plausibility first: implausible errors almost never spread.
- A plausible error repeated by 4–8 neighbours is adopted 94–100 % of the time.
- In a star network, an error entering at the hub contaminated up to 80 % of the team.
- A k = 2 corroboration gate kept every error in its source agent, at the cost of slowing down unexpected true findings.
Full details, figures and limitations in the [article](ARTICLE.md).
Two components
**1. Offline design (no LLM calls)** — `spectral`, `contagion`
topology_report(G): clustering, transitivity, mean shortest path, Kirchhoff index and leader–follower bandwidth (the instruction-change frequency at which the team stops following the orchestrator), with the orchestrator at the hub and at the periphery.firewall_curve(G)/best_threshold: the threshold θ that lets a finding asserted by several modules spread while blocking one asserted by a single hallucinating agent.
**2. Runtime** — `reliability`, `gate`
design_gate(n, p_fp, sens, rho): smallest k guaranteeing a false-acceptance rate below a target, with correlated errors (beta-binomial, ρ = intraclass correlation).estimate_rho(errors): ρ from each module's validation errors.CorroborationGate: a workspace that only publishes findings corroborated b
Related Skills
Hr AI Transformation Playbook
HR AI transformation toolkit: vetted use cases, governance verified weekly against primary sources, a tested M
Nccn Skill
Convert NCCN cancer clinical practice guideline PDFs into executable Claude Code skills with semantic chunking
Cowork Cookbook
🧑🍳 Cowork Cookbook — battle-tested recipes for orchestrating AI workflows in Claude Cowork. Skills, plugins
Ontology
Stage 03. Invoke the ontology-engineer to promote discovery output into the client domain model. Assembles the
Apple Review Skill
AI agent skill that audits iOS apps against Apple's App Store Review Guidelines before submission — all guidel
Airlock
Runtime firewall for AI coding agents. Gate every tool, MCP and skill call against a least-privilege policy.
Related Agents
AI Data Specialist
Deep AI/data engineer — LLM integration and agent systems, RAG, evals, data pipelines, and ML productionizatio
AI Backend Engineer
AI Backend Engineer who builds scalable, reliable server-side systems powering AI applications — including API
Homelab Architect
Homelab network designer. Invoke when someone describes their hardware and goals and wants a complete network