topology-data-analysis

topology-data-analysis is a skill for Claude Code, Codex from wentorai/research-plugins. It costs 20 tokens per session (2,588 once invoked), scanned A, original, MIT.

A guide to topological data analysis, a way to study shapes such as clusters, loops, and gaps in data across different scales.

In plain words
What is it for?
Use it for persistent homology, persistence diagrams, the Mapper algorithm, and turning topological features into machine-learning inputs.
Why use it?
It helps reveal structural patterns that ordinary statistical summaries may miss.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it for persistent homology, persistence diagrams, the Mapper algorithm, and turning topological features into machine-learning inputs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wentorai/research-plugins/topology-data-analysis
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.

Any agent
npx skills add wentorai/research-plugins --skill topology-data-analysis
Clone the repo
git clone --depth 1 https://github.com/wentorai/research-plugins

Made for: Claude Code, Codex.

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 topology-data-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/wentorai/research-plugins/topology-data-analysis/github.svg)](https://agentmods.dev/skills/wentorai/research-plugins/topology-data-analysis)
Your own site
<a href="https://agentmods.dev/skills/wentorai/research-plugins/topology-data-analysis"><img src="https://agentmods.dev/badge/skills/wentorai/research-plugins/topology-data-analysis/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.

agentmods 80×15 button for topology-data-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/wentorai/research-plugins/topology-data-analysis"><img src="https://agentmods.dev/badge/skills/wentorai/research-plugins/topology-data-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00020 $0.02588
Opus 5.5 $0.00008 $0.01035
Sonnet 5.5 $0.00004 $0.00518
Haiku 4.5 $0.00002 $0.00259

Measured 2mo ago against content hash 0a8f6645f865, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

topology-data-analysis 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.

skills/domains/math/topology-data-analysis/SKILL.md · 306 lines

How it starts

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

Topological Data Analysis

A skill for applying topological data analysis (TDA) methods to research data. Covers persistent homology, Vietoris-Rips complexes, persistence diagrams, the Mapper algorithm, and vectorization methods for integrating topological features into machine learning pipelines.

Core Concepts

Simplicial Complexes from Data

TDA extracts topological features (connected components, loops, voids) from data by building simplicial complexes at multiple scales:

Complex Construction Computational Cost
Vietoris-Rips Edge if distance < epsilon O(n^d) for d-simplices
Cech Ball intersection (exact) Computationally expensive
Alpha Delaunay-based (exact in low dim) Efficient in R^2, R^3
Cubical Grid-based (for images) Linear in pixels

Filtration and Persistence

Scale epsilon:  0.1    0.3    0.5    0.7    1.0
                |------|------|------|------|------|
Components:      10      6      3      2      1
  (H0 features born at 0, die at merging scale)

Loops:           0      0      1      2      0
  (H1 features born when loop forms, die when filled)

A feature that persists across many scales is a genuine topological signal; short-lived features are noise.

Persistent Homology with Ripser

Computing Persistence Diagrams

import numpy as np
from ripser import ripser
from persim import plot_diagrams

def compute_persistence(point_cloud: np.ndarray,
                         max_dim: int = 2,
                         max_edge: float = 2.0) -> dict:
    """
    Compute persistent homology of a point cloud.
    point_cloud: (n_points, n_dimensions) array
    max_dim: maximum homology dimension to compute
    max_edge: maximum edge length in Rips complex
    Returns persistence diagrams for each dimension.
    """
    result = ripser(
        point_cloud,
        maxdim=max_dim,
        thresh=max_edge,
    )

    diagrams = result["dgms"]
    summary = {}

    for dim, dgm in enumerate(diagrams):
        # Filter out infinite death times for H0
        finite = dgm[dgm[:, 1] < np.inf] if len(dgm) > 0 else dgm
        lifetimes = finite[:, 1] - finite[:, 0] if len(finite) > 0 else np.array([])

        summary[f"H{dim}"] = {
            "n_features": len(finite),
            "max_persistence": float(lifetimes.max()) if len(lifetimes) > 0 else 0,
            "mean_persistence": float(lifetimes.mean()) if len(lifetimes) > 0 else 0,
            "birth_death_pairs": finite.tolist(),
        }

    return summary

# Example: torus point cloud
def sample_torus(n=1000, R=3.0, r=1.0, noise=0.1):
    """Sample points from a torus in R^3."""
    theta = np.random.uniform(0, 2 * np.pi, n)
    phi = np.random.uniform(0, 2 * np.pi, n)
    x = (R + r * np.cos(phi)) * np.cos(theta) + np.random.normal(0, noise, n)
    y = (R + r * np.cos(phi)) * np.sin(theta) + np.random.normal(0, noise, n)
    z = r * np.sin(phi) + np.random.normal(0, noise, n)
    return np.column_stack([x, y, z])

torus = sample_torus(500)
persistence = compute_persistence(torus, max_dim=2)
# Expected: H0 has 1 long-lived component,
#           H1 has 2 prominent loops (the two fundamental cycles),
#           H2 has 1 prominent void (the cavity)

Read the full file on GitHub · 306 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. 2mo ago First seen · 306 lines · 20 tokens per session scan A 0a8f6645f865

Subscribe to this mod's changes

topology-data-analysis is a skill published in the GitHub repository wentorai/research-plugins (323 stars, last pushed 5mo ago), licensed MIT. It adds 20 tokens to every session and 2,588 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-03.

Related

topology-data-analysis compared with skills from other repositories

topology-data-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
topology-data-analysiswentorai/research-pluginsSkill3235mo agoMITA20Claude Code, Codex
arboretoK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA55Claude Code, Codex
deepspot-mK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA70Claude Code
torchdrugK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA64Claude Code
pyhealthK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA84Claude Code, Codex
tao-validate-recipe-transferNVIDIA/skillsSkill4.2k2d agoApache-2.0A179Claude Code
nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skillsSkill4.2k2d agoApache-2.0A56Claude Code