Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Investigate And Plan First?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ganesh-dark-investigate-and-plan-first)
---
name: investigate-and-plan-first
description: Use before editing code on any multi-file task, bug fix, or feature. Stops blind edits, scope creep, and endless self-review loops.
---
# Investigate and Plan First
Coding agents often start editing the first file they see, realize halfway through that they missed a caller, and end up rewriting four unrelated files. Spend a minute reading before you touch anything.
## Rules
- Read the call sites and related files first. Do not make edits until you know where the data comes from and where it goes.
- If the request is ambiguous or two valid designs exist, ask the user before guessing.
- Keep your diff scoped strictly to what the user asked for. Do not refactor adjacent functions, rename unrelated variables, or reformat untouched files.
- When you fix a bug from a production log, check whether the current branch matches the commit that produced the log. Line numbers shift over time, so verify you are looking at the right version of the code.
- Avoid endless self-review loops. When reviewing your own diff, fix real bugs or broken edge cases once and stop. Do not invent style nitpicks just to keep editing.
## Example
Bad:
The user asks to fix a tax calculation bug in `billing.py`. The agent edits `billing.py`, rewrites formatting in `invoice.py`, and renames helper functions in `utils.py` because it thought they looked messy.
Good:
The agent searches for callers of `calculate_tax`, checks how `invoice.py` passes the subtotal, fixes only the tax calculation in `billing.py`, and leaves `invoice.py` and `utils.py` untouched.