python-algorithm-porter

Port Python algorithms using numpy, pandas, and rtree to zero-allocation C# equivalents.

7|1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/sparkeh9/DoclingDotNet --skill python-algorithm-porter
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-algorithm-porter
Source: https://github.com/sparkeh9/DoclingDotNet/tree/main/.agent/skills/python-algorithm-porter
Command: npx skills add https://github.com/sparkeh9/DoclingDotNet --skill python-algorithm-porter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Port Python algorithms (numpy, pandas, rtree, dict manipulation) to high-performance, zero-allocation C# equivalents.

Core Features & Use Cases

  • Design and implement a systematic porting workflow that preserves semantics while boosting performance.
  • Align data structures and memory layouts to .NET idioms (Span<T>, value types) to minimize allocations.
  • Apply careful mapping of Python dependencies (numpy, pandas, rtree) to performant C# alternatives and validate results.

Quick Start

Port a sample Python function to C# using the defined workflow and verify outputs match the original.

Frequently Asked Questions about python-algorithm-porter

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

FAQPage Schema
How do I port Python algorithms to zero-allocation C#?▼

Porting Python algorithms to zero-allocation C# requires mapping dependencies like numpy and pandas to performant C# alternatives. You align memory layouts using .NET value types and Span<T> to preserve semantics while achieving high-performance memory efficiency.

What is the best way to translate numpy and pandas operations to C#?▼

Translating numpy and pandas operations to C# involves mapping Python dependencies to performant .NET alternatives. You validate the C# outputs against the original Python code to ensure semantic equivalence throughout the migration.

Can I achieve zero-allocation pipelines when migrating Python code to .NET?▼

You can achieve zero-allocation pipelines when migrating Python code to .NET by aligning data structures with .NET idioms. Utilizing Span<T> and value types minimizes memory allocations while preserving the original algorithmic behavior.

Does porting Python rtree and dict manipulation to C# improve performance?▼

Porting Python rtree and dict manipulation to C# improves performance by replacing dynamic allocations with zero-allocation value types. This mapping optimizes memory efficiency while maintaining the original algorithmic semantics.

When do I need to map Python data structures to .NET value types?▼

You need to map Python data structures to .NET value types during code migration projects where memory efficiency is critical. This alignment ensures zero-allocation pipelines when porting algorithms from Python to .NET.