fix-rotation

Analyze CPL rotations against gerber pad data to correct misaligned JLCPCB exports.

2|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/pjcau/esp32-emu-turbo --skill fix-rotation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-rotation
Source: https://github.com/pjcau/esp32-emu-turbo/tree/main/.claude/skills/fix-rotation
Command: npx skills add https://github.com/pjcau/esp32-emu-turbo --skill fix-rotation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Misaligned CPL rotations on JLCPCB footprints lead to pad mismatches and assembly failures. This skill provides a systematic method to analyze and fix rotation alignment using component reference designators and footprint data.

Core Features & Use Cases

  • Rotation analysis: evaluates 0°, 90°, 180°, and 270° rotations against footprint pads to identify alignment errors.
  • Validation workflow: cross-checks BOM, CPL, footprints, and placement metadata to determine the correct CPL rotation and necessary updates.
  • Use Case: when a bottom-side CPL is rotated incorrectly in a footprint, use this to compute the proper orientation and generate updated CPL entries for the export pipeline.

Quick Start

Place a component reference such as U5 and run the rotation validation to obtain a corrected CPL rotation recommendation.

Frequently Asked Questions about fix-rotation

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

FAQPage Schema
How do I fix misaligned CPL rotations in JLCPCB exports?

Fix misaligned CPL rotations by mathematically analyzing footprint pad positions against gerber data. This validates 0, 90, 180, and 270 degree orientations to generate corrected cpl.csv entries for JLCPCB assembly.

Why does my bottom-side CPL have incorrect component orientation during PCB assembly?

Incorrect bottom-side CPL orientation occurs when footprint rotations mismatch actual pad layouts. Cross-checking BOM, placement scripts, and gerber pad data identifies the correct rotation to resolve the misalignment.

What is the best way to validate CPL rotation against PCB footprint pads?

Validating CPL rotation involves comparing component reference designators against footprint definitions. Evaluating 0, 90, 180, and 270 degree rotations ensures the CPL orientation matches gerber pad data before export.

How do I correct a CPL file when a footprint rotation causes pad mismatches?

Correct CPL file mismatches by inputting a component reference like U5 and running a rotation validation. This analyzes mathematical pad alignment and outputs updated CPL entries with the proper orientation.

Does this rotation alignment method support arbitrary angles or only 90 degree increments?

The rotation alignment method specifically validates 0, 90, 180, and 270 degree rotations. It determines correct CPL orientation by analyzing footprint pads at these standard increments against gerber data.

Can I use BOM and placement scripts to verify JLCPCB CPL alignment?

Yes, BOM and placement scripts are leveraged alongside footprint definitions to verify JLCPCB CPL alignment. This cross-checking workflow determines the correct rotation and generates validated placement data.