qgis-agent

An AI agent for QGIS that checks its own maps.

qgis-agent is a free, open-source skill for Claude Code and Codex. Ask for a GIS or remote sensing task in plain words: it plans first, works with QGIS's own tools, and verifies every result before handing it over.

Demo: a plain request for an NDVI map around Azrou, the plan, the downloaded image, the NDVI, the class areas, the checks and the finished map.

How it works

The same five steps for a single reprojection or a full processing chain. You stay in charge of the question and the judgement; the agent does the hands-on work.

  1. 1

    Plans, then waits

    Steps, QGIS tools, projection, resolution and files, approved before anything runs.

  2. 2

    Uses QGIS's tools

    Raster calculator, reclassification, zonal histogram, print layouts: steps you can redo by hand.

  3. 3

    Shows evidence

    Map previews, key figures and value ranges, not just "done".

  4. 4

    Checks the results

    Projection, ranges, area totals, the project reopened from scratch, one step recomputed another way.

  5. 5

    Reports, then writes

    A factual work report first; a report or paper draft on request, built only from real results.

A map can look right and be wrong.

During testing, an agent could not reach the server that stores the satellite images. Instead of saying so, it worked around the problem with its own code and an older copy of the catalogue. That copy's values already included a correction that its description still asked for, so every band came out too low.

The finished map looked normal. Only an independent recalculation showed the problem. The skill now detects that trap, switches to a safe fallback, and tells the agent to check values against reference ranges before computing anything.

Every change is tested automatically on Linux and macOS with QGIS 4 and on Windows with the official QGIS 3.44 installer, and real downloads from both image sources are compared every week.
6 %"dense built-up" area the agent reported, Khénifra
0.2 %the real value, from an independent recalculation

Install

You need Claude Code or Codex on your computer, and QGIS 3 or 4. Web chat versions cannot drive a QGIS installed on your machine.

Claude Code, as a plugin

/plugin marketplace add abdelaalimouid/qgis-agent
/plugin install qgis-agent@qgis-agent

Type both in Claude Code. Updates come with claude plugin update qgis-agent@qgis-agent.

By hand, or with Codex

Claude Code   ~/.claude/skills/
Codex         ~/.agents/skills/

Download qgis-agent.zip and unzip it into your agent's skills folder above, then start a new session. In Codex, call it with $qgis-agent or let it pick the skill up by itself.

First run, in your project folder: Use the qgis-agent skill: check that QGIS is detected, then propose a project rules file for this project. After that, just ask; the agent opens the skill by itself and answers in your language.

The guide

Working with an AI agent in QGIS explains the method in ten pages: setting up the project, writing the request, the work cycle, checking without redoing everything, the work report and the write-up. It ends with a real work report from the Ifrane forest.

Roadmap and how to contribute: Windows testers and new skills are especially welcome.

Cite

Mouid, A. (2026). qgis-agent: an agent skill for working in QGIS [software]. https://github.com/abdelaalimouid/qgis-agent