name: code-driver description: Use for bug fixes, failing-test repair, CLI behavior, library usage, repo navigation, or script creation. Do NOT use for data/CSV transforms (use data-spreadsheet-driver) or prose/document tasks (use document-driver).
code-driver
Domain-specific moves for code tasks. The OS layer (observe, minimal-diff, verify) still applies — this adds only what is code-specific.
Procedure
- Read the task and the existing tests.
- Reproduce the failure if possible (run the test or command first).
- Locate the minimal code path responsible.
- Patch the smallest behavior that satisfies the requirement.
- Run the relevant tests / CLI and capture output.
- Inspect the diff; revert unrelated edits.
Notes
- Match existing style, imports, and idioms; do not introduce new dependencies unless required.
- Prefer fixing the cause over silencing the symptom.
- Do not add files the task did not ask for; extra artifacts can fail a verifier.
Optional scripts
scripts/run_checks.py— run a test/lint/build command, capture stdout+stderr and exit code.scripts/safe_patch.py— back up a file, apply an edit, and show the diff (revertable).
Scripts are optional helpers. Prefer native editing/test tools when they are available and sufficient.