.claude/skills/similarity-regulator/SKILL.md
Use when working with voltage regulator similarity calculations - comparing 78xx/79xx fixed regulators, LM317/LM337 adjustable regulators, or voltage regulator-specific similarity logic.
npx skillsauth add Cantara/lib-electronic-components similarity-regulatorInstall 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 VoltageRegulatorSimilarityCalculator in the lib-electronic-components library.
For metadata-driven similarity architecture, see /similarity-metadata:
The VoltageRegulatorSimilarityCalculator compares voltage regulators based on:
ComponentType.VOLTAGE_REGULATOR
// Any type starting with "VOLTAGE_REGULATOR"
Returns false for null type.
HIGH_SIMILARITY = 0.9; // Same voltage/compatible adjustable
MEDIUM_SIMILARITY = 0.7; // Related but different specs
LOW_SIMILARITY = 0.3; // Different voltage or polarity
| Part | Output Voltage | |------|----------------| | 7805 | +5V | | 7809 | +9V | | 7812 | +12V | | 7815 | +15V | | 7824 | +24V |
| Part | Output Voltage | |------|----------------| | 7905 | -5V | | 7912 | -12V | | 7915 | -15V | | 7924 | -24V |
// Same voltage, different manufacturer = HIGH
calculator.calculateSimilarity("LM7805", "MC7805", registry);
// Returns 0.9
// Different voltage = LOW
calculator.calculateSimilarity("LM7805", "LM7812", registry);
// Returns 0.3
// Positive vs Negative = LOW
calculator.calculateSimilarity("LM7805", "LM7905", registry);
// Returns 0.3
| Part | Current | Equivalent | |------|---------|------------| | LM317 | 1.5A | LM317T, LM317K, LM317H | | LM338 | 5A | Compatible with LM317 | | LM350 | 3A | Compatible with LM317 |
| Part | Current | Note | |------|---------|------| | LM337 | 1.5A | Negative equivalent of LM317 |
// Same adjustable regulator, different package = HIGH
calculator.calculateSimilarity("LM317T", "LM317K", registry);
// Returns 0.9
// Compatible positive adjustable regulators = HIGH
calculator.calculateSimilarity("LM317", "LM350", registry);
// Returns 0.9
// Positive vs Negative adjustable = LOW
calculator.calculateSimilarity("LM317", "LM337", registry);
// Returns 0.3
Common package suffixes: | Code | Package | |------|---------| | T | TO-220 | | CT | TO-220 (different pinout) | | K | TO-3 | | KC | TO-3 | | KV | TO-3 | | H | TO-39 | | S | SOT-223 | | MP | SOT-223 | | DT | TO-252 |
// Same regulator, different packages = HIGH
calculator.calculateSimilarity("LM7805CT", "LM7805T", registry);
// Returns 0.9
| Prefix | Manufacturer | |--------|--------------| | LM | National/TI | | MC | Motorola/ON Semi | | UA | Fairchild | | L78 | ST | | KA78 | Fairchild |
// Same voltage, different manufacturer
calculator.calculateSimilarity("LM7805", "MC7805", registry);
// Returns 0.9
// Same adjustable, different package
calculator.calculateSimilarity("LM317T", "LM317K", registry);
// Returns 0.9
// Compatible adjustable family
calculator.calculateSimilarity("LM317", "LM338", registry);
// Returns 0.9
// Different voltage
calculator.calculateSimilarity("LM7805", "LM7812", registry);
// Returns 0.3
// Positive vs negative
calculator.calculateSimilarity("LM317", "LM337", registry);
// Returns 0.3
// Non-regulator parts
calculator.calculateSimilarity("LM358", "LM324", registry);
// Returns 0.0
xx in 78xx/79xx indicates voltage (05=5V, 12=12V)7[89](\d{2}) extracts the voltage codedata-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.