원클릭으로
cosmo
Cosmo Electronics MPN encoding patterns, suffix decoding, and handler guidance. Use when working with Cosmo optocouplers or CosmoHandler.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Cosmo Electronics MPN encoding patterns, suffix decoding, and handler guidance. Use when working with Cosmo optocouplers or CosmoHandler.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | cosmo |
| description | Cosmo Electronics MPN encoding patterns, suffix decoding, and handler guidance. Use when working with Cosmo optocouplers or CosmoHandler. |
Cosmo Electronics is a Taiwanese manufacturer specializing in optocouplers and photo interrupters. Their product lines use the "KP" prefix family.
Cosmo MPNs follow these general patterns:
KP[SERIES][VARIANT][-SUFFIX]
| | |
| | +-- Optional: -1=DIP-4, C/S=SMD
| +-- Variant letter (optional)
+-- 4-digit series (e.g., 1010, 2010, 4010)
KPC[SERIES][CTR-GRADE][PKG-IND][-SUFFIX]
| | | |
| | | +-- Optional suffix
| | +-- Package indicator (S/G=SMD, T=SOP)
| +-- CTR Grade: A/B/C/D
+-- 3-digit series (e.g., 817, 357)
KP1010-1
| | |
| | +-- -1 = DIP-4 package
| +-- 1010 = Single channel phototransistor
+-- KP = Phototransistor optocoupler series
KPC817C-1
| | | |
| | | +-- -1 = DIP-4 package
| | +-- C = CTR grade (200-400%)
| +-- 817 = General purpose high isolation
+-- KPC = High isolation optocoupler
KPH121S
| | |
| | +-- S = SMD package
| +-- 121 = High speed single channel
+-- KPH = High speed optocoupler
| Series | Description | Channels |
|---|---|---|
| KP1010 | Single channel phototransistor | 1 |
| KP1020 | Single channel (variant) | 1 |
| KP2010 | Dual channel phototransistor | 2 |
| KP4010 | Quad channel phototransistor | 4 |
| Series | Description | Output |
|---|---|---|
| KPC817 | General purpose, high isolation | Phototransistor |
| KPC357 | Darlington output | Darlington |
Note: KPC817 is functionally equivalent to Sharp PC817.
| Series | Description | Channels |
|---|---|---|
| KPH121 | High speed single channel | 1 |
| KPH141 | High speed dual channel | 2 |
| Series | Description | Package |
|---|---|---|
| KPS1010 | SMD version of KP1010 | SMD |
| KPS2010 | SMD version of KP2010 | SMD |
| Series | Description | Type |
|---|---|---|
| KPTR1200 | Reflective photo interrupter | Sensor |
| KPTR1201 | Reflective photo interrupter | Sensor |
For KPC817 series:
| Grade | CTR Range | Application |
|---|---|---|
| A | 80-160% | Highest gain |
| B | 130-260% | High gain |
| C | 200-400% | Medium gain |
| D | 300-600% | Wide range |
| Suffix | Package | Notes |
|---|---|---|
| -1 | DIP-4 | Standard 4-pin DIP |
| C | SMD | Compact SMD variant |
| S | SMD | Surface mount |
| G | SMD | SMD variant |
| T | SOP | Thin SOP variant |
| -F | Lead-free | RoHS compliant |
| -TR | Tape and reel | Packaging option |
| Prefix | Default Package |
|---|---|
| KP | DIP-4 |
| KPC | DIP-4 |
| KPH | DIP |
| KPS | SMD (always) |
| KPTR | SMD (always) |
| Series Pattern | Channels |
|---|---|
| 1010, 1020, 817, 357, 121, 1200, 1201 | 1 |
| 2010, 141 | 2 |
| 4010 | 4 |
// KP series: 4-digit series number
"^KP\\d{4}.*" // KP1010, KP2010, KP4010
// KPC series: 3-digit series number
"^KPC\\d{3}.*" // KPC817, KPC357
// KPH series: 3-digit series number
"^KPH\\d{3}.*" // KPH121, KPH141
// KPS series: 4-digit series number
"^KPS\\d{4}.*" // KPS1010, KPS2010
// KPTR series: 4-digit series number
"^KPTR\\d{4}.*" // KPTR1200, KPTR1201
// Returns prefix + series number
"KP1010-1" -> "KP1010"
"KPC817C" -> "KPC817"
"KPH121S" -> "KPH121"
"KPS2010C" -> "KPS2010"
"KPTR1200" -> "KPTR1200"
// Check for -1 suffix first
"KPC817C-1" -> "DIP-4"
// KPS series is always SMD
"KPS1010" -> "SMD"
// KPTR series is always SMD
"KPTR1200" -> "SMD"
// Check package indicators for KPC
"KPC817CS" -> "SMD" // S = SMD
"KPC817CT" -> "SOP" // T = SOP thin
// Check variant letter for KP/KPH
"KP1010C" -> "SMD"
"KPH121S" -> "SMD"
// Default packages
"KP1010" -> "DIP-4"
"KPC817C" -> "DIP-4"
"KPH121" -> "DIP"
// KPC series: letter after 3-digit number
"KPC817A" -> "A"
"KPC817B-1" -> "B"
"KPC817CS" -> "C" // C is CTR, S is package
The handler maps to these ComponentTypes:
| Prefix | ComponentTypes |
|---|---|
| KP, KPC, KPH, KPS | IC, OPTOCOUPLER_TOSHIBA |
| KPTR | IC, SENSOR |
Note: Uses OPTOCOUPLER_TOSHIBA as the generic optocoupler type (historical naming).
| Cosmo | Equivalent | Notes |
|---|---|---|
| KPC817 | Sharp PC817 | Pin-compatible |
| KPC817 | Toshiba TLP817 | Pin-compatible |
| KPC357 | Sharp PC357 | Darlington output |
manufacturers/CosmoHandler.javaComponentType.IC, ComponentType.OPTOCOUPLER_TOSHIBA, ComponentType.SENSORUse when refactoring, cleaning up, or enhancing the lib-electronic-components codebase. Provides guidance on architecture patterns, known issues, duplication hotspots, and recommended improvements.
Base skill for working with electronic components in this library. Use when adding new component types, manufacturer handlers, or working with MPN (Manufacturer Part Number) operations, BOM entries, or component classification.
Use this skill BEFORE creating a PR to ensure all documentation, skills, and learnings are updated. Critical for preserving institutional knowledge and preventing documentation drift.
Use when working with component similarity calculations - comparing MPNs, finding equivalent parts, implementing new similarity calculators, or understanding how component matching works.
Use when working with capacitor similarity calculations - comparing ceramic/electrolytic/film capacitor MPNs, understanding value/voltage/dielectric matching, or capacitor-specific similarity logic.
Use when working with connector similarity calculations - comparing connector MPNs, understanding pin count/pitch/family matching, or connector-specific similarity logic.