Skip to content
Back to skills

Install Geoai

ASecurity

Verify that the geoai Python package is installed and functional. If not, provide installation instructions. Optionally check extra dependencies for deep learning models.

  • 29 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
datapythongobash

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned May 27, 2026

npx -y skills add opengeos/geoai-skills --skill install-geoai --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Install Geoai?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Install Geoai
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/opengeos-install-geoai/badge)](https://www.skillsdirectory.com/skills/opengeos-install-geoai)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: install-geoai
description: >
  Verify that the geoai Python package is installed and functional. If not,
  provide installation instructions. Optionally check extra dependencies
  for deep learning models.
argument-hint: "[--check] [--extras]"
allowed-tools: Bash
---

Arguments: `$@`

## Step 1 -- Check if geoai is importable

```bash
python3 -c "import geoai; print(f'geoai v{geoai.__version__}')"
```

- **Success** -> report the version and continue to Step 2 if `--check` or `--extras` was passed, otherwise stop.
- **ImportError** -> go to Step 3.

## Step 2 -- Check optional dependencies

If `--check` is present in `$@`, run a comprehensive dependency check:

```bash
python3 -c "
deps = [
    'geoai', 'geopandas', 'rasterio', 'rioxarray', 'shapely',
    'leafmap', 'numpy', 'pandas', 'matplotlib',
]
for dep in deps:
    try:
        mod = __import__(dep)
        ver = getattr(mod, '__version__', 'unknown')
        print(f'{dep}: {ver}')
    except ImportError:
        print(f'{dep}: NOT INSTALLED')
"
```

If `--extras` is present in `$@`, also check deep learning dependencies:

```bash
python3 -c "
import sys
dl_deps = ['torch', 'torchvision', 'transformers', 'timm', 'segmentation_models_pytorch']
for dep in dl_deps:
    try:
        mod = __import__(dep)
        ver = getattr(mod, '__version__', 'unknown')
        print(f'{dep}: {ver}')
    except ImportError:
        print(f'{dep}: NOT INSTALLED')

try:
    import torch
    if torch.cuda.is_available():
        print(f'CUDA: {torch.version.cuda} (device: {torch.cuda.get_device_name(0)})')
    else:
        print('CUDA: not available (CPU only)')
except ImportError:
    print('CUDA: torch not installed')
"
```

Report the results and note any missing packages.

## Step 3 -- Installation instructions

If geoai is not installed, tell the user:

> **geoai is not installed.** Install it with:
>
> ```
> pip install geoai-py
> ```
>
> For GPU-accelerated AI models (object detection, segmentation), also install PyTorch:
>
> ```
> pip install torch torchvision
> ```
>
> For the full set of optional dependencies:
>
> ```
> pip install "geoai-py[extra]"
> ```

Stop after showing the instructions. Do not attempt to install automatically unless the user explicitly asks.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.