geometry-primitive-library

Provide robust computational geometry primitives

509 stars

Best use case

geometry-primitive-library is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Provide robust computational geometry primitives

Teams using geometry-primitive-library should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/geometry-primitive-library/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/algorithms-optimization/skills/geometry-primitive-library/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/geometry-primitive-library/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How geometry-primitive-library Compares

Feature / Agentgeometry-primitive-libraryStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Provide robust computational geometry primitives

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Geometry Primitive Library Skill

## Purpose

Provide robust implementations of computational geometry primitives with proper handling of edge cases and numerical precision.

## Capabilities

- Point, line, segment, polygon classes
- Cross product, dot product operations
- CCW/CW orientation tests
- Area calculations
- Intersection tests
- Distance calculations

## Target Processes

- computational-geometry

## Geometric Primitives

### Point Operations
- Point addition, subtraction
- Scalar multiplication
- Dot product
- Cross product
- Distance calculation

### Line/Segment Operations
- Line-line intersection
- Segment-segment intersection
- Point-line distance
- Point-segment distance
- Parallel/perpendicular tests

### Polygon Operations
- Area calculation (signed and unsigned)
- Point in polygon test
- Polygon centroid
- Convexity test

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "primitive": {
      "type": "string",
      "enum": ["point", "line", "segment", "polygon", "circle"]
    },
    "operations": { "type": "array" },
    "language": {
      "type": "string",
      "enum": ["cpp", "python", "java"]
    },
    "useInteger": { "type": "boolean", "default": false },
    "epsilon": { "type": "number" }
  },
  "required": ["primitive"]
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "code": { "type": "string" },
    "operations": { "type": "array" },
    "precisionNotes": { "type": "string" }
  },
  "required": ["success", "code"]
}
```

Related Skills

react-testing-library

509
from a5c-ai/babysitter

React Testing Library patterns, queries, user events, and accessibility testing.

Concurrency Primitives

509
from a5c-ai/babysitter

Expert skill for implementing language-level concurrency support including threads, channels, and synchronization

warp-primitives

509
from a5c-ai/babysitter

Warp-level programming and SIMD optimization. Use warp shuffle instructions, voting functions, cooperative groups, warp-synchronous algorithms, and minimize warp divergence for optimal GPU performance.

special-functions-library

509
from a5c-ai/babysitter

Comprehensive special functions evaluation and manipulation

pde-solver-library

509
from a5c-ai/babysitter

Numerical methods for partial differential equations

ode-solver-library

509
from a5c-ai/babysitter

Numerical methods for ordinary differential equations

graph-algorithm-library

509
from a5c-ai/babysitter

Comprehensive graph algorithms implementation

ssa-transformation-library

509
from a5c-ai/babysitter

SSA-form transformations and optimizations for compiler development

consensus-protocol-library

509
from a5c-ai/babysitter

Reference implementations and specifications of consensus protocols

abstract-domain-library

509
from a5c-ai/babysitter

Library of abstract domains for static analysis and abstract interpretation

material-model-library

509
from a5c-ai/babysitter

Biomaterial constitutive model library skill providing validated material properties for biological tissues and implant materials

crypto-primitives

509
from a5c-ai/babysitter

Implementation and secure usage of cryptographic primitives including ECDSA, BLS, Schnorr signatures, key derivation, secret sharing, and constant-time operations. Provides guidance for secure cryptographic implementations in blockchain applications.