qgis-syntax-expressions

qgis-syntax-expressions is a skill for Claude Code, Codex from Impertio-Studio/QGIS-Claude-Skill-Package. It costs 91 tokens per session (2,667 once invoked), scanned A, original, MIT.

A guide to QGIS expressions, which are small formulas used to filter data, calculate fields, label features, and control map styling.

In plain words
What is it for?
Use it to write, validate, and run expressions with field references, conditions, calculations, pattern matching, and data-defined properties.
Why use it?
It helps prevent invalid formulas and incorrect results caused by using the wrong fields, values, or evaluation context.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to write, validate, and run expressions with field references, conditions, calculations, pattern matching, and data-defined properties.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/impertio-studio/qgis-claude-skill-package/qgis-syntax-expressions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Impertio-Studio/QGIS-Claude-Skill-Package --skill qgis-syntax-expressions
Clone the repo
git clone --depth 1 https://github.com/Impertio-Studio/QGIS-Claude-Skill-Package

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qgis-syntax-expressions

README.md
[![agentmods](https://agentmods.dev/badge/skills/impertio-studio/qgis-claude-skill-package/qgis-syntax-expressions/github.svg)](https://agentmods.dev/skills/impertio-studio/qgis-claude-skill-package/qgis-syntax-expressions)
Your own site
<a href="https://agentmods.dev/skills/impertio-studio/qgis-claude-skill-package/qgis-syntax-expressions"><img src="https://agentmods.dev/badge/skills/impertio-studio/qgis-claude-skill-package/qgis-syntax-expressions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qgis-syntax-expressions

Your own site · 80×15
<a href="https://agentmods.dev/skills/impertio-studio/qgis-claude-skill-package/qgis-syntax-expressions"><img src="https://agentmods.dev/badge/skills/impertio-studio/qgis-claude-skill-package/qgis-syntax-expressions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,667 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.02667
Opus 5 $0.00046 $0.01333
Sonnet 5 $0.00018 $0.00533
Haiku 4.5 $0.00009 $0.00267

Measured 12d ago against content hash 8de5490baaa2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

qgis-syntax-expressions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/source/qgis-syntax/qgis-syntax-expressions/SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

qgis-syntax-expressions

Quick Reference

Expression Evaluation Pipeline

Step Class Purpose
1. Parse QgsExpression(string) Validate syntax, build AST
2. Context QgsExpressionContext() Provide variables, fields, scopes
3. Scopes QgsExpressionContextUtils Add global/project/layer/feature scopes
4. Evaluate exp.evaluate(context) Execute and return result
5. Validate exp.hasEvalError() Check for runtime errors

Expression Syntax Cheatsheet

Element Syntax Example
Field reference "field_name" (double quotes) "population"
String literal 'text' (single quotes) 'hello world'
Number literal 123, 3.14 42
NULL check IS NULL, IS NOT NULL "name" IS NOT NULL
Comparison =, !=, >, >=, <, <= "area" > 100
Logical AND, OR, NOT "pop" > 1000 AND "type" = 'city'
Arithmetic +, -, *, /, ^, % "population" * 1.05
Pattern match LIKE, ILIKE, ~ (regex) "name" ILIKE '%lake%'
Concatenation || "first" || ' ' || "last"
Conditional CASE WHEN ... THEN ... END CASE WHEN "pop" > 1e6 THEN 'large' ELSE 'small' END
Geometry vars $area, $length, $x, $y $area / 1e6
Current geometry $geometry num_points($geometry)

Common Expression Functions

Category Functions
Math sqrt(), abs(), round(), floor(), ceil(), sin(), cos(), pi()
String upper(), lower(), length(), trim(), replace(), regexp_replace(), substr(), left(), right()
Conversion to_int(), to_real(), to_string(), to_date(), to_datetime()
Date/Time now(), day(), month(), year(), hour(), minute(), age(), day_of_week()
Geometry $area, $length, $x, $y, $perimeter, centroid(), buffer(), area(), length(), num_geometries(), num_points()
Aggregates aggregate(), sum(), count(), mean(), min(), max(), concatenate(), array_agg()
Conditionals if(), coalesce(), nullif(), try()
Arrays array(), array_length(), array_contains(), array_append(), array_to_string()
Map/Record map(), map_get(), hstore_to_map()
Color color_rgb(), color_hsv(), ramp_color(), darker(), lighter()

Read the full file on GitHub · 296 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 296 lines · 91 tokens per session scan A 8de5490baaa2

Subscribe to this mod's changes

qgis-syntax-expressions is a skill published in the GitHub repository Impertio-Studio/QGIS-Claude-Skill-Package (33 stars, last pushed 2mo ago), licensed MIT. It adds 91 tokens to every session and 2,667 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

opengis-all

Use when navigating end-to-end GIS workflows — discover the full toolchain from GDAL data processing through GeoServer publishing to CesiumJS/OpenLayers visualization. One-stop index covering the complete open-source GIS data pipeline.

znlgis/opengis-skills · 48 tokens

open-map-stack

Use textual agent instructions for GIS and geospatial work: source discovery and provenance, vector/raster/point-cloud pipelines, CRS and metric analysis, spatial SQL, routing and isochrones, QGIS projects, tile generation, and web maps. Use advanced tools and formats such as OSM, Overture, STAC, Sentinel/Landsat…

jaakla/openmapstack · 173 tokens

opengis-daf

Use when building plan-driven GIS data analysis or data quality-check pipelines with OpenGisDAF (.NET 10 / C# 14): define buffer, clip, intersect/containment checks, coordinate transform, field calculator, attribute/geometry QC rules purely in JSON plans, run the daf CLI, chain operators via DAG upstream bindings…

znlgis/opengis-skills · 95 tokens

gdal

Use when processing geospatial raster/vector data via command line — format conversion (Shapefile to GeoJSON), reprojection, DEM analysis, NDVI calculation, mosaicking. GDAL/OGR CLI: the industry standard for batch geospatial data processing with 50+ command-line tools (ogr2ogr, gdalwarp, gdaltranslate, gdalcalc).

znlgis/opengis-skills · 77 tokens

gis-skills

Use when processing geospatial data, publishing map services, querying spatial databases, performing geometry operations, or building web map applications. Index of 24 skills: GDAL, GeoServer, QGIS, PostGIS, JTS, GeoPandas, Shapely, CesiumJS, OpenLayers, NetTopologySuite, OpenGisDAF and more.

znlgis/opengis-skills · 77 tokens

swmm-end-to-end

Top-level orchestration skill for agentic SWMM modelling. Use when an agent needs one entrypoint that decides which module tools to run, in what order, and when to stop, for example to build, run, QA, and optionally calibrate a SWMM case from prepared or partially prepared inputs.

Zhonghao1995/agentic-swmm-workflow · 67 tokens