agentleFS
easyzoomeasyzoom/aix-skills/skills/canbus-integration/SKILL.md

canbus-integration

Skill36 starsChanged 5 months agoMITView on GitHub

Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing, filters, or embedded automotive communication

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for embedded CAN bus libraries and CANBus-Triple style projects.

    line 10
  2. Distinctive:

    Use this skill when:

    line 14
  3. Distinctive:

    Do not use this skill when the target is only a generic UART/SPI issue with no CAN layer.

    line 20
  4. Distinctive:

    Start with listen or loopback.

    line 40
  5. Distinctive:

    Use internal loopback or listen-only mode before transmitting onto a live bus.

    line 41
  6. Distinctive:

    Do not transmit on vehicle or production buses without explicit approval and a safe test plan.

    line 50
  7. Distinctive:

    Before claiming CAN works:

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

CANBus Integration

Overview

Use this skill for embedded CAN bus libraries and CANBus-Triple style projects. CAN failures are often physical-layer, bit-timing, termination, transceiver, or filter problems before they are application protocol problems.

When To Use

Use this skill when:

  • The user mentions CAN, CANBus-Triple, MCP2515, SocketCAN, CANopen, J1939, UDS, OBD-II, ISO-TP, or automotive messages.
  • Frames are missing, bus-off occurs, IDs are wrong, filters reject messages, or bit timing is unreliable.
  • The task involves adapting a CAN example project or Arduino-style CAN platform to another board.

Do not use this skill when the target is only a generic UART/SPI issue with no CAN layer.

First Questions

Ask for:

  • CAN controller/transceiver and board, such as internal CAN, FDCAN, MCP2515, or CANBus-Triple.
  • Bus speed, oscillator frequency, sample point, and whether CAN FD is involved.
  • Wiring, termination, transceiver voltage, and whether another known-good node is present.
  • Frame IDs, standard/extended format, filters, masks, and expected traffic.
  • Library/project source and current error counters, bus state, or capture.

Integration Checklist

  1. Verify physical layer. Confirm CANH/CANL wiring, 120-ohm termination, common ground, transceiver enable/standby, and voltage compatibility.
  2. Confirm bit timing. Controller clock, prescaler, segments, sample point, and bus speed must match the network.
  3. Start with listen or loopback. Use internal loopback or listen-only mode before transmitting onto a live bus.
  4. Configure filters deliberately. Disable filters temporarily or accept all frames to prove RX path before narrowing IDs.
  5. Separate transport and protocol. First prove raw CAN frames, then add ISO-TP, UDS, OBD-II, J1939, or application decoding.
  6. Protect live systems. Do not transmit on vehicle or production buses without explicit approval and a safe test plan.

Common Failures

  • Missing termination or wrong transceiver standby pin.
  • MCP2515 oscillator frequency differs from library assumption.
  • Standard versus extended ID mismatch.
  • Filters silently drop expected frames.
  • Bus-off caused by transmitting at wrong bit rate.
  • SPI-to-CAN driver works in loopback but fails due to transceiver wiring.

Verification

Before claiming CAN works:

  • State controller, transceiver, bus speed, clock, ID format, and filter mode.
  • Confirm physical termination and transceiver enable state.
  • Confirm loopback or known-good RX before live TX.
  • Report error counters, bus state, and captured frame evidence.
  • State whether transmission on a live bus was skipped or explicitly approved.

Example

User:

CANBus-Triple 例程烧进去后收不到车上的 CAN 帧。

Agent:

  1. Asks for bus speed, MCP2515 oscillator, termination, transceiver state, and expected IDs.
  2. Tests listen-only or accept-all filters.
  3. Confirms raw frames before decoding OBD-II or UDS traffic.

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.