Skip to content
Back to skills

Cachly Debug With History

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsdockerdebuggingapi

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add cachly-dev/cachly-mcp --skill cachly-debug-with-history --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cachly Debug With History?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cachly Debug With History
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cachly-dev-cachly-debug-with-history/badge)](https://www.skillsdirectory.com/skills/cachly-dev-cachly-debug-with-history)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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>

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.