creating-new-drivers

A set of instructions for creating, improving, or documenting a software driver. A driver is code that lets one system control or communicate with a device or service.

In plain words
What is it for?
It helps gather the required driver information and start a new driver with the project’s provided creation script.
Why use it?
It keeps new drivers consistent with the project’s naming and setup rules, reducing missed details and manual setup.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/jumpstarter-dev/jumpstarter/creating-new-drivers
Clone the repo
git clone --depth 1 https://github.com/jumpstarter-dev/jumpstarter

Made for: Cursor.

Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,404 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.01404
Opus 5 $0.00007 $0.00702
Sonnet 5 $0.00003 $0.00281
Haiku 4.5 $0.00001 $0.00140

Measured 2d ago against content hash f6958bd582ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

creating-new-drivers scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/creating-new-drivers.mdc · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Creating New Drivers

When asked to create a new driver, follow these steps:

1. Use the Driver Creation Script

Always use the provided script: ./python/__templates__/create_driver.sh

2. Required Information

Before creating a driver, ask the user for:

  • Driver Package Name: The package name (e.g., mydriver, custom-power, device-controller)
    • Should be lowercase with hyphens for multi-word names
    • Examples from existing drivers: network, iscsi, ridesx, opendal, shell, gpiod, http-power, tasmota, tftp, uboot, snmp, sdwire, probe-rs, can, composite, corellium, dutlink, energenie, flashers, http, power, pyserial, qemu, ustreamer, yepkit
  • Driver Class Name: The main driver class in CamelCase (e.g., MyDriver, CustomPower, DeviceController)
    • Should be descriptive and end with appropriate suffix based on functionality
    • Examples: TcpNetwork, ISCSI, RideSXDriver, Opendal, Shell, HttpPower, TasmotaPower, Tftp, UbootConsole, SNMPServer, SDWire, ProbeRs, Can, Composite, Corellium, Dutlink, EnerGenie, QemuFlasher, UStreamer, Ykush
  • Author Name: Full name of the author
  • Author Email: Email address of the author

3. Command Format

./python/__templates__/create_driver.sh <driver_package> <DriverClass> "<Author Name>" "<[email protected]>"

Always try to obtain the Author Name and Email from git, by checking the git configuration.

4. Examples

# Network driver
./python/__templates__/create_driver.sh network TcpNetwork "John Doe" "[email protected]"

# Power management driver
./python/__templates__/create_driver.sh custom-power CustomPowerDriver "Jane Smith" "[email protected]"

# Device control driver
./python/__templates__/create_driver.sh device-controller DeviceController "Bob Wilson" "[email protected]"

5. After Creation

Once the driver is created:

  1. Navigate to the new driver directory: python/packages/jumpstarter-driver-<driver_package>/
  2. Register the package in the workspace by adding an entry to python/pyproject.toml under [tool.uv.sources]:
    jumpstarter-driver-<driver_package> = { workspace = true }
    
    Insert it alphabetically among the other jumpstarter-driver-* entries.
  3. Add the package to jumpstarter-all by adding it to the dependencies list in python/packages/jumpstarter-all/pyproject.toml:
    "jumpstarter-driver-<driver_package>",
    
    Insert it alphabetically among the other jumpstarter-driver-* entries.
  4. Review the generated files and customize as needed
  5. Implement the driver logic in driver.py
  6. Add tests in driver_test.py
  7. Update the README.md with specific documentation
  8. Test the driver: make pkg-test-<driver_package>

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 118 lines · 14 tokens per session scan A f6958bd582ab

Subscribe to this mod's changes

creating-new-drivers is a cursor rule published in the GitHub repository jumpstarter-dev/jumpstarter (214 stars, last pushed 2d ago), licensed Apache-2.0. It adds 14 tokens to every session and 1,404 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.