Skip to content

QGIS Command-Line Control

Lets an agent create and edit QGIS maps, layers and layouts from the terminal via the real QGIS runtime

Stars
58,084
Licence
Apache-2.0
Files
1 file

What it does

Once installed, the agent can operate QGIS, a widely used open-source mapping program, through a command-line tool instead of the graphical interface. It can create or open project files, add editable geographic layers and features, build printable map layouts, export them to PDF or image, and run QGIS geoprocessing tools such as buffering. The skill tells the agent to use JSON output and to keep a stateful session for multi-step work.

Great for

  • GIS analysts who want repeatable, scripted map and layer edits
  • Developers automating QGIS map production or geoprocessing pipelines
  • People who need an AI agent to batch-generate maps as PDFs or images

Skip it if

  • Users without QGIS installed, since the skill depends on the real QGIS runtime and qgis_process being on PATH
  • Anyone expecting a simple chat-only tool: it modifies project files and writes outputs to disk, so review changes before relying on them
  • Sensitive or production GIS projects without backups, because commands such as save and layer removal overwrite or delete data

Try asking

  • “Create a new QGIS project in EPSG:4326 and add a point layer called places with name and score fields”
  • “Add features from WKT coordinates to an existing project and list the first 10 records”
  • “Build a print layout with a map and a title label, then export it to PDF”
  • “Run the native buffer algorithm on a GeoPackage layer and save the result as GeoJSON”
Step-by-step guide: how to use QGIS Command-Line ControlInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the Apache-2.0 licence and an attribution note.

    skills.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip skills.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip skills.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Always pass --json and --project so the agent works on a known file rather than an ambiguous session state
  • Back up existing .qgs/.qgz projects and data before running save, remove or processing commands that write outputs
  • Use process help ALGORITHM_ID before process run to confirm the exact parameter names

What's inside

  • SKILL.md

Redistributed unmodified from HKUDS/CLI-Anything under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.