creating-new-drivers

creating-new-drivers is a cursor rule for Cursor from jumpstarter-dev/jumpstarter. It costs 14 tokens per session (1,404 once invoked), scanned A, original, Apache-2.0.

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

Written for Cursor: installed under .cursor/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./python/__templates__/create_driver.sh <driver_package> <DriverClass> "<Author Name>" "<[email protected]>".

Good fit It helps gather the required driver information and start a new driver with the project’s provided creation script.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for creating-new-drivers

README.md
[![agentmods](https://agentmods.dev/badge/rules/jumpstarter-dev/jumpstarter/creating-new-drivers/github.svg)](https://agentmods.dev/rules/jumpstarter-dev/jumpstarter/creating-new-drivers)
Your own site
<a href="https://agentmods.dev/rules/jumpstarter-dev/jumpstarter/creating-new-drivers"><img src="https://agentmods.dev/badge/rules/jumpstarter-dev/jumpstarter/creating-new-drivers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for creating-new-drivers

Your own site · 80×15
<a href="https://agentmods.dev/rules/jumpstarter-dev/jumpstarter/creating-new-drivers"><img src="https://agentmods.dev/badge/rules/jumpstarter-dev/jumpstarter/creating-new-drivers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00014 $0.01404
Opus 5.5 $0.00006 $0.00562
Sonnet 5.5 $0.00003 $0.00281
Haiku 4.5 $0.00001 $0.00140

Measured 1mo ago against content hash f6958bd582ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (227 stars, last pushed yesterday), licensed Apache-2.0. It adds 14 tokens to every session and 1,404 once invoked, about $0.0001 per session on Opus 5.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.