Shadows Oneshot Fix
by @nakedoshadow
Surgical quick fix — max 5 tool calls, zero exploration, read-diagnose-fix-verify. Use for small bugs, typos, simple changes that don't need deep analysis.
clawhub install shadows-oneshot-fix📖 About This Skill
name: oneshot-fix description: "Surgical quick fix — max 5 tool calls, zero exploration, read-diagnose-fix-verify. Use for small bugs, typos, simple changes that don't need deep analysis." metadata: { "openclaw": { "emoji": "⚡", "homepage": "https://clawhub.ai/NakedoShadow", "os": ["darwin", "linux", "win32"] } }
Oneshot Fix — Surgical Quick Fix
Version: 1.1.0 | Author: Shadows Company | License: MIT
WHEN TO TRIGGER
WHEN NOT TO TRIGGER
PREREQUISITES
No specific binaries required. The verification step (Phase 4) auto-detects available tools:
python — Used for python -m py_compile {file} syntax check on .py files. Detected via which python or which python3.npx — Used for npx tsc --noEmit {file} type check on .ts files. Detected via which npx.pytest / jest / vitest — Used for running a targeted test if a test file is specified. Detected via standard tool resolution.If no compiler or test runner is available for the target file type, the verification step is skipped gracefully and the agent reports that manual verification is recommended.
CONSTRAINTS
PROTOCOL
Step 1 — READ (1 tool call)
Read the target file. If user specified a line number, use offset/limit to read only the relevant section.
Step 2 — DIAGNOSE (0 tool calls — mental only)
In your head:
Step 3 — FIX (1-2 tool calls)
Apply the fix using Edit tool. Change ONLY the broken part.
Rules for the fix:
Step 4 — VERIFY (1 tool call)
Run the appropriate check based on file type:
# Python — syntax check
python -m py_compile {file}TypeScript — type check (suppress non-critical output)
npx tsc --noEmit {file} 2>/dev/nullRun specific test if applicable
python -m pytest {test_file} -x -q 2>/dev/null
If no verification tool is available, report: "No compiler/test runner detected for this file type. Manual verification recommended."
RULES
1. 5 tool calls MAX — if you need more, switch to bug-hunter skill 2. Smallest possible diff — touch nothing extra 3. Match existing style — no reformatting, no "improvements" 4. Verify always — even quick fixes need a sanity check 5. If unsure, escalate — don't guess on a oneshot, use a proper debug skill
SECURITY CONSIDERATIONS
python -m py_compile, npx tsc --noEmit) or test run (pytest, jest, vitest) in the verification step. These execute local code in the repository.OUTPUT FORMAT
Fixed: [one-line description]
File: [path:line]
Change: [old] -> [new]
Verified: [compilation/test result]
That's it. No report, no analysis, no recommendations. Just the fix.
Published by Shadows Company — "We work in the shadows to serve the Light."
⚙️ Configuration
No specific binaries required. The verification step (Phase 4) auto-detects available tools:
python — Used for python -m py_compile {file} syntax check on .py files. Detected via which python or which python3.npx — Used for npx tsc --noEmit {file} type check on .ts files. Detected via which npx.pytest / jest / vitest — Used for running a targeted test if a test file is specified. Detected via standard tool resolution.If no compiler or test runner is available for the target file type, the verification step is skipped gracefully and the agent reports that manual verification is recommended.