.claude/skills/manufacturers/osram/SKILL.md
OSRAM Opto Semiconductors MPN encoding patterns, LED color/package decoding, and handler guidance. Use when working with OSRAM LEDs or OSRAMHandler.
npx skillsauth add Cantara/lib-electronic-components osramInstall 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.
OSRAM Opto Semiconductors (now part of ams OSRAM) is a leading manufacturer of:
OSRAM LEDs follow a structured naming convention:
L[COLOR][SERIES][VARIANT][PACKAGE]
│ │ │ │ │
│ │ │ │ └── Package code (G6, G4, T2, CH, MS, P2, CR)
│ │ │ └── Variant/brightness code
│ │ └── Series identifier (1 alphanumeric char)
│ └── Color code (S, W, A, Y, B, R, G)
└── "L" prefix for LED
| Code | Color | Example Series | |------|-------|----------------| | S | Standard/Red | LS (standard through-hole) | | W | White | LW (white SMD) | | A | Amber | LA (amber SMD) | | Y | Yellow | LY (yellow SMD) | | B | Blue | LB (blue SMD) | | R | Red | LR (red SMD) | | G | Green | LG (green SMD) |
[SERIES][VARIANT][PACKAGE]
│ │ │
│ │ └── Package code (SX, SSL, S5, P3)
│ └── Variant/specs
└── Series name: OSLON, DURIS, OSRAM
LRTB[VARIANT][SPEC] - RGB LEDs
LBCW[VARIANT][SPEC] - RGBW LEDs (RGB + White)
| Code | Package | Description | |------|---------|-------------| | G6 | PLCC-6 | 6-pad PLCC, RGB capable | | G4 | PLCC-4 | 4-pad PLCC, single color | | T2 | TOP-LED | Top-emitting SMD | | CH | Chip-LED | Compact chip package | | MS | Mini-SIDELED | Side-emitting miniature | | P2 | Power-TOPLED | Higher power top LED | | CR | Ceramic | Ceramic substrate LED |
| Code | Package | Description | |------|---------|-------------| | SX | Square | Standard OSLON Square | | SSL | Square Lite | Slim OSLON Square | | S5 | Square 5mm | 5mm OSLON Square | | P3 | PowerStar | High-power star package |
| Prefix | Package | Description | |--------|---------|-------------| | LS | THT | Through-hole 3mm/5mm LEDs |
From OSRAMHandler.getSupportedTypes():
| ComponentType | Description | Pattern |
|---------------|-------------|---------|
| LED | Base LED type | All LED patterns |
| LED_STANDARD_OSRAM | Through-hole LEDs | ^LS[A-Z][0-9].* |
| LED_SMD_OSRAM | Surface mount LEDs | ^L[WABYRG][A-Z][0-9].* |
| LED_HIGHPOWER_OSRAM | High-power LEDs | ^(OSLON\|OSRAM\|DURIS).* |
| LED_RGB_OSRAM | RGB/RGBW LEDs | ^(LRTB\|LBCW).* |
^LS[A-Z][0-9].*
LS (Standard LED prefix)LST5678 - Standard LED series T^LW[A-Z][0-9].* - White
^LA[A-Z][0-9].* - Amber
^LY[A-Z][0-9].* - Yellow
^LB[A-Z][0-9].* - Blue
^LR[A-Z][0-9].* - Red
^LG[A-Z][0-9].* - Green
^OSLON.* - OSLON series
^OSRAM.* - OSRAM branded high-power
^DURIS.* - DURIS general illumination
^LRTB.* - RGB LEDs
^LBCW.* - RGBW (RGB + White)
LST5678
│ │└── Series/variant number
│ └── Series letter
└── Standard LED prefix
Package: THT (through-hole)
Series: LST5 (extracted first 4 chars)
LWE6SG-G4
│ │││ │
│ │││ └── G4 = PLCC-4 package
│ ││└── Additional variant code
│ │└── Series number
│ └── E = Series letter
└── LW = White SMD LED
Color: White
Package: PLCC-4
Series: LWE6 (first 4 chars)
LR E6SP-G4
│ │ │ │
│ │ │ └── PLCC-4 package
│ │ └── Brightness code
│ └── Series identifier
└── LR = Red SMD LED
Color: Red
Package: PLCC-4
OSLON SSL 80
│ │ │
│ │ └── Power class
│ └── SSL = Square Lite package
└── OSLON series
Package: Square Lite
Series: OSLON
DURIS E5
│ │
│ └── Variant identifier
└── DURIS general illumination series
Package: (extracted from suffix)
Series: DURIS
LRTB G6SG
│ │
│ └── G6 = PLCC-6 package (needed for RGB)
└── LRTB = RGB LED
Package: PLCC-6
Series: LRTB
LBCW AYBZ
│ │
│ └── Variant/spec codes
└── LBCW = RGBW LED (RGB + White die)
Series: LBCW
The handler extracts series using these rules:
Standard/SMD LEDs (LS, LW, LA, LY, LB, LR, LG prefix):
LWE6SG-G4 -> LWE6High-Power LEDs (OSLON, DURIS):
OSLON SSL 80 -> OSLONDURIS E5 -> DURISRGB LEDs (LRTB, LBCW):
LRTB G6SG -> LRTBThe handler extracts package codes based on prefix:
LS prefix (Standard): Returns THT
SMD LEDs (LW, LA, LY, LB, LR, LG):
High-Power LEDs (OSLON, DURIS):
isOfficialReplacement() returns true when:
// Same color, same series = replacement
"LR E6SP-G4" vs "LR E6SP-G6" // Both red, same series -> true
"LW E6SG-G4" vs "LR E6SG-G4" // Different colors -> false
// High-power same family
"OSLON SSL 80" vs "OSLON SSL 150" // Both OSLON SSL -> true
| Series | Application | Features | |--------|-------------|----------| | LS | Indicators | Through-hole, low power | | LW/LR/LG/etc. | SMD indicators | Various packages | | OSLON | Automotive, general | High efficiency | | DURIS | General illumination | Mid-power | | TOPLED | SMD indicators | Top-emitting |
| OSRAM Series | Similar Products | |--------------|------------------| | OSLON | Cree XP, Lumileds LUXEON | | DURIS | Samsung LM series | | TOPLED | Vishay VLMX, Lite-On LTL |
HashSet in getSupportedTypes(): Uses mutable HashSet instead of Set.of()
Set.of() for immutabilityPackage extraction for high-power LEDs:
replaceAll("^[A-Z0-9]+", "") which may not correctly isolate suffixNo optocoupler patterns:
SFH.* for optocouplersColor temperature not extracted:
For SMD LEDs, the regex ^[A-Z0-9]+ is used to strip the prefix:
String suffix = mpn.replaceAll("^[A-Z0-9]+", "");
This removes ALL leading alphanumerics, leaving only the package suffix if separated by a hyphen or if it starts with a non-alphanumeric. For MPNs like LWE6SG-G4, the hyphen separates the suffix properly.
manufacturers/OSRAMHandler.javaLED, LED_STANDARD_OSRAM, LED_SMD_OSRAM, LED_HIGHPOWER_OSRAM, LED_RGB_OSRAMLEDSimilarityCalculator for LED comparison logicOSLON SSL 80, LR E6SP)data-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.