Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

manufacturer-agent

БесплатноБез исполняемых скриптовНе проверен

Web-augmented agent for creating manufacturer skills and comprehensive tests. Use when adding or improving support for a manufacturer handler.

majiayu000от majiayu000★ 31 звезда на GitHub

Об этом скилле

Manufacturer Agent

Automated agent for creating detailed manufacturer skills and comprehensive test coverage.

Usage

/manufacturer-agent <manufacturer-name>

Examples:

  • /manufacturer-agent ST - STMicroelectronics
  • /manufacturer-agent NXP - NXP Semiconductors
  • /manufacturer-agent Infineon - Infineon Technologies
  • /manufacturer-agent Microchip - Microchip Technology

Agent Workflow

Execute these phases in order:

Phase 1: Analyze Existing Handler

  1. Find the handler file:

    Glob: src/main/java/**/manufacturers/*Handler.java
    
  2. Read the handler and extract:

    • All patterns registered in initializePatterns()
    • Supported ComponentTypes from getSupportedTypes()
    • Package code mappings in extractPackageCode()
    • Series extraction logic in extractSeries()
    • Any special matching logic in matches()
  3. Identify issues:

    • Uses HashSet instead of Set.of()?
    • Uses default matches() with multi-pattern types?
    • Missing case-insensitive handling?

Phase 2: Web Research

Search for manufacturer documentation using these queries:

WebSearch: "{manufacturer} part number naming convention"
WebSearch: "{manufacturer} ordering information guide"
WebSearch: "{manufacturer} package marking code"
WebSearch: "{manufacturer} product selector guide filetype:pdf"

For each relevant result, fetch and analyze:

WebFetch: <url>
Prompt: "Extract the MPN structure, package codes, temperature grades, and family prefixes from this page"

Key information to gather:

  • MPN structure breakdown (prefix, series, variant, package, temp, qualifier)
  • Package code table (e.g., N=DIP, D=SOIC, PW=TSSOP)
  • Temperature grade suffixes (I=Industrial, Q=Automotive, M=Military)
  • Family prefixes and what they indicate
  • Common product series with examples
  • Any naming quirks or conflicts (like TI's LM35 vs LM358)

Phase 3: Gather Real MPN Examples

Search for real part numbers to use in tests:

WebSearch: "{manufacturer} {product-type} datasheet"

Product types to search based on handler's supported types:

  • Microcontroller → "STM32 datasheet", "PIC microcontroller"
  • MOSFET → "IRFZ44N datasheet", "STF5N52U"
  • Op-amp → "LM358 datasheet", "TL072"
  • Voltage regulator → "LM7805 datasheet"

Collect 5-10 real MPNs for each supported ComponentType.

Phase 4: Generate Skill File

Create .claude/skills/manufacturers/{manufacturer}/SKILL.md following this template:

---
name: {manufacturer-lowercase}
description: {Manufacturer} MPN encoding patterns, suffix decoding, and handler guidance.
---

# {Manufacturer} Manufacturer Skill

## MPN Structure

{Diagram showing MPN breakdown}

### Example Decoding

{2-3 annotated examples}

---

## Package Codes

### Through-Hole Packages
| Code | Package | Notes |
|------|---------|-------|

### Surface Mount Packages
| Code | Package | Notes |
|------|---------|-------|

---

## Family Prefixes

| Prefix | Category | Examples |
|--------|----------|----------|

---

## Temperature Grades

| Suffix | Range | Application |
|--------|-------|-------------|

---

## Common Series Reference

{Tables of common product series}

---

## Handler Implementation Notes

### Package Code Extraction
{Code examples and gotchas}

### Series Extraction
{Code examples}

### Known Issues
{Any bugs or limitations found}

---

## Related Files

- Handler: `manufacturers/{Handler}.java`
- Component types: {list types}
- Test: `handlers/{Handler}Test.java`

---

## Learnings & Edge Cases

{Bullet points of discoveries}

<!-- Add new learnings above this line -->

Phase 5: Generate Test File

Create src/test/java/no/cantara/electronic/component/lib/handlers/{Handler}Test.java:

CRITICAL: Test Design Principles

  1. ALL TESTS MUST PASS - Never commit failing tests
  2. Document bugs in SKILL.md and CLAUDE.md, not via failing assertions
  3. Handler behavior can be non-deterministic due to test execution order and shared PatternRegistry
  4. For flaky behavior, use documentation tests (no assertions) instead of assertTrue/assertFalse

Test Categories:

Category Assertion Type When to Use
Stable behavior assertTrue/assertFalse Handler behavior is consistent
Flaky behavior System.out.println only Behavior varies by test order
Bug documentation Comments + SKILL.md Document in files, not tests

Structure:

package no.cantara.electronic.component.lib.handlers;

import no.cantara.electronic.component.lib.ComponentType;
import no.cantara.electronic.component.lib.PatternRegistry;
import no.cantara.electronic.component.lib.manufacturers.{Handler};
import org.junit.jupiter.api.*;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.*;
import static org.junit.jupiter.api.Assertions.*;

class {Handler}Test {

    private static {Handler} handler;
    private static Patte
Полный SKILL.md на GitHub

Установить manufacturer-agent в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл manufacturer-agent?

Web-augmented agent for creating manufacturer skills and comprehensive tests. Use when adding or improving support for a manufacturer handler.

Как установить скилл manufacturer-agent?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл manufacturer-agent запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить manufacturer-agent с