geo_primitives 実装パターン

Define standardized implementation patterns for geometric primitives in Rust.

1|Updated Sep 12, 2025
One-click install
npx skills add https://github.com/RedRing2020/RedRing --skill geo-primitives
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geo_primitives 実装パターン
Source: https://github.com/RedRing2020/RedRing/tree/main/.github/skills/implementation
Command: npx skills add https://github.com/RedRing2020/RedRing --skill geo-primitives

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill defines a standardized pattern and conventions for implementing geometric primitives within the geo_primitives library, ensuring consistency and maintainability.

Core Features & Use Cases

  • File Structure Guidelines: Specifies the expected file organization for each geometric primitive (e.g., shape_3d.rs, shape_3d_foundation.rs).
  • Responsibility Separation: Clearly defines the role of each file in the implementation process.
  • Testing Rules: Outlines best practices for test code placement and classification.
  • Error Handling: Details the use of TransformError and type safety patterns.
  • Use Case: New developers can quickly understand how to add a new geometric shape (like a Sphere or Torus) to the library by following these established patterns.

Quick Start

Follow the file structure and responsibility separation principles outlined in this document when implementing new geometric primitives.

Frequently Asked Questions about geo_primitives 実装パターン

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure files when implementing geometric primitives in Rust?

Geometric primitives in Rust should follow a standardized file structure, separating responsibilities into distinct modules like shape_3d.rs and shape_3d_foundation.rs. This ensures consistent and maintainable geometric library development.

What is the best way to handle errors for geometric transformations in Rust?

Handling errors for geometric transformations in Rust involves using TransformError and type safety patterns. This enforces clear error handling and prevents invalid geometric operations during shape manipulations.

How do I add a new geometric shape to a Rust geometry library?

Adding a new geometric shape to a Rust geometry library requires following established file structure guidelines and responsibility separation principles. Developers can quickly implement shapes like a Sphere or Torus using these standardized patterns.

Where should I place test code for geometric primitives in Rust?

Test code for geometric primitives in Rust should follow outlined testing rules and best practices for placement and classification. This ensures consistent testing standards across the geometry library.

Why do I need standardized conventions for geometric primitive implementation?

Standardized conventions for geometric primitive implementation solve the problem of inconsistency and poor maintainability in geometry libraries. They define clear responsibility separation and file organization for sustainable development.