agentleFS
easyzoomeasyzoom/aix-skills/skills/hardware-interface-debug/SKILL.md

hardware-interface-debug

Skill36 starsChanged 5 months agoMITView on GitHub

Use when debugging embedded board-level power, reset, clock, pin, connector, signal integrity, logic analyzer, oscilloscope, or hardware interface issues

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when firmware symptoms may actually come from board-level signals.

    line 10
  2. Distinctive:

    Use this skill when:

    line 14
  3. Distinctive:

    Do not use this skill when the hardware path has already been verified and the issue is clearly inside firmware logic.

    line 20
  4. Distinctive:

    Start with power and ground.

    line 35
  5. Distinctive:

    Check reset and clock. Verify reset release, boot strap states, oscillator startup, clock output, and brownout/watchdog conditions.

    line 38
  6. Distinctive:

    Verify reset release, boot strap states, oscillator startup, clock output, and brownout/watchdog conditions.

    line 39
  7. Distinctive:

    Do not short pins, force rails, remove protections, or bypass regulators without explicit user approval.

    line 51
  8. Distinctive:

    No two outputs fight on the same net.

    line 59
  9. Distinctive:

    Use a multimeter for static rails and reset state.

    line 66
  10. Distinctive:

    Use an oscilloscope for clocks, reset edges, ripple, ringing, and analog behavior.

    line 67
  11. Very specific:

    Use a logic analyzer for decoded UART/SPI/I2C timing.

    line 68
  12. Distinctive:

    Use current-limited bench supply for bring-up when safe.

    line 69
  13. Distinctive:

    Before claiming hardware evidence:

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hardware Interface Debug

Overview

Use this skill when firmware symptoms may actually come from board-level signals. Verify power, reset, clocks, pin mapping, voltage levels, and measured waveforms before treating the issue as a software bug.

When To Use

Use this skill when:

  • The issue involves power rails, reset, crystals, boot pins, connectors, level shifters, pull-ups, or signal integrity.
  • A peripheral or debug interface has no signal, wrong voltage, ringing, stuck line, or intermittent behavior.
  • The user has a schematic, board photo, oscilloscope capture, logic analyzer trace, or pinout question.

Do not use this skill when the hardware path has already been verified and the issue is clearly inside firmware logic.

First Questions

Ask for:

  • Board/chip, revision, and affected interface.
  • Schematic snippet or pin mapping if available.
  • Expected signal and observed measurement.
  • Measurement tool: multimeter, oscilloscope, logic analyzer, current probe.
  • Power source and voltage levels.
  • Whether the issue is reproducible across boards.

Workflow

  1. Start with power and ground. Confirm rail voltage, sequencing, ripple, current limit, ground reference, and target voltage for debug probes.
  2. Check reset and clock. Verify reset release, boot strap states, oscillator startup, clock output, and brownout/watchdog conditions.
  3. Trace the signal path. Map MCU pin, package pin, board net, connector, level shifter, external device, and pull components.
  4. Measure at the right points. Compare near-MCU and near-peripheral signals to catch level shifter, connector, or routing issues.
  5. Compare against firmware configuration. Pin mux, open-drain/push-pull, drive strength, alternate function, and analog mode must match the hardware.
  6. Avoid destructive experiments. Do not short pins, force rails, remove protections, or bypass regulators without explicit user approval.

Signal Checks

  • Voltage level matches both devices.
  • Ground reference is shared.
  • Pull-up/down values are appropriate.
  • Rise/fall time fits bus speed.
  • No two outputs fight on the same net.
  • Boot strap resistors match intended mode.
  • Debug pins are not overloaded by external circuits.
  • Reset pulse width and polarity match datasheet.

Measurement Guidance

  • Use a multimeter for static rails and reset state.
  • Use an oscilloscope for clocks, reset edges, ripple, ringing, and analog behavior.
  • Use a logic analyzer for decoded UART/SPI/I2C timing.
  • Use current-limited bench supply for bring-up when safe.
  • Capture before and after reset or transaction start when timing matters.

Verification

Before claiming hardware evidence:

  • State measurement location, tool, voltage/time scale when relevant, and observed value.
  • Map the measured net to MCU pin and external device pin.
  • State whether the measurement supports or contradicts the firmware assumption.
  • List unsafe hardware actions avoided or awaiting approval.

Common Failures

  • Measuring only at the connector and not at the MCU pin.
  • Forgetting common ground for UART/debug adapters.
  • Treating an open-drain bus as push-pull.
  • Ignoring boot strap resistors or reset timing.
  • Debugging firmware while the rail is current-limited or brownout-resetting.

Example

User:

SPI 读出来全是 0xFF,代码看起来没问题。

Agent:

  1. Asks for schematic, pins, voltage, SPI mode, and logic analyzer capture.
  2. Checks CS/SCK/MOSI/MISO near both MCU and slave.
  3. Verifies MISO is not floating, voltage levels match, and CS timing reaches the device.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.