spatiotemporal-graph-feature-engineering

spatiotemporal-graph-feature-engineering is a skill for Claude Code, Codex from topprismdata/cultivating-ml-agent. It costs 88 tokens per session (3,435 once invoked), scanned A, original, MIT.

A feature-engineering method for predictions involving connected locations or entities over time. It combines each node's data with information from its neighboring nodes in a graph.

In plain words
What is it for?
Use it for traffic sensors, flood models, power grids, social networks, and other node-level forecasting problems with spatial relationships.
Why use it?
Ordinary table or time-series features can miss the effect of nearby or connected entities, which may be important to the prediction.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for traffic sensors, flood models, power grids, social networks, and other node-level forecasting problems with spatial relationships.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/topprismdata/cultivating-ml-agent/spatiotemporal-graph-feature-engineering
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 topprismdata/cultivating-ml-agent --skill spatiotemporal-graph-feature-engineering
Clone the repo
git clone --depth 1 https://github.com/topprismdata/cultivating-ml-agent

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 spatiotemporal-graph-feature-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/spatiotemporal-graph-feature-engineering/github.svg)](https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/spatiotemporal-graph-feature-engineering)
Your own site
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/spatiotemporal-graph-feature-engineering"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/spatiotemporal-graph-feature-engineering/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 spatiotemporal-graph-feature-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/spatiotemporal-graph-feature-engineering"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/spatiotemporal-graph-feature-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,435 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.
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.00088 $0.03435
Opus 5 $0.00044 $0.01717
Sonnet 5 $0.00018 $0.00687
Haiku 4.5 $0.00009 $0.00344

Measured 7d ago against content hash cce057884d11, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

spatiotemporal-graph-feature-engineering 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 7d 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/examples/spatiotemporal-graph-feature-engineering/SKILL.md · 446 lines

How it starts

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

Spatiotemporal Graph Feature Engineering

Problem

Predicting outcomes on spatiotemporal graphs (nodes + edges + time) requires specialized features that capture both spatial relationships and temporal patterns. Standard tabular or time-series features often miss critical graph structure.

Context / Trigger Conditions

  • Data has nodes, edges, and time steps (e.g., traffic sensors, hydraulic networks)
  • Need to predict node-level values over time
  • Graph structure influences predictions (neighbors matter)
  • Common in: flood modelling, traffic prediction, power grid, social networks

Solution

Core Insight: Graph Features Trump Individual Features

Critical discovery:

Single-node features:
  elevation:     1179 importance
  degree:         345 importance

Neighbor aggregation:
  neigh_elev_mean: 1239 importance  ← MOST IMPORTANT!

Lesson: Aggregating information from neighbors consistently outperforms single-node features in graph-structured prediction tasks.

Feature Categories

1. Graph Structure Features (Static)

Node Degree:

from_counts = pd.concat([
    edges['from_node'],
    edges['to_node']
]).value_counts()

nodes['degree'] = nodes['node_idx'].map(from_counts).fillna(0).astype(int)

Neighbor Statistics (MOST IMPORTANT):

from collections import defaultdict

# Build adjacency list
adj = defaultdict(list)
for _, row in edges.iterrows():
    adj[int(row['from_node'])].append(int(row['to_node']))

# Aggregate neighbor features
elev_map = dict(zip(nodes['node_idx'], nodes['elevation']))

neighbor_features = []
for n in nodes['node_idx']:
    neighbors = adj.get(n, [])
    if neighbors:
        # Multiple aggregation strategies
        neighbor_values = [elev_map.get(x, elev_map[n]) for x in neighbors]

        neighbor_features.append({
            'neigh_elev_mean': np.mean(neighbor_values),
            'neigh_elev_std': np.std(neighbor_values),
            'neigh_elev_min': np.min(neighbor_values),
            'neigh_elev_max': np.max(neighbor_values),
            'neigh_count': len(neighbors),
        })
    else:
        # Isolated nodes
        neighbor_features.append({
            'neigh_elev_mean': elev_map[n],
            'neigh_elev_std': 0,
            'neigh_elev_min': elev_map[n],
            'neigh_elev_max': elev_map[n],
            'neigh_count': 0,
        })

Read the full file on GitHub · 446 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. 7d ago First seen · 446 lines · 88 tokens per session scan A cce057884d11

Subscribe to this mod's changes

spatiotemporal-graph-feature-engineering is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 13d ago), licensed MIT. It adds 88 tokens to every session and 3,435 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

huggingface-hub

Hugging Face Hub CLI (hf) — search, download, and upload models and datasets, manage repos, query datasets with SQL, deploy inference endpoints, manage Spaces and buckets.

braxtonROSE4/zorro-agent · 43 tokens

tensorboard

Visualize training metrics, debug models with histograms, compare experiments, visualize model graphs, and profile performance with TensorBoard - Google's ML visualization toolkit.

davila7/claude-code-templates · 32 tokens

mlflow

Track ML experiments, manage model registry with versioning, deploy models to production, and reproduce experiments with MLflow - framework-agnostic ML lifecycle platform.

davila7/claude-code-templates · 33 tokens

datachain-knowledge

Use whenever datasets, cloud storage buckets, or data pipelines are mentioned — creating, saving, querying, listing, exploring, deleting, or processing data in S3, GCS, Azure Blob, or local storage. Also use when running any script that may create datasets as a side effect. Maintains a knowledge base at dc-knowledge/…

datachain-ai/datachain · 104 tokens

prompt-scanner

A scanner for text sent to an AI agent, looking for prompt injection and jailbreak attempts. Prompt injection is text that tries to override an agent's instructions; a jailbreak tries to bypass its safety limits.

alibaba/anolisa · 103 tokens

install-openviking-memory

Install and configure the OpenViking long-term memory plugin for OpenClaw via natural conversation. Once installed, the plugin automatically captures facts from chats and recalls relevant context before each reply (auto-capture + auto-recall, cross-session). Covers prerequisites, install through OpenClaw's plugin…

volcengine/OpenViking · 191 tokens