Looks up earlier causes and fixes in the cachly Brain before debugging an error, then records the result. Uses causal_trace for an error message or symptom and recall_best_solution for a known topic. Use when a test, build, deploy or runtime error appears and before reading logs or code.
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 Cachly Debug With History?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cachly-dev-cachly-debug-with-history)
---
name: cachly-debug-with-history
description: Looks up earlier causes and fixes in the cachly Brain before debugging an error, then records the result. Uses causal_trace for an error message or symptom and recall_best_solution for a known topic. Use when a test, build, deploy or runtime error appears and before reading logs or code.
---
# cachly: debug with history
Check what the Brain already knows before searching code. A known cause costs one call; a fresh search costs many.
## Steps
1. **Trace the symptom.** Call `causal_trace` with `problem` set to the exact error text or symptom. Paste the message as it appears, including codes and paths.
2. **Look up a topic.** If the error belongs to a known area (for example `deploy:api`), call `recall_best_solution` with `topic`. It returns the best-rated stored solution for that topic.
3. **Apply and verify.** If a lesson matches, apply it and run the failing step again. If it does not fix the problem, say so to the user and continue with ordinary debugging.
4. **Record the result.** Call `learn_from_attempts`:
- success: put the decisive fact first in `what_worked`
- the stored lesson was wrong or incomplete: write to the same `topic` with `grund` (one line: why the old version was wrong)
- fill `what_failed` with what was tried and did not work
## Example
Error: `FATAL: password authentication failed for user "app"` after a deploy.
- `causal_trace(problem="FATAL: password authentication failed for user app after deploy")` returns a lesson: the secret was rotated, the container kept the old one.
- Fix: recreate the container, not only restart it.
- Saved: `what_worked="RECREATE THE CONTAINER AFTER A SECRET ROTATION (docker compose up -d --force-recreate api); restart keeps the old env."`
## Checks
- Treat a recalled lesson as a lead, not a verdict. Verify it against the current code.
- Do not store secrets or full log dumps in a lesson.
More: <https://cachly.dev/docs/mcp?utm_source=claude-skill&utm_medium=plugin&utm_campaign=cachly-debug-with-history>