swe-devops-standards

Solid

Always invoke to review, repair, or deliver geospatial or GeoAI code, including contract compliance, security, error handling, transactions, tests, scripts, functions, notebooks, packages, CI/CD, and repository changes, even when deployment is not requested. Pair with the domain skill for ETL and other production code. Covers CRS/data invariants, dependencies, cross-platform reproducibility, automation, and shipping. Do not trigger for unrelated software or analysis requesting no code or repository artifact.

DevOps & Infrastructure 3 stars 0 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Geospatial SWE & DevOps Standards Purpose: code produced as part of geospatial work should run in the user's real environment and meet peer-level engineering quality. Apply these rules only when code or repository artifacts are in scope. ## 1. Environment realities (the top error source) - **Script-first by default**: no `%matplotlib inline`, `!pip install`, or `display()` unless the user is explicitly in a notebook. Every file runs from a terminal via `python script.py` behind an `if __name__ == "__main__":` block. (Cell markers like `# %%` are fine as an addition — the script must also work without them.) - **Cross-platform paths**: always `pathlib.Path`; never string-concatenate or hardcode `/` or `\\`. Ask or detect the user's OS before giving shell commands; give CMD/PowerShell syntax on Windows, POSIX elsewhere — don't mix (`export` vs `set`, `venv/bin/activate` vs `venv\Scripts\activate`). - **Encodings**: explicit `encoding="utf-8"` on every text file open — Windows still defaults to legacy code pages, and non-ASCII content corrupts silently. - **Modern Python (3.11+)**: `X | None` unions, `type` aliases, structural pattern matching where they clarify; state the minimum version if a feature requires it. ## 2. Code quality defaults Applied to every generated function/module, even when not asked: ```python def compute_share(values: list[float], total: float) -> list[float]: """Return each value's share of the total. Args: ...

Details

Author
muend
Repository
muend/geoai-skills
Created
1 weeks ago
Last Updated
yesterday
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

engineering-discipline

Engineering standards for writing production code, slicing and reviewing PRs, authoring tests, running pre-push gates, and merging — on any stack. Covers code reuse and duplication, layering, enum and type discipline, complexity caps, tenant/scope isolation as a security invariant, dead code versus unwired capability, config-from-day-one, index-per-query, URL providers, server-versus-client state, loading and empty state contracts, accessibility, bulk-operation partial failure, design fidelity, seed data, invariant and e2e test standards, the review-fold-re-review loop, multi-PR migration cutovers, the full-gate sequence, merge policy, and agent-fleet orchestration. Load before writing production code, opening or reviewing a PR, authoring tests, pushing, or merging.

0 Updated today
abhimanyusingh-gh
Data & Documents Solid

geo-data-engineering

Always invoke when geospatial data must be acquired, prepared, repaired, scaled, or moved through a repeatable pipeline. Covers open-data/OSM/STAC acquisition, spatial formats, CRS transforms, quality checks, and batch ETL architecture for growing or recurring joins. Invoke alongside PostGIS for database execution and alongside SWE standards when code is delivered. Do not trigger merely because another specialist reads analysis-ready data.

3 Updated yesterday
muend
Code & Development Listed

python-guidelines

Use when writing, reviewing, or designing Python code where typing, error handling, resource safety, subprocess use, or test design matter.

1 Updated 3 days ago
stevencarpenter