Claudeception: The Claude Code skill that teaches an agent to remember what it just learned

A self-referential meta-skill for turning debugging wins, workarounds, and project-specific patterns into reusable long-term knowledge.

8 min read · blader/Claudeception

A wide editorial scene shows a debugging note moving along a conveyor belt into a reflection station, then emerging as a neatly labeled skill card filed into an archive beside a terminal and notebook. It illustrates how the project converts one-off troubleshooting into durable knowledge that can be recalled later.
Claudeception turns a solved problem into something Claude Code can find again later.
Key Takeaways

The curse of the forgetting assistant

Claude Code can solve a problem quickly, then act like it never happened. That is fine for generic tasks, but brutal for project-specific bugs, odd framework behavior, and fixes that only make sense once you have already burned an hour finding them.

Claudeception is a direct answer to that failure mode. It turns a successful debugging session into a reusable skill, so the next time the same symptom shows up, Claude does not start from zero.

Every time you use an AI coding agent, it starts from zero. You spend an hour debugging some obscure error, the agent figures it out, session ends. Next time you hit the same issue? Another hour. This skill fixes that.

blader, Author/Maintainer · blader/Claudeception README

What Claudeception actually does

The core loop is simple. Claude notices that a fix was non-obvious, checks whether the lesson already exists, then writes a new skill with the problem, context, solution, and verification steps.

The loop is the product: a useful fix becomes a stored skill, and a later symptom brings that skill back into view.

---
description: "Prisma connection pool exhaustion. Use when you see P2024 or repeated connection timeout symptoms."
context:
  - "P2024"
  - "PrismaClientInitializationError"
solution: "Reduce concurrent connections, reuse the client, and verify pool settings."
verification: "Run the failing query again and confirm the timeout no longer appears."
---

The activator is the trick

The clever part is not just the skill file. It is the shell hook that injects a mandatory evaluation prompt into every interaction, so Claude keeps asking whether the current task produced extractable knowledge.

A close-up mechanical trigger catches a prompt stream, flips a lever, and releases a card labeled as a mandatory evaluation step while a small stack of prior skill cards sits in the background. It shows how the hook forces reflection at the moment work is happening, not after the fact.
The activator turns reflection into a default behavior instead of an afterthought.

That matters because semantic matching alone is lazy. A reminder on every prompt increases the odds that Claude will stop and classify a lesson before it disappears into the next task.

The hook injects a reminder on every prompt that tells Claude to evaluate whether the current task produced extractable knowledge. This achieves higher activation rates than relying on semantic description matching alone.

blader, Author/Maintainer · blader/Claudeception README

Why the skill format matters

Claudeception stores lessons as markdown with YAML frontmatter because retrieval is the job. The file needs to be readable by humans and searchable by the agent, so it encodes the symptom, the trigger conditions, the fix, and the verification in a format that can be matched later.

ProjectPrimary jobWhat it storesWhat triggers retrievalWhy Claudeception is different
README notesHuman documentationGeneral advice and project loreA person reads itIt is written for people, not for future agent recall.
MemGPTLong-term memory managementConversation state and retrieved contextMemory selection logicIt retrieves information, but does not focus on manufacturing new skills from lived debugging.
ClaudeceptionSkill extraction for Claude CodeSymptoms, context markers, solution, verificationMatching error patterns and prompt hooksIt turns successful experience into a future retrieval hook inside Claude Code.

That is why the repo emphasizes exact errors and context markers. A future failure does not need a perfect semantic description if the trigger text already looks enough like the last one.

From debug fix to reusable skill

The examples make the pattern concrete. A Prisma connection pool issue, a Next.js server-side error, or a TypeScript circular dependency becomes a structured lesson instead of a buried memory in a chat transcript.

Each skill records the same basic arc. Here is the symptom. Here is the context where it matters. Here is the fix. Here is how to prove the fix worked.

Symptom: P2024, timeout, or repeated connection exhaustion
Context: high concurrency, stale client reuse, noisy local dev environment
Fix: reuse the client, reduce parallel connections, adjust pool settings
Verify: rerun the failing path and confirm the error no longer reproduces

Claudeception’s real competition

The closest alternatives are not other Claude Code skills. They are generic notes, memory frameworks, and research agents that solve adjacent problems but miss the same target.

ProjectPrimary jobWhat it storesWhat triggers retrievalWhy Claudeception is different
ClaudeceptionTeach Claude Code to preserve lessonsReusable skills built from debugging experienceMatching symptoms plus a prompt hookIt creates future knowledge artifacts from the work itself.
VoyagerLearn executable skills in an environmentCode skills for repeated actionTask and environment stateIt is built for research learning, not developer workflow memory.
ReflexionImprove performance through self-reviewTextual reflectionsEvaluation promptsIt reflects, but Claudeception also persists the result as a skill.

That distinction is the whole story. Claudeception is not trying to be a universal memory layer. It is trying to make Claude Code institutionalize the weird stuff it learns along the way.

Why this matters beyond Claude Code

The bigger pattern is simple: agents do not just need access to knowledge. They need a way to manufacture it from experience. Claudeception shows how a tool can convert a solved edge case into a durable asset the next time the edge case returns.

That is a useful direction for developer tools in general. The best agent may not be the one that remembers everything. It may be the one that learns how to save the right thing, in the right form, at the right moment.