geological-logic
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.zipInstalls 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.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
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
- Modeling: Define entities using Dataclasses and strict types.
- Validation: Implement the 3 levels (Type, Schema, Business).
- Abstraction: Ensure core logic uses WKT or DTOs, not
QgsGeometry. - Testing: Create unit tests with varied CRS contexts.
Instructions and Rules
3-Level Validation
- Level 1 (Type): Basic data types and allowed ranges.
- Level 2 (Schema): Consistency between fields (e.g.,
StartDepth < EndDepth). - 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
TrajectoryEngineto guarantee valid segment geometry generation for short intervals. - Mocks: Use
MockQgsGeometryfor 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| geological-logic (this skill) | 0 | 5mo | No flags | Advanced |
| quant-analyst | 103 | 2mo | No flags | Advanced |
| umap-learn | 6 | 2mo | Review | Intermediate |
| embedding-strategies | 8 | 2mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by geociencio
View all by geociencio →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.
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.
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.
building-automl-pipelines
jeremylongshore
Build automated machine learning pipelines, including feature engineering, model selection, and performance evaluation.
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.
matchms
davila7
Mass spectrometry analysis. Process mzML/MGF/MSP, spectral similarity (cosine, modified cosine), metadata harmonization, compound ID, for metabolomics and MS data processing.