/canexplorer:can-reverse-engineeringfrom canexplorer
Reverse-engineers unknown CAN/CAN FD buses using the CANExplorer MCP server. Surveys traffic, identifies signal fields, correlates with physical actions or reference logs, and produces evidence-backed DBC files.
Ships in canexplorer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill drives the CANExplorer MCP server, either can-mcp or the in-app Agent… server. Its tools are named
below without a prefix. In Claude Code they show up as mcp__<server>__<tool>, for example
mcp__canexplorer__analyze_identifier.
The aim is a DBC whose signals are evidence-backed. Every signal you write should have a stated reason: it reacted to a marked action, it correlated with a reference, or it is an unambiguous counter or checksum. Never name a signal from a guess and present it as fact.
Call bus_status.
pip install "can-explorer[mcp]"), then register the server with claude mcp add canexplorer -- can-mcp. They
can instead start the in-app server from Trace → Agent… in the GUI. Stop here until they have done that."connected": false. Call list_interfaces. Ask the user which interface, channel and bitrate to use unless
they already said: a wrong bitrate gives error frames and no data. Then call connect. Common values are
500000 bit/s for powertrain buses and 125000 for comfort buses. For CAN FD, pass fd=true and the data bitrate.error_frames keeps rising. The bitrate is probably wrong, or the bus is not terminated. Say so before
analysing anything.capabilities shows which tiers are enabled. Everything in this skill is read-only and
sends nothing on the bus. Do not ask for diagnostics, control or send rights to reverse-engineer passive
traffic.list_identifiers lists the identifiers with their counts, cycle times and latest data.timing separates periodic from event-triggered identifiers. Fast periodic identifiers (10–20 ms) usually
carry powertrain and chassis values. Slow ones (100 ms to 1 s) usually carry status, network management or
comfort data. Event-triggered ones follow actions such as buttons, doors and locks.decode_protocol may already
explain the frames. The protocol is often given away by extended identifiers such as 18FEF100, or by a
7E0/7E8 diagnostic pair. A database can also already exist: if the user has one, call load_database and
work only on the identifiers it does not describe.Wait until a few seconds of traffic have been captured before analysing. The analysis only sees the recent frames, so a value that never changed in that window looks constant.
Call analyze_identifier with the identifier as hex, for example "1A0". Pass extended=true for 29-bit
identifiers. Each field it returns is written ID[start|length@order sign], as in a DBC: @1 is little-endian
(Intel), @0 big-endian (Motorola), + unsigned and - signed. Each field also has a kind:
checksum and counter are usually exact, so trust them at high confidence.physical changes smoothly, so it is a candidate quantity. Its meaning is still unknown.enum and flag are candidate modes and switches. Their meaning is still unknown.multiplexer selects which layout the rest of the frame has. Analyse each multiplexer value as its own frame.constant fields are hidden unless you pass include_constant=true. unknown bits change but fit no pattern.freshness and mac are AUTOSAR SecOC fields from a loaded ARXML.random is only a hint: possibly a truncated MAC or encrypted data. Report it as unexplained rather than
inventing a layout for it.If a byte does not split cleanly into fields, use bit_activity. It shows per-bit set and flip rates, so constant
bits, toggling bits and counter bits stand out. It also gives a per-byte entropy.
The analysis says where the fields are. These steps show what they are. Choose by what the user can do:
mark with a label at each one, then call
reaction_at_markers. A real reaction hits most of the markers and has a low background change rate. A field
that hits one or two markers but changes all the time anyway is a coincidence. Call clear_markers before
starting on a different action.capture_reaction, setting
baseline_seconds and action_seconds to the times used. It reports identifiers that appeared and bits that
were stable and then changed.correlate. It returns the best-matching fields with their fitted factor, offset and
time lag, already in the reference's unit.related_signals to find the same quantity rebroadcast on several
identifiers. A value repeated by a gateway is usually an important one. After that, state plainly that the
meaning is unconfirmed.Before saving a field, check your hypothesis with extract_field: the start bit, length, byte order, sign, scale
and offset. For little_endian, start is the least significant bit. For big_endian, it is the most
significant bit. Look at min, max and the series:
If a fitted scale is close to a round factor such as 0.1, 0.25, 0.5, 1/128 or 0.01, it is likely the real one. Prefer the round factor and say that you rounded it.
Call promote_to_dbc with a path ending in .dbc and an explicit fields list for what you confirmed. Each
entry is {identifier, start, length, byte_order, signed, scale, offset, name, unit, comment}. An existing file at
path is extended, not overwritten. Put the evidence in comment, for example "reacts to brake pedal, 5/5 markers" or "correlates 0.998 with GPS speed, lag 40 ms". Calling promote_to_dbc without fields writes
every field the analysis found; only do that if the user asks for it, and then set min_confidence.
Then call load_database on the new file and get_frames for the identifier, and show the user the decoded
signals as a check.
End with a table of what you found: the identifier, the bit field, the name, the scale and unit, the evidence, and your confidence. List separately what is still unexplained. Keep three things apart:
--allow-send, --allow-diagnostics or --allow-control). Those tools act on a
real vehicle, so confirm the setup with the user first, for example a parked car or a bench.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
can-bus, can-fd, reverse-engineering, dbc, automotive, canexplorer
npx claudepluginhub akj7/canexplorer --plugin canexplorerOther plugins' skills for the same job