qgis-errors-data-loading

qgis-errors-data-loading is a skill for Claude Code, Codex from Impertio-Studio/QGIS-Claude-Skill-Package. It costs 92 tokens per session (4,485 once invoked), scanned A, original, MIT.

A QGIS troubleshooting guide for layers that fail to load or connect to data sources such as files, GeoPackages, PostGIS, WMS, and WFS.

In plain words
What is it for?
Use it when checking layer validity, diagnosing data-source and connection errors, handling text encoding, or investigating loading performance.
Why use it?
It helps find silent loading failures, malformed provider addresses, encoding problems, locked databases, connection errors, and slow large-data imports.

Skill for Claude CodeCodex

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

Good fit Use it when checking layer validity, diagnosing data-source and connection errors, handling text encoding, or investigating loading performance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/impertio-studio/qgis-claude-skill-package/qgis-errors-data-loading
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-errors-data-loading
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-errors-data-loading

README.md
[![agentmods](https://agentmods.dev/badge/skills/impertio-studio/qgis-claude-skill-package/qgis-errors-data-loading/github.svg)](https://agentmods.dev/skills/impertio-studio/qgis-claude-skill-package/qgis-errors-data-loading)
Your own site
<a href="https://agentmods.dev/skills/impertio-studio/qgis-claude-skill-package/qgis-errors-data-loading"><img src="https://agentmods.dev/badge/skills/impertio-studio/qgis-claude-skill-package/qgis-errors-data-loading/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-errors-data-loading

Your own site · 80×15
<a href="https://agentmods.dev/skills/impertio-studio/qgis-claude-skill-package/qgis-errors-data-loading"><img src="https://agentmods.dev/badge/skills/impertio-studio/qgis-claude-skill-package/qgis-errors-data-loading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,485 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.00092 $0.04485
Opus 5 $0.00046 $0.02243
Sonnet 5 $0.00018 $0.00897
Haiku 4.5 $0.00009 $0.00449

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

Security

Grade A, and why

qgis-errors-data-loading 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 9d 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-errors/qgis-errors-data-loading/SKILL.md · 439 lines

How it starts

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

qgis-errors-data-loading

Quick Reference

The #1 Rule

ALWAYS call layer.isValid() immediately after creating ANY layer. An invalid layer does NOT raise an exception — it silently returns a broken object that crashes or produces undefined behavior on access.

layer = QgsVectorLayer(uri, name, provider)
if not layer.isValid():
    raise RuntimeError(f"Failed to load layer '{name}': check URI, provider, and data source")

Error Categories at a Glance

Error Category Symptoms Typical Root Cause
Invalid layer isValid() returns False Wrong path, bad URI, missing provider
Wrong URI format Layer loads with 0 features or fails silently Provider-specific URI syntax violated
Encoding issues Garbled attribute text, mojibake Shapefile .dbf encoding mismatch
GeoPackage locking "database is locked" error Concurrent write access to .gpkg
PostGIS connection failure Timeout, auth error, empty layer Network, credentials, permissions
WMS/WFS errors Blank tiles, timeout, parse failure Service URL, capabilities, CRS mismatch
Large dataset performance Memory exhaustion, UI freeze Loading all features into memory at once
Missing CRS Layer places at wrong location No .prj file or CRS metadata absent
Shapefile limitations Truncated field names, 2GB cap Format constraints hit

Critical Warnings

NEVER access features, attributes, or data provider methods on an invalid layer — this leads to crashes or undefined behavior.

NEVER use backslashes in file paths or URIs — QGIS/Qt normalizes to forward slashes internally. Backslashes in URIs cause provider failures.

NEVER pass True to uri.uri(expandAuthConfig) when logging or displaying URIs — this exposes credentials in plain text. ALWAYS use uri.uri(False).

NEVER hardcode absolute file paths in cross-platform code. ALWAYS use os.path.join() or pathlib.Path for path construction.

Read the full file on GitHub · 439 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. 9d ago First seen · 439 lines · 92 tokens per session scan A cfd325ccb2cc

Subscribe to this mod's changes

qgis-errors-data-loading is a skill published in the GitHub repository Impertio-Studio/QGIS-Claude-Skill-Package (33 stars, last pushed 2mo ago), licensed MIT. It adds 92 tokens to every session and 4,485 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

threejs-errors-performance

Use when a Three.js scene has performance problems: low FPS, memory leaks, too many draw calls, or high GPU memory usage. Prevents the common mistake of forgetting dispose(), creating objects in the render loop, or not using InstancedMesh for repeated objects. Covers disposal patterns, draw call optimization…

Impertio-Studio/Three.js-Claude-Skill-Package · 127 tokens

threejs-errors-rendering

Use when a Three.js scene renders incorrectly: black screen, invisible objects, wrong colors, z-fighting, or broken shadows. Prevents the common mistake of wrong color space, missing material.side, or forgetting updateProjectionMatrix. Covers all common rendering errors with diagnosis steps and fix patterns. Keywords…

Impertio-Studio/Three.js-Claude-Skill-Package · 104 tokens

n8n-errors-connection

Use when troubleshooting API connection failures, credential errors, or timeout issues in n8n. Prevents misdiagnosis by providing deterministic symptom-cause-fix tables. Covers API failures, credential errors, timeout configuration, SSL/TLS issues, webhook URL problems (test vs production), rate limiting, queue mode…

Impertio-Studio/n8n-Claude-Skill-Package · 118 tokens

n8n-errors-expressions

Use when debugging expression evaluation failures or undefined references in n8n workflows. Prevents data access errors by mapping every expression variable to its valid context. Covers undefined $json references, type mismatches, missing paired items, $itemIndex unavailability in Code node, $secrets restriction in…

Impertio-Studio/n8n-Claude-Skill-Package · 119 tokens

n8n-errors-execution

Use when debugging workflow execution failures or implementing error recovery in n8n. Prevents silent failures by enforcing the 4 error handling patterns. Covers node failures, timeout handling, continueOnFail pattern, Error Trigger node, error workflows, retry on fail configuration, Stop And Error node, and execution…

Impertio-Studio/n8n-Claude-Skill-Package · 110 tokens

frappe-errors-database

Use when handling database errors in Frappe/ERPNext. Covers DuplicateEntryError, LinkValidationError, MandatoryError, TimestampMismatchError, CharacterLengthExceededError, InReadOnlyMode, QueryTimeoutError, SQL injection errors, frappe.db.sql parameter format (% vs %s), getvalue returning None, transaction deadlocks…

Impertio-Studio/Frappe_Claude_Skill_Package · 142 tokens