Manufacturer Detection from MPN

Identify electronic component manufacturers from Manufacturer Part Numbers using regular expressions.

3|Updated Jan 31, 2025
One-click install
npx skills add https://github.com/Cantara/lib-electronic-components --skill manufacturer-detection-from-mpn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Manufacturer Detection from MPN
Source: https://github.com/Cantara/lib-electronic-components/tree/main/.claude/skills/manufacturer-detection-from-mpn
Command: npx skills add https://github.com/Cantara/lib-electronic-components --skill manufacturer-detection-from-mpn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the identification of electronic component manufacturers directly from their Manufacturer Part Numbers (MPNs), streamlining inventory management and component selection processes.

Core Features & Use Cases

  • MPN-based Manufacturer Identification: Accurately detects the manufacturer based on patterns within the MPN.
  • Regex Pattern Management: Provides insights into the design and ordering of detection patterns for clarity and debugging.
  • Handler Lazy Initialization: Demonstrates an efficient pattern for creating manufacturer-specific handler objects only when needed.
  • Use Case: When processing a Bill of Materials (BOM), this skill can automatically tag each component with its correct manufacturer, preventing errors and speeding up analysis.

Quick Start

Use the manufacturer detection skill to identify the manufacturer for the MPN 'LM358'.

Frequently Asked Questions about Manufacturer Detection from MPN

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify an electronic component manufacturer from an MPN?

You can identify an electronic component manufacturer from an MPN by using regular expressions and an ordered enum structure to detect specific patterns within the part number. This process handles case insensitivity and special character normalization for accurate detection across a wide range of manufacturers.

How do I automatically tag components with manufacturers in a Bill of Materials?

To automatically tag components with manufacturers in a Bill of Materials, you can process each MPN through a manufacturer detection routine. This identifies the correct manufacturer based on regex patterns within the MPN, preventing errors and speeding up BOM analysis.

How does regex pattern matching work for detecting electronic part numbers?

Regex pattern matching for detecting electronic part numbers works by checking an MPN against a predefined set of regular expressions in a specific ordered enum structure. It normalizes special characters and ignores case to ensure accurate pattern specificity and manufacturer detection.

Can I process MPNs with special characters and varying letter cases?

Yes, you can process MPNs with special characters and varying letter cases. The manufacturer detection mechanism applies special character normalization and case insensitivity to accurately identify the manufacturer regardless of formatting variations in the part number.

What is the best way to debug manufacturer detection patterns for part numbers?

The best way to debug manufacturer detection patterns for part numbers is to review the design and ordering of the regex patterns. This skill provides insights into the ordered enum structure to clarify pattern specificity and streamline debugging.