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/te" ~/.claude/skills/cantara-lib-electronic-components-te && rm -rf "$T"
manifest:
.claude/skills/manufacturers/te/SKILL.mdsource content
TE Connectivity Manufacturer Handler Skill
Overview
TEHandler manages TE Connectivity components including terminal blocks, PCB headers, IDC connectors, and MATE-N-LOK connectors.
Supported Component Types
- CONNECTOR
- CONNECTOR_TE
MPN Patterns
Terminal Blocks
| Pattern | Description |
|---|---|
| 282xxx-x | Terminal blocks (5.08mm/5.00mm pitch) |
PCB Headers
| Pattern | Description |
|---|---|
| 5-xxx-x | PCB headers (2.54mm pitch) |
| 1-xxxxxx-x | Headers with prefix |
| 2-xxxxxx-x | Headers with prefix |
IDC Connectors
| Pattern | Description |
|---|---|
| 64xxxx-x | IDC connectors (2.54mm pitch) |
MATE-N-LOK
| Pattern | Description |
|---|---|
| 350xxx-x | MATE-N-LOK (4.14mm pitch) |
Rectangular Connectors
| Pattern | Description |
|---|---|
| 1-770966-x | Rectangular connector |
| 1-770967-x | Rectangular connector |
Series Properties
| Series | Family | Pitch | Notes |
|---|---|---|---|
| 282837 | Terminal Block | 5.08mm | |
| 282836 | Terminal Block | 5.00mm | |
| 5-826 | PCB Header | 2.54mm | |
| 5-103 | PCB Header | 2.54mm | |
| 640456 | IDC Connector | 2.54mm | |
| 640457 | IDC Connector | 2.54mm | |
| 350211 | MATE-N-LOK | 4.14mm |
Package Code Extraction
Returns last digit (variant code) from terminal blocks and headers.
Series Extraction
- For mapped series: Returns series prefix (e.g., "282836", "282837")
- For complex part numbers: Returns first digits and dash pattern (e.g., "1-770966")
Helper Methods
- Returns family name (Terminal Block, PCB Header, etc.)getFamily(mpn)
- Returns pitch in mmgetPitch(mpn)
- Returns THT, SMD, Press-fit, Wire-wrap, or ScrewgetMountingType(mpn)
- Returns false for terminal blocksisPolarized(mpn)
- Returns Male, Female, or Unspecified based on suffixgetGender(mpn)
- Returns Right Angle, Vertical, or StandardgetOrientation(mpn)
Replacement Logic
- Must be same series
- Must have same pin count
- Must have same pitch
- Different package variants may be compatible within same series
Test Patterns
When testing TEHandler:
- Use assertions for terminal blocks and headers (stable behavior)
- Use documentation tests for IDC and MATE-N-LOK
- Use assertions for
,extractPackageCode()
, null handlingextractSeries() - Instantiate directly:
new TEHandler()
Known Handler Issues
All issues fixed in PR #86