AgentSkillsCN

Jst

Jst

SKILL.md

JST Manufacturer Handler Skill

Overview

JSTHandler manages JST connectors including PH, XH, SH, GH, ZH, and EH series.

Supported Component Types

  • CONNECTOR
  • CONNECTOR_JST

MPN Patterns

PH Series (2.0mm pitch, 3A)

PatternDescription
PH-xHeader (male)
PHR-xHousing (female)
PHS-xSMT variant
PHD-xDouble row
PHL-xLocking variant

XH Series (2.5mm pitch, 3A)

PatternDescription
XH-xHeader (male)
XHR-xHousing (female)
XHS-xSMT variant
XHD-xDouble row
XHL-xLocking variant

SH Series (1.0mm pitch, 1A)

PatternDescription
SH-xHeader (male)
SHR-xHousing (female)
SHS-xSMT variant
SHD-xDouble row

GH Series (1.25mm pitch, 1A)

PatternDescription
GH-xHeader (male)
GHR-xHousing (female)
GHS-xSMT variant
GHD-xDouble row

Additional Series

SeriesPitchCurrent
ZH1.5mm1A
EH2.5mm3A

Package Code Extraction

Returns suffix after pin count (e.g., "PH-4-V" returns "V").

  • V = Vertical THT
  • R = Right Angle THT
  • VS/S = Vertical SMT
  • RS = Right Angle SMT

Series Extraction

Returns series prefix (e.g., "PH", "XH", "SH", "GH", "ZH", "EH").

Helper Methods

  • getPitch(mpn) - Returns pitch in mm
  • getMountingType(mpn) - Returns THT or SMT
  • getOrientation(mpn) - Returns Vertical or Right Angle
  • getRatedCurrent(mpn) - Returns rated current in Amps
  • isKeyed(mpn) - Always returns true (all JST connectors are keyed)
  • getGender(mpn) - Returns Male (header) or Female (housing with R suffix)
  • getColor(mpn) - Returns White, Black, Red, or Natural based on suffix

Replacement Logic

  • Must be from same series
  • Must have same pin count
  • Must have compatible mounting type (THT/THT or SMT/SMT)
  • Must have compatible orientation (Vertical/Vertical or Right Angle/Right Angle)

Test Patterns

When testing JSTHandler:

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

Known Handler Issues

All issues fixed in PR #88