i2c-bringup-diagnostician — скилл для Claude Code
Скилл i2c-bringup-diagnostician помогает выявить сбои шины I2C на платах Arduino и ESP32: от подтяжки резисторов до ошибок библиотек.
MIT 134 установок ★ 33 обновлён 2026-10-15
npx skills add wedsamuel1230/embedded-engineering-skills --skill i2c-bringup-diagnostician -a claude-codeЧто делает i2c-bringup-diagnostician
Скилл задаёт чёткий регламент поиска неполадок с шиной I2C. Если сканер адресов молчит, библиотека сенсора выдаёт сбой или два чипа конфликтуют, агент сначала проверяет базовую электрику: питание, общую землю, подтягивающие резисторы и логические уровни SDA/SCL. Менять код вслепую до проверки аппаратного слоя запрещено правилами скилла.
Внутри заложены инструкции под микроконтроллеры семейства ESP32 с их нюансами назначения пинов и вторых каналов I2C, а также справочники под линейку Arduino Uno R4. Без проверки корректности линий питания замена чужих библиотек не спасёт от плавающих зависаний шины.
Для полного анализа скилл интегрируется со смежными навыками репозитория: circuit-debugger для аппаратной части, datasheet-interpreter для сверки регистров и arduino-code-generator для создания проверочных скетчей.
Какие задачи решает
- Разобраться, почему сканер I2C не видит подключённый датчик
- Устранить сбой инициализации библиотеки при найденном адресе чипа
- Найти аппаратные проблемы с подтягивающими резисторами или уровнями логики
- Сконфигурировать правильные выводы шины I2C на модулях ESP32
- Разрешить аппаратный конфликт адресов нескольких устройств на одной шине
Примеры запросов агенту
- Сканер видит адрес 0x68 на плате ESP32, но библиотека датчика падает при старте
- Плата Arduino Uno R4 не обнаруживает устройства на шине I2C, помоги найти причину
- Проверь схему подключения двух сенсоров: периодически один из них пропадает с шины
Как установить i2c-bringup-diagnostician
1Через Skills CLI (Vercel)
npx skills add wedsamuel1230/embedded-engineering-skills --skill i2c-bringup-diagnostician -a claude-code2Вручную: положить файлы
~/.claude/skills/i2c-bringup-diagnostician/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/i2c-bringup-diagnostician/
1Через Skills CLI (Vercel)
npx skills add wedsamuel1230/embedded-engineering-skills --skill i2c-bringup-diagnostician -a codex2Вручную: положить файлы
.agents/skills/i2c-bringup-diagnostician/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wedsamuel1230/embedded-engineering-skills --skill i2c-bringup-diagnostician -a cursor2Вручную: положить файлы
.cursor/skills/i2c-bringup-diagnostician/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wedsamuel1230/embedded-engineering-skills skills/i2c-bringup-diagnostician2Вручную: положить файлы
.github/skills/i2c-bringup-diagnostician/SKILL.md1Через Skills CLI (Vercel)
npx skills add wedsamuel1230/embedded-engineering-skills --skill i2c-bringup-diagnostician -a gemini-cli2Командой платформы
gemini skills install https://github.com/wedsamuel1230/embedded-engineering-skills --path skills/i2c-bringup-diagnosticianВручную: положить файлы
.devin/skills/i2c-bringup-diagnostician/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add wedsamuel1230/embedded-engineering-skills --skill i2c-bringup-diagnostician -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об i2c-bringup-diagnostician
Как установить i2c-bringup-diagnostician в Claude Code?
Выполните в терминале команду npx skills add wedsamuel1230/embedded-engineering-skills --skill i2c-bringup-diagnostician -a claude-code.
Что делает скилл i2c-bringup-diagnostician?
Он направляет ИИ-агента по пошаговому алгоритму локализации неполадок I2C, разграничивая проблемы схемотехники, уровней напряжений и софтверных библиотек.
Поможет ли скилл при специфичных багах ESP32 или Uno R4?
Да, алгоритм учитывает особенности назначения пинов на ESP32 и ссылается на документацию семейства Uno R4 при разборе шинных конфликтов.
Исходный текст
SKILL.md · MIT
---
name: i2c-bringup-diagnostician
description: Use when users need to diagnose I2C bring-up failures on Arduino or ESP32-class boards, including no devices found, wrong readings, address conflicts, scanner-detects-but-library-fails cases, pull-up problems, or board-family-specific bus quirks.
metadata: {triggers: "I2C failure, address conflict, pull-up, scanner, bus bring-up"}
---
# I2C Bringup Diagnostician
Use this skill when the sensor or device should be on the bus, but the I2C path
is still not trustworthy.
## Resources
- `references/bringup-flow.md` - ordered I2C fault-isolation workflow
- `references/scanner-vs-library.md` - what to do when the scanner finds the device but the library still fails
- `references/esp32-and-board-quirks.md` - ESP32-family and board-specific caveats
- `../../docs/board-support/uno-r4-family.md` - Uno R4 family board notes when relevant
## When to Use
Use this skill when the request includes:
- "no I2C devices found"
- scanner finds the address but the library cannot initialize the device
- two I2C devices conflict or one disappears
- ESP32 pin, bus, or second-channel confusion
- pull-up, wire-length, or voltage-level questions
- obviously wrong sensor values after basic detection succeeds
## Workflow
1. Establish the basic failure shape:
- no scanner detection -> open `references/bringup-flow.md`
- scanner detects but library fails -> open
`references/scanner-vs-library.md`
- ESP32-family multi-bus or pin issue -> open
`references/esp32-and-board-quirks.md`
2. Confirm the electrical basics before library swapping:
- power
- common ground
- SDA and SCL mapping
- pull-ups
- logic level compatibility
3. Only after the bus is electrically plausible, check address, device mode, and
library expectations.
4. If the board is Uno R4 family and the failure involves board-specific I2C or
support questions, also open `../../docs/board-support/uno-r4-family.md`.
## Core Rules
- Scanner success does not prove the library is using the device correctly.
- Library failure does not prove the sensor is dead.
- Bus voltage, pull-ups, and pin mapping must be explicit before changing code
blindly.
- For ESP32-family boards, pin choices and multi-bus assumptions are not always
portable across variants.
## Verification
- Confirm whether the scanner sees the expected address.
- Confirm whether a minimal register or identification read works.
- Confirm whether the failing behavior tracks a board family, bus instance, or
library rather than the sensor alone.
- Confirm whether the final fix survives repeated scans and actual sensor reads.
## Integration
- Pair with `circuit-debugger` for deeper hardware isolation.
- Pair with `datasheet-interpreter` when the correct address, power, or timing
details are not known.
- Pair with `arduino-code-generator` when the user needs a minimal test sketch or
a cleaned-up bus probe.
## Shared Output Contract
Use [the shared Arduino skill contract](../../docs/arduino-skill-contract.md):
state assumptions, required tools and versions, implementation steps,
tests/evidence by proof stage, known limitations, and recovery/security notes.
© wedsamuel1230 · MIT · wedsamuel1230/embedded-engineering-skills