What to do when groundhog says you hit the same error again, reverted your own edit, or keep rewriting the same lines. Use it as soon as a groundhog notice appears, before making another attempt.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Unstick?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/shiroe-95-unstick)
---
name: unstick
description: What to do when groundhog says you hit the same error again, reverted your own edit, or keep rewriting the same lines. Use it as soon as a groundhog notice appears, before making another attempt.
---
# Unstick
A groundhog notice means your last attempts were variations on one idea, and the error did not move. Another variation is unlikely to work. Change the approach instead.
If you already have a debugging skill or process of your own, follow it. This page is the fallback.
## Same error again
1. **Stop retrying.** Do not run another command aimed at the same error yet.
2. **Read the error in full.** Read the file and line it points to. Do not stop at the summary line.
3. **Name the cause.** Write one sentence: "This fails because ...". If you cannot write it, you do not know the cause yet. Gather facts. Do not change code.
4. **Explain every attempt.** Your hypothesis must explain why each previous attempt failed, not just the last one.
5. **Pick a check that could prove you wrong, and predict its output.** Run it before the fix, then quote the line that confirms or kills the hypothesis.
6. If you still have no hypothesis, use one of these:
- Hand the problem to a fresh subagent with a brief, not logs: the goal, the facts you verified (with the command that verified each), the hypotheses you ruled out, and the error signature. Do not pass on your current theory.
- Ask the user one specific question that would unblock you, with the same brief.
## Your edit was reverted
You are going back and forth between two versions of the same code.
1. Stop editing that spot.
2. Write down what each version was trying to fix.
3. Find evidence that settles it: a test, the caller, the docs or the error message. Choose one version based on that evidence.
4. If both versions break something, the real problem is somewhere else. Look one level up.
## You keep rewriting the same lines
Edit, fail, re-edit on the same spot means each change is a guess.
1. Before the next edit, run the check that shows whether the last change worked, and say what it printed.
2. If the output does not point at these lines, the bug is probably somewhere else. Follow the output, not the file you happen to be in.
## When the notice is wrong
Sometimes the repeats are deliberate, for example polling a server that is still starting. Say so in one line and carry on. If it keeps happening, the user can raise `GROUNDHOG_WARN_AT` or turn the plugin off with `GROUNDHOG_DISABLE=1`.