Logo vun Safety

Safety

Communautéit
danmaps
safety

Add a safety harness around ArcPy workflows that can write to data or production systems

Iwwersiicht

Editeurdanmaps
Repositorygis-agent-skills
Skill-Nummsafety
Stären
30
Forks
2
Matgeliwwert Fichieren
1
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum danmaps op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Safety an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/danmaps/gis-agent-skills/tree/main/skills/safety
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/danmaps/gis-agent-skills.git /tmp/gis-agent-skills
mkdir -p .claude/skills
cp -r /tmp/gis-agent-skills/skills/safety .claude/skills/safety
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Safety an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Safety automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Safety net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Safety

Wrap ArcPy automation in explicit operational safeguards before it can modify shared, sensitive, or production GIS data.

Intent

Make write-capable GIS automation prove what it will touch, what checks passed, and who approved production execution before any irreversible step runs.

Inputs

  • task_description (string)
  • source_workspace (string)
  • target_workspace (string)
  • approved_workspace (string, optional)
  • expected_change (string)
  • reviewer (string, optional)
  • environment (string, optional: dev, test, prod)
  • current_script_path (string, optional)

Safety defaults

  • Default to dry-run mode whenever the workflow can preview SQL, row counts, target paths, deletes, updates, appends, or overwrites without committing changes.
  • Gather and restate the source, target, approved workspace, expected change, and reviewer context before enabling writes.
  • If any of those are missing, stop and ask.

Preflight checks

Require checks appropriate to the workflow, such as:

  • source and target paths exist and resolve to the intended geodatabase, folder, or service
  • target is inside the approved workspace boundary
  • geometry type, schema, and spatial reference match expectations
  • locks, permissions, and available disk space are acceptable
  • overwrite/delete behavior is explicit
  • backups, export snapshots, or rollback options are identified before destructive writes

Validation requirements

Require workflow-specific validation before and after writes:

  • expected row-count or extent change
  • key field null/uniqueness checks
  • sample record inspection or map spot-checks
  • service or downstream dependency checks when publishing/updating hosted content

Hand off to /post-run-validation for the post-write sanity check rather than repeating that skill in full.

Production-write boundary

Production writes require explicit user-controlled confirmation.

Rules:

  • Never invent, auto-fill, paraphrase, or bypass a production confirmation phrase.
  • Ask the user to provide the confirmation phrase exactly when the workflow is ready.
  • Do not proceed on implied consent such as “looks good”, “go ahead”, or “same as before”.
  • If organizational change control, maintenance windows, peer review, or approvals are required, make those dependencies explicit and block writes until they are satisfied.

Run receipt

Generate or specify a JSON receipt for each run. Include at least:

json
{
  "run_id": "uuid-or-timestamp",
  "started_at": "ISO-8601",
  "ended_at": "ISO-8601",
  "script_path": "...",
  "script_hash": "sha256:...",
  "mode": "dry-run|write",
  "environment": "dev|test|prod",
  "source_workspace": "...",
  "target_workspace": "...",
  "approved_workspace": "...",
  "expected_change": "...",
  "reviewer": "...",
  "preflight_checks": [{"name": "...", "status": "pass|fail|skip", "details": "..."}],
  "validation_checks": [{"name": "...", "status": "pass|fail|skip", "details": "..."}],
  "outcome": "blocked|dry-run|success|failure"
}

Example

An existing parcel update script is being moved under /scaffold into src/parcels/. Before enabling Append or DeleteRows, require:

  1. a dry-run that reports source/target paths and expected feature delta
  2. preflight checks for schema, locks, backup path, and approved workspace
  3. explicit production confirmation from the user
  4. a JSON receipt written with the script hash and validation results

Output

Return:

  • the missing safety inputs that must be gathered
  • the dry-run plan
  • the required preflight and validation checks
  • the exact point where human confirmation is required
  • the run receipt structure or concrete JSON fields to capture

Source material

Related skills

  • Use /arcpy-plan to define the workflow.
  • Use /scaffold to organize the project before adding guardrails.
  • Use /arcpy-script to implement the guarded workflow.
  • Use /post-run-validation after execution to confirm results.

Safety

Do not claim approval, human review, backups, permissions, or change-control completion unless the user explicitly provides that information.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Safety?

Add a safety harness around ArcPy workflows that can write to data or production systems

Firwat Safety op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Safety besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Safety an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/danmaps/gis-agent-skills/tree/main/skills/safety an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Safety benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Safety benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Safety domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Safety gratis?

De Skill gëtt vum danmaps op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇