Slopos usb input

From SlopLabs/slopos · View interactive version

Slopos usb input is an AI agent skill from the GitHub repository SlopLabs/slopos. USB (the xHCI driver, the device tree, usb-storage, usb-net, usb-hid) and the machine's one keyboard state, one cursor and keyboard layouts. Use when a task touches `drivers/src/usb`, `usb-core`, `hid-core`, `keymap-core`, `drivers/src/keyboard.rs`, `drivers/src/input_event.rs`, `drivers/src/ps2`, `

How to use this skill

Skill file

Read first

Rules a change must keep

nothing and own no hardware; a parser of device input bounds every read and

joins the mutation loops.

TransferSink runs where it is drained: it may not block, allocate or log.

device. Waiting belongs to probes and removals on usb-bind.

released and removals run, slot disabled, pages freed. Code that outlives

the binding touches no ring or page of a device that is gone.

sticks keep no toggles, so prove recovery against the simulated controller.

and keeps no modifier, lock, layout or cursor state. It releases its slot

when the device leaves.

boot; the light exchange is carried by the interrupt.

the display has no overlay. The compositor paints a pointer only after the

display refused an image.

wanted layout; keymap asks init and never loads one itself.

drivers/src/tests/usb_tests.rs and scripts/test_usb.py.

Checks

Not yet in the docs

Read pending.md beside this file when it exists. A change that adds or alters an invariant the docs do not state appends it there in the same commit.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.