Lib-electronic-components amphenol

Amphenol Manufacturer Handler Skill

install
source · Clone the upstream repo
git clone https://github.com/Cantara/lib-electronic-components
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Cantara/lib-electronic-components "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/manufacturers/amphenol" ~/.claude/skills/cantara-lib-electronic-components-amphenol && rm -rf "$T"
manifest: .claude/skills/manufacturers/amphenol/SKILL.md
source content

Amphenol Manufacturer Handler Skill

Overview

AmphenolHandler manages Amphenol components including Mini-PV, HD20, SFP+, USB 3.0, and various industrial connectors.

Supported Component Types

  • CONNECTOR
  • CONNECTOR_AMPHENOL

MPN Patterns

Mini-PV Series (2.0mm pitch)

PrefixDescription
504182-xxxxMini-PV THT
505478-xxxxMini-PV SMT

HD20 Series (2.0mm pitch)

PrefixDescription
10120843-xxxxHD20 THT
10120855-xxxxHD20 SMT

SFP/SFP+ Cages

PrefixDescription
RJHSE-538x-xxSFP+ cages

USB 3.0 Connectors

PrefixDescription
USB3-A-xx-xxxxUSB 3.0 Type A

Additional Series

PrefixDescription
10051922-xxxxMinitekPwr (3.0mm pitch)
10151980-xxxxBergStik headers (2.54mm pitch)
10129378-xxxxICC headers (2.54mm pitch)
RJMG2310-xxRJ45 connectors

Series Properties

SeriesFamilyPitchCurrent Rating
504182Mini-PV2.00mm3.0A
505478Mini-PV SMT2.00mm3.0A
10120843HD202.00mm3.0A
10120855HD20 SMT2.00mm3.0A
10051922MinitekPwr3.00mm5.0A
10151980BergStik2.54mm3.0A

Package Code Extraction

Extracted from last 4 digits (after dash):

  • First two digits typically indicate position/pin count

Series Extraction

Returns series prefix (e.g., "504182", "10120843", "RJHSE").

Helper Methods

  • getPitch(mpn)
    - Returns pitch in mm
  • getMountingType(mpn)
    - Returns THT, SMT, or Other
  • getOrientation(mpn)
    - Returns Right Angle or Vertical
  • getRatedCurrent(mpn)
    - Returns rated current in Amps
  • isShielded(mpn)
    - Returns true for SFP and USB connectors
  • getContactPlating(mpn)
    - Returns Gold, Tin, or Standard
  • hasRetentionMechanism(mpn)
    - Returns true for latched connectors
  • getApplicationType(mpn)
    - Returns SFP/SFP+, USB 3.0, RJ45, Power, or Signal

Replacement Logic

  • Must be same series with same pin count
  • Checks compatible mounting types (THT/SMT)

Test Patterns

When testing AmphenolHandler:

  1. Use documentation tests for
    matches()
    behavior
  2. Use assertions for
    extractPackageCode()
    ,
    extractSeries()
    , null handling
  3. Instantiate directly:
    new AmphenolHandler()

Known Handler Issues

All issues fixed in PR #86