AGENT SKILL

streamlit-geospatial

Guides researchers through the streamlit-geospatial multipage application, including Streamlit composition, Leafmap/Folium maps, remote Earth Engine workflows, and data-backed geospatial dashboards.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
streamlit-geospatial
license
MIT
metadata
{ "disco-role": "operating" }
description
Guides researchers through the streamlit-geospatial multipage application, including Streamlit composition, Leafmap/Folium maps, remote Earth Engine workflows, and data-backed geospatial dashboards.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

streamlit-geospatial

Use this repo skill when a task asks to build, adapt, troubleshoot, or deploy a Streamlit geospatial application using the workflow patterns demonstrated by streamlit-geospatial. It is a recipe and routing graph, not a requirement to keep the original checkout available.

Route the request

  • Interactive maps: basemaps, XYZ/QMS search, split maps, heatmaps, marker clusters, WMS, COG/raster views, vector uploads, or Folium/Kepler/PyDeck map rendering → interactive-maps.
  • Remote geospatial data: Earth Engine catalog/NLCD, Dynamic World or ESA/ESRI land cover, Microsoft building footprints, or Landsat/Sentinel/GOES/ MODIS/NAIP timelapses → remote-geospatial-data.
  • Dashboards and app shell: multipage Streamlit structure, U.S. housing metrics, PyDeck choropleths, historical Ordnance Survey comparisons, or Streamlit deployment → streamlit-dashboards.
  • Cross-cutting install or deployment failure: read installation and deployment, then troubleshooting.

When a request combines routes, validate local inputs first, then cross the external Earth Engine or remote-data boundary only after the caller explicitly provides credentials/network access. Keep each sub-skill's ownership intact.

Minimum environment

This repository is a Streamlit application rather than an installable Python distribution. Use Python 3.11 as the conservative inspection/runtime choice, install the documented Python requirements, and provide the system geospatial libraries and media tools listed in packages.txt when deploying. A typical runtime install is:

python -m pip install -r requirements.txt

The repository uses geemap.foliumap and geemap.foliumap.Map. Set the backend selector before importing that module:

export USE_FOLIUM=1
python -c "import streamlit, leafmap, geemap, geopandas; print('imports ok')"

Run the environment checker for a deterministic import/version preflight; it does not start Streamlit, authenticate Earth Engine, fetch tiles, or download data. Read the installation reference before using the deployment files because the original setup recipe writes a user Streamlit config and assumes host-level package installation.

App composition

The app entry point is Home.py; numbered files under pages/ become sidebar pages automatically. Keep each page importable and call st.set_page_config before creating the page UI. Use st.cache_data only around deterministic fetch/parse functions, keep remote URLs and credentials outside source, and render Folium/Kepler maps through their Streamlit adapter or PyDeck maps with st.pydeck_chart.

For public runtime use, preserve attribution and validate remote endpoints. Treat WMS/XYZ/COG/housing sources and Earth Engine assets as mutable external services. Do not claim a remote layer, asset, or timelapse exists without a successful bounded request and an output check.

Verification and maintenance

  • Compile page files and run each bundled helper's --help and tiny fixture checks before starting a server.
  • Use local GeoJSON/KML/CSV fixtures for deterministic checks; do not use a live remote endpoint as an import test.
  • Read repo provenance before deciding whether a later checkout needs refresh-repo-skill.
  • Read the source script map when adapting a page or deployment helper so the original checkout is never a runtime dependency.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351