SkillsLib.ai

Shapely Compute

Perform computational geometry operations with Shapely

4.5(50 reviews)
1,000+ downloads
Updated Sep 2026
Verified SafeSecurity VerifiedThis skill was analyzed by our AI security scanner for harmful content including data exfiltration, system manipulation, credential theft, and prompt injection. No threats were detected.

What You Can Do

You can construct geometric objects (points, lines, polygons, multigeometries), execute boolean operations (intersection, union, difference), apply spatial predicates (contains, intersects, within), calculate measurements (area, length, distance, centroid), and transform geometries through translation, rotation, and scaling. This skill handles geometry validation, invalid geometry repair, and complex spatial analysis tasks.

Features

Create geometric shapes

construct points, lines, polygons, multipoints, and multilinestrings with custom coordinates

Boolean operations

compute intersection, union, difference, and symmetric difference between geometries

Spatial predicates

evaluate contains, intersects, within, touches, crosses, and overlaps relationships

Measurements

calculate area, length, distance between geometries, and centroid positions

Geometry transformations

translate, rotate, scale, and buffer geometries with specified parameters

Validation and repair

identify and fix invalid geometries, handle self-intersecting polygons

WKT support

work with Well-Known Text format for geometry representation and interchange

Convex hull generation

compute minimal convex polygon enclosing a geometry

Example Output

Create a polygon and measure its area:

code
Input: create polygon --coords "0,0 1,0 1,1 0,1"
Output: Polygon created with 4 vertices
  Area: 1.0 square units
  Centroid: (0.5, 0.5)

Check spatial relationship:

code
Input: pred contains --g1 "POLYGON((0,0 10,0 10,10 0,10))" --g2 "POINT(5 5)"
Output: True — the point (5, 5) is contained within the polygon

Calculate distance between geometries:

code
Input: distance --g1 "POINT(0 0)" --g2 "POINT(3 4)"
Output: Distance: 5.0 units (Euclidean distance)

What's Included

  • SKILL.md: Complete reference guide with command syntax and quick reference table
  • Shapely command library: Structured commands for geometry creation, operations, predicates, and measurements
  • WKT format templates: Standard Well-Known Text examples for all geometry types
  • Transformation workflows: Step-by-step geometry manipulation patterns (translate, rotate, scale, buffer)
  • Validation checklist: Geometry validation procedures and common geometry issues with fixes

Who It's For

  • GIS analysts and geospatial engineers working with vector geometry data
  • Civil and environmental engineers designing and analyzing spatial layouts
  • Data scientists building location-based analytics and spatial models
  • Urban planners evaluating site boundaries, overlays, and spatial relationships
  • Software engineers implementing geometric algorithms and spatial indexing

Best For

  • Calculating polygon areas, perimeters, and centroids for spatial analysis
  • Finding intersections and overlaps between geographic regions or geometric shapes
  • Validating complex geometry datasets before processing or visualization
  • Performing distance calculations and spatial relationship queries
  • Transforming and manipulating geometric coordinates for coordinate system conversions

You might also like

Quantum-Entangled Claim Analysis for Construction Disputes
$25
Quantum3.3(28)
Quantum-Entangled Claim Analysis for Construction Disputes

This skill maps construction claims as interdependent probability states rather than isolated analyses, allowing you to evaluate how changes in one contractual interpretation cascade through damages calculations, delay causation, and liability allocation. You can simultaneously model competing scenarios—concurrent causation, ambiguous change order triggers, insurance coverage dependencies—and identify which settlement positions minimize exposure across all correlated outcomes, not just single interpretations.

ETL Pipeline Design & Optimization
$25
ETL Pipeline Design & Optimization

Analyze your data pipeline architecture, identify performance bottlenecks, and receive detailed optimization strategies. You'll get architectural recommendations for scalability, data quality assurance patterns, and concrete implementation guidance for improving throughput and reducing latency in your ETL workflows.

Prove
$25
Backend4.4(46)
Prove

You can formally verify mathematical proofs by translating theorems into Lean 4 code, leveraging Mathlib's extensive library of formalized mathematics. The skill guides you through researching existing lemmas, designing proof strategies, testing approaches, implementing formal proofs, and verifying correctness—turning informal mathematical claims into machine-checked theorems without requiring deep Lean syntax expertise.

Querying Indonesian Gov Data
$30
Querying Indonesian Gov Data

You can query over 50 Indonesian government APIs and data sources to build applications with authoritative Indonesian data. Verify halal certification status through BPJPH, check food/drug/cosmetic registration via BPOM, confirm financial entity legality through OJK, retrieve real-time weather and earthquake data from BMKG, access economic statistics from BPS, get exchange rates from Bank Indonesia, and look up Indonesian laws and regulations. The skill handles authentication, CSRF tokens, session management, and IP blocking workarounds so you can focus on building.

Construction Estimate Analysis & Refinement
$35
Estimating4.0(34)
Construction Estimate Analysis & Refinement

You can systematically analyze construction estimates by breaking down components, validating labor and material pricing against market data, identifying embedded errors or outdated assumptions, and applying data-driven contingency allocation. Claude helps you produce risk-adjusted cost projections that are defensible to stakeholders and competitive in bid scenarios, reducing estimate variance and catching pricing gaps before client submission.

Bid Assembly & Analysis for Preconstruction Estimates
$40
Bid Assembly & Analysis for Preconstruction Estimates

You can rapidly process multiple subcontractor bid responses—from trade contractors, material suppliers, and specialty vendors—into a cohesive, auditable estimate structure. Claude extracts key bid components, identifies pricing inconsistencies against benchmarks or prior projects, flags scope gaps and exclusions, and organizes everything by CSI division for seamless estimate assembly. This eliminates manual spreadsheet comparison and reduces the risk of overlooked scope omissions or pricing anomalies when managing 15+ concurrent bids.

Tdd
$35
Tdd

You'll follow the strict TDD workflow: write a failing test that defines expected behavior, verify it fails, write minimal production code to pass the test, then refactor for quality. This approach ensures complete test coverage, catches bugs early, and produces well-designed code backed by comprehensive test suites. Claude guides you through each phase with examples and enforces TDD principles to prevent shortcuts.

Slash Commands
$35
Tooling4.5(50)
Slash Commands

You can create reusable slash commands that execute instantly in Claude Code conversations. Commands support bash execution, file references, arguments, and tool permissions. Use built-in commands like /cost, /review, /memory, and /clear, or define custom project and personal commands stored in .claude/commands/ or ~/.claude/commands/.

$30.00