kicad-jlcpcb-rotations
Skill0 starsChanged 7 months agoMITView on GitHub
Verify KiCad part orientations and save rotation corrections in Bouni KiCad JLCPCB Tools format. Use to create or update plugin correction CSVs or project correction rules for JLCPCB assembly. Does not rotate board footprints or approve assembly orders.
In this repository40 other files it gives its agents.
- ai-account-receiptsSkill
- architectSkill
- blast-radiusSkill
- bomSkill
- broSkill
- councilSkill
- create-verification-skillSkill
- datasheetsSkill
- digikeySkill
- element14Skill
- emcSkill
- excalidraw-skillSkill
- grill-meSkill
- handoffSkill
- howSkill
- jlcpcbSkill
- kicad-library-managmentSkill
- kicad-library-partSkill
- kicadSkill
- lcscSkill
- maintain-verification-skillSkill
- mermaid-skillSkill
- mouserSkill
- no-commentsSkill
- pcbwaySkill
- code-brainstormingSkill
- code-debuggingSkill
- code-explain-visuallySkill
- code-reviewingSkill
- code-simplifierSkill
- git-commitSkill
- git-worktreesSkill
- solidworksSkill
- spiceSkill
- teachSkill
- technical-writingSkill
- tscircuitSkill
- unslopSkill
- whySkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create verified export corrections for Bouni kicad-jlcpcb-tools.
- Distinctive: line 14
Read reference, UUID, value, footprint library item name, side, board angle, numbered pad geometry, and exact supplier number with existing …
- Distinctive: line 16
Prefer project corrections.
- Distinctive: line 20
Use the exact supplier part and reliable supplier orientation data.
- Distinctive: line 28
Leave uncertain parts unchanged and state the missing evidence.
- Distinctive: line 32
Create a review artifact before changing active corrections.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
KiCad JLCPCB rotation corrections
Create verified export corrections for Bouni kicad-jlcpcb-tools. Keep physical PCB layout unchanged. A correction is an angle added during CPL export, not a new footprint angle.
Establish the project and plugin
Find the intended PCB, effective LCSC assignments, output variant, and existing correction rules. Inspect the installed plugin version and active project or global scope. Read references/plugin-format.md before writing rules. The installed source is the authority when its behavior differs.
Read reference, UUID, value, footprint library item name, side, board angle, numbered pad geometry, and exact supplier number with existing KiCad tools or the KiCad Python API. Do not compare renumbered exports by reference alone.
Prefer project corrections. Do not change global rules, install or upgrade the plugin, or change part assignments unless requested. Some versions save schematic data on close. Do not open and close the plugin merely to read rules without checking this behavior.
Determine corrections
Use the exact supplier part and reliable supplier orientation data. Record the source and date. An EasyEDA footprint is useful evidence, but its orientation alone does not prove JLCPCB's assembly zero.
Compare numbered pads after translation to a common origin and conversion to one coordinate system. Account for units, axis direction, footprint rotation, and bottom-side reflection. Fit several matching numbered pads where available. Report residual error and tolerance. Reject incompatible pad maps, unintended mirrored fits, and ambiguous symmetry.
Pin 1 can be insufficient by itself. Check anode and cathode mappings, connector numbering, and asymmetric pads. Allow 180-degree equivalence only when the actual part permits it. Do not apply resistor symmetry to LEDs, diodes, polarized capacitors, or ICs.
Derive the delta in the installed plugin's export convention. Do not copy a raw geometry angle without checking its sign and side conversion. For a trusted target CPL angle, subtract the plugin's uncorrected export angle. Store the delta, not the target angle. Do not apply the bottom conversion twice.
Leave uncertain parts unchanged and state the missing evidence. Do not infer a package-wide correction from one sample or rotate parts to make a 3D image look correct.
Save plugin rules
Create a review artifact before changing active corrections. Include reference, UUID, LCSC number, footprint, side, PCB angle, current winning rule, proposed delta, predicted CPL angle, evidence, and resolved or unresolved status. Include every part affected by a proposed pattern.
For portable import, write UTF-8 CSV with the verified header. Use anchored, escaped reference patterns for project-specific parts. Use a footprint pattern only if all affected supplier parts and placements support the same delta. Match the text the plugin actually uses, often the library item name without its library prefix.
Where supported, use an exact LCSC rule through the manager for a part-specific correction. First check every use of that LCSC number for compatible footprint orientation. Exact LCSC rules are not included in CSV at the referenced revision. Do not put an LCSC number in the pattern column and expect supplier matching.
When asked to update active project rules, apply verified corrections after creating the review artifact, subject to any explicit review-before-edit boundary. When asked for an import file, deliver the CSV without importing it. Preserve unrelated rules and position offsets. Back up affected storage before a write. Prefer supported import or manager actions. Do not edit SQLite while the plugin has it open.
CSV import replaces the complete matching rule, including offsets. Check existing offsets before a rotation-only update. Repeat runs must replace the same rule, not accumulate deltas or duplicate rules. Stop on a rule conflict or storage failure and preserve the original data.
Validate and report
Validate the entire CSV with the installed plugin parser where available. Simulate its matching behavior across the project. Check exact LCSC precedence, reference and value matches, ties, and zero rules. Flag unexpected affected parts and rules hidden by higher-priority matches.
Regenerate CPL through the plugin and compare angles with predicted values. Check affected bottom-side parts separately. Confirm that references, coordinates, sides, population flags, assignments, and board geometry remain unchanged for a rotation-only update. Apply each correction once.
Report created or updated files, applied rules, unresolved parts, and completed checks. State when only format and calculations were verified. Check the JLCPCB placement preview and polarity before assembly approval. Creating correction rules does not approve an order.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

