coordinate-propagation-signatures

Propagate transformed cx and cy coordinates through rendering helpers.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/mlinnen/mr-pumpkin --skill coordinate-propagation-signatures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coordinate-propagation-signatures
Source: https://github.com/mlinnen/mr-pumpkin/tree/main/.squad/skills/coordinate-propagation-signatures
Command: npx skills add https://github.com/mlinnen/mr-pumpkin --skill coordinate-propagation-signatures

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinate transforms at the rendering root can cause child rendering methods to render using raw screen dimensions instead of transformed coordinates, leading to misalignment across the scene.

Core Features & Use Cases

  • Defines consistent method signatures that accept transformed coordinates (cx, cy) and propagate them through all rendering helpers.
  • Prevents coordinate drift when root transforms (offsets, projection) are applied, keeping all elements aligned.
  • Improves maintainability and testability by centralizing coordinate handling and ensuring a single source of truth for positions.

Quick Start

Adopt the signature pattern by updating all render methods to accept cx and cy and pass transformed coordinates through all calculation steps.

Frequently Asked Questions about coordinate-propagation-signatures

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

FAQPage Schema
Why do child renderers misalign after applying a root projection or camera offset?

Coordinate drift occurs when child renderers use raw screen dimensions instead of transformed coordinates after a root transform. Propagating transformed coordinates through the pipeline ensures all elements stay aligned.

How do I propagate transformed coordinates through a graphics rendering pipeline?

Update all render methods to accept transformed coordinates (cx, cy) and pass them to all helper calculations. This prevents direct access to raw dimensions and maintains a single source of truth for positions.

What is coordinate drift in rendering and how does consistent method signatures prevent it?

Coordinate drift is the progressive misalignment of rendered elements. Consistent method signatures that accept and pass down transformed coordinates centralize handling, preventing drift when applying root transforms like projection offsets.

Can I apply this coordinate propagation pattern to camera position and projection offsets?

Yes, this pattern is applicable to root transforms such as projection offsets and camera positions. It requires updating render methods to accept cx, cy and passing them to all helpers to ensure consistent positioning.

How do I avoid direct access to raw dimensions when updating render methods?

Avoid raw dimensions by updating render methods to accept cx and cy as parameters. Pass these transformed coordinates through all calculation steps to ensure the rendering pipeline relies on transformed values.