transbigdata-grid

transbigdata-grid is a skill for Claude Code from ni1o1/claude-skill-transbigdata. It costs 66 tokens per session (1,989 once invoked), scanned A, original, MIT.

A Python guide for dividing geographic areas into regular cells, called a grid. It supports rectangular, triangular, and hexagonal cells and can encode locations with geohashes.

In plain words
What is it for?
Use it to create grids for a region, assign GPS tracks to cells, choose grid settings, and perform location-based summaries or neighbourhood analysis.
Why use it?
It makes large collections of GPS or map points easier to group, compare, and analyse by area.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the transbigdata plugin — 9 skills shipped together

Good fit Use it to create grids for a region, assign GPS tracks to cells, choose grid settings, and perform location-based summaries or neighbourhood analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ni1o1/claude-skill-transbigdata/transbigdata-grid
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 ni1o1/claude-skill-transbigdata --skill transbigdata-grid
Clone the repo
git clone --depth 1 https://github.com/ni1o1/claude-skill-transbigdata

Made for: Claude Code.

Or install transbigdata, the plugin that ships this one along with the rest of its 9 skills.

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 transbigdata-grid

README.md
[![agentmods](https://agentmods.dev/badge/skills/ni1o1/claude-skill-transbigdata/transbigdata-grid/github.svg)](https://agentmods.dev/skills/ni1o1/claude-skill-transbigdata/transbigdata-grid)
Your own site
<a href="https://agentmods.dev/skills/ni1o1/claude-skill-transbigdata/transbigdata-grid"><img src="https://agentmods.dev/badge/skills/ni1o1/claude-skill-transbigdata/transbigdata-grid/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 transbigdata-grid

Your own site · 80×15
<a href="https://agentmods.dev/skills/ni1o1/claude-skill-transbigdata/transbigdata-grid"><img src="https://agentmods.dev/badge/skills/ni1o1/claude-skill-transbigdata/transbigdata-grid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,989 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.00066 $0.01989
Opus 5 $0.00033 $0.00994
Sonnet 5 $0.00013 $0.00398
Haiku 4.5 $0.00007 $0.00199

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

Security

Grade A, and why

transbigdata-grid 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 8d 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/transbigdata-grid/SKILL.md · 240 lines

How it starts

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

TransBigData 栅格化功能指南

TransBigData 是一个用于交通时空大数据处理的 Python 库。本 skill 指导如何使用其栅格化功能。

安装

pip install transbigdata

默认配置

推荐使用方形栅格(矩形栅格),常用精度:

  • 500米栅格: accuracy=500 - 适合城市级别分析,平衡精度与计算效率
  • 1公里栅格: accuracy=1000 - 适合区域级别分析,数据量较小时使用
import transbigdata as tbd

# 500米方形栅格(默认推荐)
params = tbd.area_to_params(bounds, accuracy=500)

# 1公里方形栅格
params = tbd.area_to_params(bounds, accuracy=1000)

核心概念

栅格化将连续的地理空间划分为离散的网格单元,便于数据聚合和分析。TransBigData 支持三种栅格类型:

  • 矩形栅格 (rect): 默认推荐,计算效率高,适合大多数场景
  • 三角形栅格 (tri): 适合特定空间分析
  • 六边形栅格 (hexa): 各向同性,适合邻域分析

核心函数

1. 生成栅格参数 - area_to_params()

根据研究区域生成栅格化参数。

import transbigdata as tbd

# 从边界框生成参数
bounds = [lon_min, lat_min, lon_max, lat_max]
params = tbd.area_to_params(bounds, accuracy=500)  # 500米精度

# 从 GeoDataFrame 生成参数
params = tbd.area_to_params(gdf, accuracy=500, method='rect')

参数说明:

  • location: 边界框 [lon_min, lat_min, lon_max, lat_max] 或 GeoDataFrame
  • accuracy: 栅格大小(米)
  • method: 'rect'(矩形)、'tri'(三角形)、'hexa'(六边形)

返回值: 栅格参数字典或列表

2. 生成栅格 - area_to_grid()

在指定区域内生成栅格几何对象。

# 生成矩形栅格
grid, params = tbd.area_to_grid(bounds, accuracy=500, method='rect')

# 生成六边形栅格
grid, params = tbd.area_to_grid(gdf, accuracy=500, method='hexa')

返回值: (GeoDataFrame 栅格, 栅格参数)

3. GPS点映射到栅格 - GPS_to_grid()

将经纬度坐标匹配到栅格ID。

# 矩形栅格:返回 LONCOL, LATCOL
data['LONCOL'], data['LATCOL'] = tbd.GPS_to_grid(
    data['longitude'],
    data['latitude'],
    params
)

# 三角形/六边形栅格:返回单一索引
data['grid_id'] = tbd.GPS_to_grid(
    data['longitude'],
    data['latitude'],
    params
)

4. 获取栅格中心 - grid_to_centre()

根据栅格ID获取栅格中心坐标。

# 矩形栅格
data['HBLON'], data['HBLAT'] = tbd.grid_to_centre(
    [data['LONCOL'], data['LATCOL']],
    params
)

# 三角形/六边形栅格
data['HBLON'], data['HBLAT'] = tbd.grid_to_centre(
    data['grid_id'],
    params
)

5. 生成栅格多边形 - grid_to_polygon()

根据栅格ID生成几何多边形。

# 矩形栅格
data['geometry'] = tbd.grid_to_polygon(
    [data['LONCOL'], data['LATCOL']],
    params
)

# 创建 GeoDataFrame
import geopandas as gpd
grid_gdf = gpd.GeoDataFrame(data, geometry='geometry', crs='EPSG:4326')

Read the full file on GitHub · 240 lines

Files

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.

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. 8d ago First seen · 240 lines · 66 tokens per session scan A fc9f5e0a733c

Subscribe to this mod's changes

transbigdata-grid is a skill published in the GitHub repository ni1o1/claude-skill-transbigdata (4 stars, last pushed 7mo ago), licensed MIT. It adds 66 tokens to every session and 1,989 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for…

K-Dense-AI/scientific-agent-skills · 66 tokens

torchdrug

Build and troubleshoot TorchDrug 0.2.1 workflows for molecular graphs, property prediction, self-supervised pretraining, molecule generation, retrosynthesis, protein representation learning, and knowledge graph reasoning. Use when code imports torchdrug or needs its datasets, models, tasks, or Engine.

K-Dense-AI/scientific-agent-skills · 61 tokens

deepspot-m

Generate transcriptome-wide virtual spatial transcriptomics from H&E histology with DeepSpot-M. Use when you need spatial gene expression in log1p-CPM for 224x224 tiles at about 20x, want to query protein-coding genes by symbol instead of a fixed panel, or want to run prediction across a whole slide after tiling with…

K-Dense-AI/scientific-agent-skills · 80 tokens

pyhealth

Build clinical/healthcare deep-learning pipelines with PyHealth — loading EHR/signal/imaging datasets (MIMIC-III/IV, eICU, OMOP, SleepEDF, ChestXray14, EHRShot), defining tasks (mortality, readmission, length-of-stay, drug recommendation, sleep staging, ICD coding, EEG events), instantiating models (Transformer…

K-Dense-AI/scientific-agent-skills · 216 tokens

pick-a-pii-model

Select an on-device OpenMed PII model from the committed registry by language, runtime format, and size budget, then require recall validation before deployment. Use when an agent must choose a local PII detector for CPU, Apple Silicon, or a mobile export without relying on live model discovery.

maziyarpanahi/openmed · 64 tokens

esm

Comprehensive toolkit for protein language models including ESM3 (generative multimodal protein design across sequence, structure, and function) and ESM C (efficient protein embeddings and representations). Use this skill when working with protein sequences, structures, or function prediction; designing novel…

synthetic-sciences/openscience · 86 tokens