qgis-agent

An AI agent for QGIS that checks its own maps. Website and gallery: abdelaalimouid.github.io/qgis-agent
An agent skill for Claude Code and Codex that teaches the agent a reliable way to work in QGIS: scope the request, get a plan approved, run each step as a numbered PyQGIS script, check the results, then hand back a factual work report, and write up the results when you ask. It is built for GIS and remote sensing work, from coursework to research and professional projects: Sentinel-2 imagery, spectral indices, classification, class areas, maps.

A plain request, end to end: plan, download, NDVI, classes and areas, checks, finished map. Every frame is real output from a test run.
Install
You need an agent that runs on your computer, Claude Code (the Claude desktop app's Code tab, or the terminal) or Codex, and QGIS 3 or 4. Web chat versions cannot drive a QGIS installed on your machine.
Claude Code, option 1: as a plugin
In Claude Code:
/plugin marketplace add abdelaalimouid/qgis-agent
/plugin install qgis-agent@qgis-agent
Or in a terminal:
claude plugin marketplace add abdelaalimouid/qgis-agent
claude plugin install qgis-agent@qgis-agent
To move to a newer version later:
claude plugin marketplace update qgis-agent
claude plugin update qgis-agent@qgis-agent
Claude Code, option 2: by hand
- Download qgis-agent.zip, the latest version.
- Unzip it into
~/.claude/skills/ (on Windows: C:\Users\<your name>\.claude\skills\). The file should end up here: ~/.claude/skills/qgis-agent/SKILL.md.
- Start a new Claude Code session.
You can also ask Claude Code to do it:
Download https://github.com/abdelaalimouid/qgis-agent/releases/latest/download/qgis-agent.zip and unzip it into ~/.claude/skills/
Codex
Codex reads the same skill format.
- Download qgis-agent.zip.
- Unzip it into
~/.agents/skills/, Codex's folder for personal skills (for one project only: .agents/skills/ inside the project). The file should end up here: ~/.agents/skills/qgis-agent/SKILL.md.
- Restart Codex. It opens the skill by itself when a task matches, or call it with
$qgis-agent.
In Codex the project rules file is AGENTS.md, and the skill uses that name. Codex runs commands in a sandbox: when the skill downloads Sentinel-2 data, approve network access (hosts listed under Network access). The skill is tested end to end with Claude Code; reports from Codex users are welcome in the Issues.
First run
Open Claude Code or Codex on your project folder and type:
Use the qgis-agent skill: check that QGIS is detected, then propose a project rules file for this project.
After that, just ask for what you want to do. You don't need to name the skill: the agent opens it by itself whenever a task involves QGIS or geographic data. It answers in your language.
What the skill does
- It reads the assignment and the project rules, then inventories the data.
- For satellite bands that are already in the folder, it reads their metadata, states the reflectance formula and the evidence for it, and measures the clouds when the scene has no mask band.
- It proposes a plan (steps, equivalent QGIS tools, projection, resolution, files created) and waits for your approval.
- It writes each step as a numbered, rerunnable script using QGIS's own tools (raster calculator, reclassify by table, zonal histogram, print layout), so you can redo every step by hand.
- It shows evidence: map previews, key figures, value ranges.
- It checks before handing over: projection, resolution, ranges, area totals, the project reopened from scratch.
- It hands back a factual work report: data, processing, results, checks, limits.
- On request, it writes the interpretation, a report or a paper draft from those results, with no figure the processing didn't produce and the limits kept visible.
By default it uses open data with no account: Sentinel-2 from the Earth Search catalogue, OpenStreetMap through the Overpass API.
Network access