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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/geometry-primitive-library/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How geometry-primitive-library Compares
| Feature / Agent | geometry-primitive-library | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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
React Testing Library patterns, queries, user events, and accessibility testing.
Concurrency Primitives
Expert skill for implementing language-level concurrency support including threads, channels, and synchronization
warp-primitives
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
Comprehensive special functions evaluation and manipulation
pde-solver-library
Numerical methods for partial differential equations
ode-solver-library
Numerical methods for ordinary differential equations
graph-algorithm-library
Comprehensive graph algorithms implementation
ssa-transformation-library
SSA-form transformations and optimizations for compiler development
consensus-protocol-library
Reference implementations and specifications of consensus protocols
abstract-domain-library
Library of abstract domains for static analysis and abstract interpretation
material-model-library
Biomaterial constitutive model library skill providing validated material properties for biological tissues and implant materials
crypto-primitives
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.