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/hirose" ~/.claude/skills/cantara-lib-electronic-components-hirose && rm -rf "$T"
manifest:
.claude/skills/manufacturers/hirose/SKILL.mdsource content
Hirose Manufacturer Handler Skill
Overview
HiroseHandler manages Hirose connectors including DF13, DF14, FH12, BM, DF52, DF63, FH19, FH28, and GT17 series.
Supported Component Types
- CONNECTOR
- CONNECTOR_HIROSE
MPN Patterns
DF13 Series (1.25mm pitch, 1A)
| Pattern | Description |
|---|---|
| DF13-xP-xxx | Through-hole vertical |
| DF13-xR-xxx | Through-hole right angle |
| DF13-xS-xxx | Surface mount |
DF14 Series (1.25mm pitch, 2A, Automotive)
| Pattern | Description |
|---|---|
| DF14-xP-xxx | Through-hole vertical |
| DF14-xR-xxx | Through-hole right angle |
| DF14-xS-xxx | Surface mount |
FH12 Series (0.5mm pitch, FFC/FPC)
| Pattern | Description |
|---|---|
| FH12-xS-xxx | Socket (bottom contact) |
| FH12-xP-xxx | Socket (top contact) |
BM Series (USB Connectors)
| Pattern | Description |
|---|---|
| BMxx-xxx | USB Type connectors |
Additional Series
| Series | Pitch | Application |
|---|---|---|
| DF52 | 0.8mm | Board-to-board |
| DF63 | 0.5mm | Board-to-FPC |
| FH19 | 0.4mm | FFC/FPC |
| FH28 | 0.4mm | Dual row FFC/FPC |
| GT17 | 0.5mm | Board-to-board |
Package Code Extraction
Returns suffix after last dash (e.g., "DF13-5P-1.25DS" returns "1.25DS").
Series Extraction
Returns series prefix (e.g., "DF13", "FH12", "BM").
Helper Methods
- Returns pitch in mmgetPitch(mpn)
- Returns SMT, THT, or OthergetMountingType(mpn)
- Returns Right Angle or VerticalgetOrientation(mpn)
- Returns rated current in AmpsgetRatedCurrent(mpn)
- Returns true if DS/DSS in package codeisShielded(mpn)
- Returns Gold, Tin, or StandardgetContactPlating(mpn)
- Returns true for DF seriesisLockingType(mpn)
- Returns FFC/FPC, USB, Board-to-Board, Automotive, or General PurposegetApplicationType(mpn)
Replacement Logic
- Must be from same series
- Must have same pin count
- Must have compatible mounting type
Test Patterns
When testing HiroseHandler:
- Use documentation tests for
behaviormatches() - Use assertions for
,extractPackageCode()
, null handlingextractSeries() - Instantiate directly:
new HiroseHandler()
Known Handler Issues
All issues fixed in PR #88