.claude/skills/manufacturers/sgmicro/SKILL.md
SG Micro Corp MPN encoding patterns, suffix decoding, and handler guidance. Use when working with SG Micro analog ICs.
npx skillsauth add Cantara/lib-electronic-components sgmicroInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
SG Micro MPNs follow this general structure:
[SGM][SERIES][VARIANT][-VOLTAGE][PACKAGE][G][/TR]
| | | | | | |
| | | | | | +-- /TR = Tape and Reel
| | | | | +-- G = Green/RoHS
| | | | +-- Package code (YN5, XN, YS8, etc.)
| | | +-- Optional voltage (e.g., -3.3)
| | +-- Variant letter (A, B, etc.)
| +-- 4-5 digit series (2xxx, 4xxx, 58xxx, 6xxx, 8xxx)
+-- SGM = SG Micro prefix
SGM2019-3.3YN5G/TR
| | | | | |
| | | | | +-- /TR = Tape and reel
| | | | +-- G = RoHS/Green
| | | +-- YN5 = SOT-23-5 package
| | +-- 3.3 = 3.3V output voltage
| +-- 2019 = LDO regulator series
+-- SGM = SG Micro prefix
SGM8051XN5G/TR
| | | | | |
| | | | | +-- /TR = Tape and reel
| | | | +-- G = RoHS
| | | +-- XN5 = SC70-5 package
| | +-- 1 = Variant (single op-amp)
| +-- 805 = Op-amp series
+-- SGM = SG Micro prefix
SGM6603AYTD6G/TR
| | | | | |
| | | | | +-- /TR = Tape and reel
| | | | +-- G = RoHS
| | | +-- YTD6 = DFN-6 package
| | +-- A = Variant
| +-- 6603 = DC-DC converter series
+-- SGM = SG Micro prefix
| Code | Package | Pin Count | |------|---------|-----------| | YN | SOT-23 | 3 | | YN5 | SOT-23-5 | 5 | | YN6 | SOT-23-6 | 6 | | YN8 | SOT-23-8 | 8 |
| Code | Package | Pin Count | |------|---------|-----------| | XN | SC70 | 3 | | XN5 | SC70-5 | 5 | | XN6 | SC70-6 | 6 |
| Code | Package | Pin Count | |------|---------|-----------| | YS | SOIC-8 | 8 | | YS8 | SOIC-8 | 8 | | YS14 | SOIC-14 | 14 | | YS16 | SOIC-16 | 16 |
| Code | Package | Pin Count | |------|---------|-----------| | XS | MSOP-8 | 8 | | XS8 | MSOP-8 | 8 | | XS10 | MSOP-10 | 10 |
| Code | Package | Pin Count | |------|---------|-----------| | YTD | DFN | Various | | YTD6 | DFN-6 | 6 | | YTD8 | DFN-8 | 8 | | XTD | DFN | Various |
| Code | Package | Pin Count | |------|---------|-----------| | YQN | QFN | Various | | YQN16 | QFN-16 | 16 | | YQN20 | QFN-20 | 20 |
| Code | Package | Notes | |------|---------|-------| | UTD | WLCSP | Wafer-level CSP | | UFC | WLCSP | WLCSP variant |
| Series | Description | Features | |--------|-------------|----------| | SGM2019 | Ultra-low Iq LDO | 1.7uA quiescent | | SGM2036 | 300mA LDO | Low noise | | SGM2040 | 300mA LDO | Fast transient |
| Series | Description | Type | |--------|-------------|------| | SGM4567 | Analog switch | SPDT | | SGM4xxx | Mixed signal | Various functions |
| Series | Description | Resolution | |--------|-------------|------------| | SGM58031 | Precision ADC | 16-bit | | SGM58xxx | High-resolution ADCs | Various |
| Series | Description | Type | |--------|-------------|------| | SGM6132 | Synchronous buck | Step-down | | SGM6603 | Buck converter | High efficiency |
| Subseries | Type | Description | |-----------|------|-------------| | SGM80xx-SGM85xx | Op-amps | Various configurations | | SGM8051 | Single op-amp | Rail-to-rail | | SGM8262 | Dual op-amp | Low noise | | SGM8521 | Single op-amp | High precision | | SGM87xx-SGM89xx | Comparators | Fast/precision | | SGM8711 | Comparator | Open-drain output | | SGM8722 | Dual comparator | Push-pull output |
// SG Micro package codes start with Y, X, or U
// Pattern: SGM[0-9]{4,5}[-.]?[voltage]?[package-code]G?(/TR)?
// Extract 2-4 uppercase letters optionally followed by digits
// Remove G and /TR suffixes first
String baseMpn = upperMpn.replaceAll("G?(/TR)?$", "");
// Find package code pattern
Pattern packagePattern = Pattern.compile(".*?([XYUQ][A-Z]*[0-9]*)(?:G?(/TR)?)?$");
// SGM58xxx is special (5 digits)
// Other series are 4 digits: SGM2xxx, SGM4xxx, SGM6xxx, SGM8xxx
if (upperMpn.startsWith("SGM58") && upperMpn.length() >= 8) {
return "SGM58"; // High-precision ADC series
}
if (upperMpn.matches("^SGM[0-9][0-9]{3}.*")) {
return upperMpn.substring(0, 4); // SGM2, SGM4, SGM6, SGM8
}
// Op-amps: SGM80xx through SGM85xx
private boolean isOpAmp(String mpn) {
return mpn.matches("^SGM8[0-5][0-9]{2}[A-Z0-9./-]*$");
}
// Comparators: SGM87xx and higher
private boolean isComparator(String mpn) {
return mpn.matches("^SGM8[7-9][0-9]{2}[A-Z0-9./-]*$");
}
// Voltage can appear as -3.3 or -3.0 in the MPN
// SGM2019-3.3YN5G/TR -> 3.3V output
// The handler allows dots in MPN patterns: [A-Z0-9./-]*
public boolean isLDOPart(String mpn) {
return mpn.matches("^SGM2[0-9]{3}[A-Z0-9./-]*$");
}
public boolean isDCDCPart(String mpn) {
return mpn.matches("^SGM6[0-9]{3}[A-Z0-9./-]*$");
}
public boolean isOpAmpPart(String mpn) {
return mpn.matches("^SGM8[0-5][0-9]{2}[A-Z0-9./-]*$");
}
public boolean isComparatorPart(String mpn) {
return mpn.matches("^SGM8[7-9][0-9]{2}[A-Z0-9./-]*$");
}
manufacturers/SGMicroHandler.javaIC, VOLTAGE_REGULATOR, OPAMPhandlers/SGMicroHandlerTest.javadata-ai
Cost-effective task delegation strategy using Haiku model for straightforward work. Use when planning how to approach simple, pattern-following tasks to minimize costs.
tools
Use when working with component similarity calculations - comparing MPNs, finding equivalent parts, implementing new similarity calculators, or understanding how component matching works.
testing
Use when working with transistor similarity calculations - comparing BJT MPNs, understanding NPN/PNP polarity matching, equivalent groups like 2N2222/PN2222, or transistor-specific similarity logic.
testing
Use when working with sensor similarity calculations - comparing temperature/accelerometer/humidity sensor MPNs, understanding sensor families, equivalent parts, or sensor-specific similarity logic.