Standard rules for geological data validation and processing.

Install

mkdir -p .claude/skills/geological-logic && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14204" && unzip -o skill.zip -d .claude/skills/geological-logic && rm skill.zip

Installs to .claude/skills/geological-logic

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Standards for handling drillhole data, section interpolation, and 3-level validation.
85 charsno explicit “when” trigger
Advanced

Key capabilities

  • Define entities using Dataclasses and strict types
  • Implement 3-level validation (Type, Schema, Business)
  • Decouple core services from QgsGeometry
  • Operate with WKT strings for geometry
  • Create unit tests with varied CRS contexts

How it works

The skill defines business rules for processing mining/geological data, ensuring geometric consistency and data integrity through a 3-level validation process. It mandates decoupling core services from QgsGeometry and operating with WKT strings.

Inputs & outputs

You give it
Geological data or algorithms
You get back
Validated geological data or consistent geometric logic

When to use geological-logic

  • Validating geological drillhole data
  • Implementing interpolation algorithms
  • Processing mining data services
  • Defining geological data schemas

About this skill

Geological and Domain Logic

Defines the business rules for processing mining/geological data, ensuring geometric consistency and the integrity of drillhole data.

When to use this skill

  • When modifying drillhole processing services (DrillholeService).
  • When designing interpolation algorithms or section intersections.
  • When implementing new geological data validation rules.

Degree of Freedom

  • Strict: 3-level validation rules and PyQGIS decoupling are mandatory.

Workflow

  1. Modeling: Define entities using Dataclasses and strict types.
  2. Validation: Implement the 3 levels (Type, Schema, Business).
  3. Abstraction: Ensure core logic uses WKT or DTOs, not QgsGeometry.
  4. Testing: Create unit tests with varied CRS contexts.

Instructions and Rules

3-Level Validation

  1. Level 1 (Type): Basic data types and allowed ranges.
  2. Level 2 (Schema): Consistency between fields (e.g., StartDepth < EndDepth).
  3. Level 3 (Business): External consistency (e.g., "Layer exists", "No overlaps in geology").

Geometry Rules

  • Decoupling: Core services MUST NEVER depend on QgsGeometry.
  • WKT Standard: Operate with WKT strings; convert to PyQGIS only at the UI boundary.
  • Endpoint Interpolation: Mandate interpolation at exact interval depths in TrajectoryEngine to guarantee valid segment geometry generation for short intervals.
  • Mocks: Use MockQgsGeometry for local unit tests.

Quality Checklist

  • Is core logic independent of PyQGIS?
  • Are all 3 validation levels implemented?
  • Do tests exist for edge cases (vertical, parallel drillholes)?
  • Are units and CRS handled correctly?

When not to use it

  • When not modifying drillhole processing services
  • When not designing interpolation algorithms or section intersections
  • When not implementing new geological data validation rules

Limitations

  • 3-level validation rules are mandatory
  • PyQGIS decoupling is mandatory

How it compares

This approach enforces strict data validation and geometric decoupling for geological data processing, which differs from general data handling by ensuring consistency and integrity specific to drillhole data.

Compared to similar skills

geological-logic side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
geological-logic (this skill)05moNo flagsAdvanced
quant-analyst1032moNo flagsAdvanced
umap-learn62moReviewIntermediate
embedding-strategies82moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

quant-analyst

zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

103355

umap-learn

K-Dense-AI

UMAP dimensionality reduction. Fast nonlinear manifold learning for 2D/3D visualization, clustering preprocessing (HDBSCAN), supervised/parametric UMAP, for high-dimensional data.

6100

embedding-strategies

wshobson

Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.

890

building-automl-pipelines

jeremylongshore

Build automated machine learning pipelines, including feature engineering, model selection, and performance evaluation.

688

model-compare

rawwerks

Compare 3D CAD models using boolean operations (IoU, Dice, precision/recall). Use when evaluating generated models against gold references, diffing CAD revisions, or computing similarity metrics for ML training. Triggers on: model diff, compare models, IoU, intersection over union, model similarity, CAD comparison, STEP diff, 3D evaluation, gold reference, generated model, precision recall 3D.

783

matchms

davila7

Mass spectrometry analysis. Process mzML/MGF/MSP, spectral similarity (cosine, modified cosine), metadata harmonization, compound ID, for metabolomics and MS data processing.

674

Search skills

Search the agent skills registry