/openjoystickdriver:writing-ojd-controller-records [VVVV:PPPP]from openjoystickdriver
Writes a complete OpenJoystickDriver Controller record for a model with no bundled record, maps report bits, and replays a capture to test it.
Ships in openjoystickdriver. 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.
Read when SKILL.md points to them.
Model: $ARGUMENTS
A Controller record describes a whole model. A bundled model takes a patch instead (/openjoystickdriver:writing-ojd-controller-patches); OJD refuses a Controller file for it.
- [ ] ojd record show VVVV:PPPP exit 1 = no record, continue
- [ ] draft (pick one)
ojd record draft VVVV:PPPP > vvvv-pppp.plist user presses every control 10 s
ojd record draft VVVV:PPPP --from-sdl > vvvv-pppp.plist HIDDescriptor + hidUsageMap
- [ ] plutil -convert json -o - vvvv-pppp.plist
- [ ] fix missed controls from draft stderr (changed bytes with min/max)
- [ ] ojd record validate vvvv-pppp.plist fields inside the report
- [ ] ojd --json controller capture VVVV:PPPP --duration 10 > capture.jsonl user holds one state
- [ ] state.json = one `ojd --json controller watch` line for that state
- [ ] ojd record test VVVV:PPPP --packets capture.jsonl --expect state.json
- [ ] ojd record install vvvv-pppp.plist --dry-run, then without
- [ ] ojd controller check VVVV:PPPP
record test: exit 0 matches; E2022 lists differing fields; E2011 is an invalid capture or state, or no input report.
Bit layout rules (offsets, axes, hats, triggers, touch) and a full example: references/input-layouts.md. Read it before editing input.layouts.
| Device | modes[].protocol.family |
|---|---|
| descriptor right | HIDDescriptor, optionally input.hidUsageMap |
| descriptor wrong or vendor-defined | HIDReportLayout + input.layouts |
| speaks a known family | that family; input.layouts overrides single controls |
ojd protocol list shows families. A missing family (handshake, encryption, transport) needs Swift, not a record.
apiVersion: openjoystickdriver/v1alpha4, kind: Controller, decimal vendorID/productID, modes (each id + protocol.family), input, optional name (USB product string verbatim), tuning, server. File: vvvv-pppp.plist, lowercase hex.
Raw-USB records need macOS to let OJD open the device; an Xbox model outside the signed driver list cannot be added by record.
Next: share via /openjoystickdriver:packaging-ojd-mods; many similar models via /openjoystickdriver:generating-ojd-documents. Ask before --force.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/adding-ojd-rumbleAdds rumble to an OpenJoystickDriver controller with a session.rumble template, including follow-up and stop reports, and checks it with packet captures. Use when a pad's motors stay still./diagnosing-ojd-controllersDiagnoses a game controller under OpenJoystickDriver (ojd) on macOS by reading its identity, record, inputs, and packets. Use when a pad is missing, misread, silent, or needs a support report./generating-ojd-documentsWrites a JavaScript generator that ojd generate turns into checked OpenJoystickDriver records, patches, profiles, or virtual devices. Use when several controller models differ by a few details./packaging-ojd-modsPackages OpenJoystickDriver records, patches, profiles, virtual devices, and protocol descriptions as a mod folder with a mod.plist manifest. Use when sharing ojd files with other users./writing-ojd-controller-patchesWrites an OpenJoystickDriver ControllerPatch that changes a bundled controller record, such as a deadzone, the handler, or a mode key. Use when ojd knows a model but one detail is wrong.npx claudepluginhub openjoystickdriver/openjoystickdriver --plugin openjoystickdriverOther plugins' skills for the same job