.claude/skills/resistor/SKILL.md
Use when working with resistor components - adding resistor patterns, parsing resistor MPNs, extracting resistance values, tolerance, or package codes from resistor part numbers.
npx skillsauth add Cantara/lib-electronic-components resistorInstall 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.
Guidance for working with resistor components in the lib-electronic-components library.
| Manufacturer | Handler | MPN Patterns | Example |
|--------------|---------|--------------|---------|
| Vishay | VishayHandler | CRCW####..., RCG#..., WSL#... | CRCW060310K0FKEA |
| Yageo | YageoHandler | RC####..., RT####..., RL####... | RC0603FR-0710KL |
| Panasonic | PanasonicHandler | ERJ..., ERJP..., ERJG... | ERJ-3EKF1001V |
| Bourns | BournsHandler | CR..., CRM..., CRH... | CR0603-FX-1001ELF |
// Base type
ComponentType.RESISTOR
// Manufacturer-specific types
ComponentType.RESISTOR_CHIP_VISHAY
ComponentType.RESISTOR_THT_VISHAY
ComponentType.RESISTOR_CHIP_YAGEO
ComponentType.RESISTOR_THT_YAGEO
ComponentType.RESISTOR_CHIP_PANASONIC
ComponentType.RESISTOR_CHIP_BOURNS
CRCW 0603 10K0 F K EA
│ │ │ │ │ │
│ │ │ │ │ └── Packaging (EA=Tape & Reel)
│ │ │ │ └──── Termination (K=Standard)
│ │ │ └────── Tolerance (F=1%, J=5%)
│ │ └─────────── Value (10K0 = 10kΩ)
│ └──────────────── Size (0603)
└───────────────────── Series
RC 0603 FR -07 10K L
│ │ │ │ │ │
│ │ │ │ │ └── Packaging (L=7" Reel)
│ │ │ │ └────── Value (10K = 10kΩ)
│ │ │ └───────── TCR Code (07=±100ppm)
│ │ └───────────── Tolerance (F=1%, J=5%)
│ └────────────────── Size (0603)
└───────────────────── Series (RC=Thick Film)
// Returns "0603" from "CRCW060310K0FKEA"
handler.extractPackageCode("CRCW060310K0FKEA");
// Returns "0805" from "RC0805JR-0710KL"
handler.extractPackageCode("RC0805JR-0710KL");
// Returns "CRCW" from Vishay
handler.extractSeries("CRCW060310K0FKEA");
// Returns "RC0603" from Yageo (includes size)
handler.extractSeries("RC0603FR-0710KL");
initializePatterns():registry.addPattern(ComponentType.RESISTOR, "^NEWPFX[0-9]{4}.*");
registry.addPattern(ComponentType.RESISTOR_CHIP_MANUFACTURER, "^NEWPFX[0-9]{4}.*");
getSupportedTypes():types.add(ComponentType.RESISTOR);
types.add(ComponentType.RESISTOR_CHIP_MANUFACTURER);
matches() for direct pattern matching (faster than regex fallback)ResistorSimilarityCalculator compares:
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.