SkillsLib.ai

Shapely Compute

Perform computational geometry operations with Shapely

4.5(50 reviews)
1,000+ downloads
Updated Nov 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

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.

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.

Xlsx
$45
Xlsx

This skill lets you handle spreadsheet files as primary inputs and outputs. You can open and read existing Excel or CSV files, edit them by adding columns, computing formulas, and applying formatting, clean up messy or malformed data into proper spreadsheets, create new spreadsheets from scratch or from other data sources, and convert between tabular file formats. Every output file is delivered error-free and production-ready.

Bid Assembly & Proposal Generation for Estimators
$30
Bid Assembly & Proposal Generation for Estimators

You can transform fragmented cost data, subcontractor quotes, and contingency calculations into cohesive, defensible bid packages that stakeholders understand and trust. This skill guides you through hierarchical cost aggregation, dynamic contingency modeling based on project risk, multi-tier markup application, and narrative integration that links scope assumptions to pricing—enabling you to develop competitive proposals with justified pricing strategies.

CPM Schedule Optimization & Risk Analysis
$35
CPM Schedule Optimization & Risk Analysis

You can paste CPM schedule exports from Primavera P6, Microsoft Project, or narrative descriptions into Claude to perform comprehensive constraint analysis and identify schedule optimization opportunities. The skill analyzes activity relationships, float distributions, resource constraints, and schedule vulnerability patterns to quantify which activities drive project completion, measure schedule buffer effectiveness, and develop quantified mitigation strategies that balance acceleration with cost and logistical feasibility.

Data Extraction From Documents
$35
Data Extraction From Documents

You can systematically extract key information from multiple documents and normalize it into consistent, schema-enforced formats. Claude identifies entities (people, organizations, dates, products), maps relationships between them, standardizes values (currencies, units, date formats), and flags data quality issues—all while maintaining accuracy across batches of similar or diverse document types.

Debug
$40
Full-Stack4.4(51)
Debug

You can systematically investigate application failures by examining logs, querying database state, and reviewing git history to identify root causes. This skill helps you understand the current state of your system without making changes, providing the contextual foundation needed to solve bugs efficiently during manual testing or implementation work.

Implement Task
$35
Full-Stack4.6(48)
Implement Task

You can deploy this agent to execute specific implementation tasks within a larger development plan. It operates independently with fresh context, follows test-driven development principles for every code change, and creates comprehensive handoff documentation that captures progress, decisions, and learnings for the next task executor. This ensures consistent code quality, prevents rework, and maintains continuity across distributed implementation efforts.

$30.00