Agent skill · Audited from source
Topology Data Analysis
skill · brycewang-stanford/Auto-Empirical-Research-SkillsNOASSERTION licenceAudited 8 Oct 2026 · source e1ba289846fd
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit e1ba289846fd and found no filesystem, network or shell access and no hard-coded secrets. What it does: Topological data analysis: persistent homology, Mapper, and TDA tools
Cite
Cite this page
ModelsAtlas. “Topology Data Analysis (brycewang-stanford/Auto-Empirical-Research-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/brycewang-stanford/topology-data-analysis
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha e1ba289846fd · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherbrycewang-stanford GitHub userOwner of the repository this skill is read from
- Source folderbrycewang-stanford/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/domains/math/topology-data-analysisThe exact folder we audited
- LicenceNOASSERTIONAs the repository states it
- Commit pinned for this verdicte1ba289846fdA new audit runs when the source changes
- Repository statusNot archivedLast push 3 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Topological data analysis: persistent homology, Mapper, and TDA tools
---
name: topology-data-analysis
description: "Topological data analysis: persistent homology, Mapper, and TDA tools"
metadata:
openclaw:
emoji: "🖇️"
category: "domains"
subcategory: "math"
keywords: ["topology", "persistent-homology", "tda", "mapper", "betti-numbers", "point-cloud"]
source: "wentor"
---
# 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
```python
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)
```
## Persistence Vectorization
### Converting Persistence to Feature Vectors
To use topological features in machine learning, persistence diagrams must be vectorized:
```python
from sklearn.base import BaseEstimator, TransformerMixin
class PersistenceStatistics(BaseEstimator, TransformerMixin):
"""
Extract statistical features from persistence diagrams.
Produces a fixed-length feature vector from variable-length diagrams.
"""
def __init__(self, max_dim: int = 1):
self.max_dim = max_dim
def fit(self, X, y=None):
return self
def transform(self, diagrams_list: list) -> np.ndarray:
features = []
for diagrams in diagrams_list:
row = []
for dim in range(self.max_dim + 1):
dgm = diagrams[dim]
lifetimes = dgm[:, 1] - dgm[:, 0]
lifetimes = lifetimes[np.isfinite(lifetimes)]
if len(lifetimes) == 0:
row.extend([0, 0, 0, 0, 0, 0])
else:
row.extend([
len(lifetimes), # count
np.sum(lifetimes), # total persistence
np.max(lifetimes), # max persistence
np.mean(lifetimes), # mean persistence
np.std(lifetimes), # std persistence
np.sum(lifetimes ** 2), # persistence entropy proxy
])
features.append(row)
return np.array(features)
```
### Persistence Images
```python
def persistence_image(diagram: np.ndarray, resolution: int = 20,
sigma: float = 0.1,
weight_fn=None) -> np.ndarray:
"""
Compute a persistence image from a persistence diagram.
Transforms birth-death pairs into a stable, fixed-size representation.
"""
if weight_fn is None:
weight_fn = lambda birth, persistence: persistence
# Transform to birth-persistence coordinates
births = diagram[:, 0]
persistences = diagram[:, 1] - diagram[:, 0]
# Create grid
x_range = np.linspace(births.min() - sigma, births.max() + sigma, resolution)
y_range = np.linspace(0, persistences.max() + sigma, resolution)
xx, yy = np.meshgrid(x_range, y_range)
image = np.Excerpt, first 6,001 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit e1ba289
git clone https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills git -C Auto-Empirical-Research-Skills checkout e1ba289846fd
The author documents no install command, so this uses the repository directly. Our verdict covers commit e1ba289846fd only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| OpenClaw | Mentioned in its text, not tested | Skills for OpenClaw · About OpenClaw |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
e1ba289846fd
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/brycewang-stanford/topology-data-analysis/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All data & analysis skills →brycewang-stanford/Auto-Empirical-Research-Skills
GIS analysis and remote sensing workflows for geospatial research applications
brycewang-stanford/Auto-Empirical-Research-Skills
Run and manage Google Colab notebooks for Python and ML research
brycewang-stanford/Auto-Empirical-Research-Skills
Advanced Google Scholar search techniques for comprehensive literature discovery
brycewang-stanford/Auto-Empirical-Research-Skills
Ethical Google Scholar data collection techniques and best practices
brycewang-stanford/Auto-Empirical-Research-Skills
Autonomous agent for comprehensive deep research on any topic
brycewang-stanford/Auto-Empirical-Research-Skills
Practical advice for thriving in PhD programs and academic research
Add this badge to your README
[](https://modelsatlas.com/skills/brycewang-stanford/topology-data-analysis/)
<a href="https://modelsatlas.com/skills/brycewang-stanford/topology-data-analysis/"><img src="https://modelsatlas.com/skills/brycewang-stanford/topology-data-analysis/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Topology Data Analysis
What does the Topology Data Analysis skill do?
Is Topology Data Analysis safe to install?
What can Topology Data Analysis access on my machine?
Which assistants does Topology Data Analysis work with?
How current is this page?
Sources
- github.com/brycewang-stanford/Auto-Empirical-Research-Skills/tre — the audited source at commit e1ba289846fd and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Topology Data Analysis skill do?
- Is Topology Data Analysis safe to install?
- What can Topology Data Analysis access on my machine?