# Code Driver

> 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-spreadshe

- Skill: `iamkarp/code-driver` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx get-skill add iamkarp/code-driver`
- Raw SKILL.md: https://api.skillmd.com/api/skills/iamkarp/code-driver/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: iamkarp (https://skillmd.com/u/iamkarp)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/iamkarp/code-driver

---

---
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

1. Read the task and the existing tests.
2. Reproduce the failure if possible (run the test or command first).
3. Locate the minimal code path responsible.
4. Patch the smallest behavior that satisfies the requirement.
5. Run the relevant tests / CLI and capture output.
6. 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.

