permanent-learning-protocol

permanent-learning-protocol is a skill for Claude Code, Codex from avizmarlon/agent-skills. It costs 60 tokens per session (1,187 once invoked), scanned A, original, MIT.

A process for turning useful discoveries from an AI work session into saved instruction files, with the user's approval.

In plain words
What is it for?
Reviewing corrections and successful patterns at the end of a session or after a manual learning request, then proposing what to save for future sessions.
Why use it?
Important lessons otherwise disappear when the session ends, and unapproved changes could be added without the user's knowledge.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Reviewing corrections and successful patterns at the end of a session or after a manual learning request, then proposing what to save for future sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/avizmarlon/agent-skills/permanent-learning-protocol
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add avizmarlon/agent-skills --skill permanent-learning-protocol
Clone the repo
git clone --depth 1 https://github.com/avizmarlon/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for permanent-learning-protocol

README.md
[![agentmods](https://agentmods.dev/badge/skills/avizmarlon/agent-skills/permanent-learning-protocol/github.svg)](https://agentmods.dev/skills/avizmarlon/agent-skills/permanent-learning-protocol)
Your own site
<a href="https://agentmods.dev/skills/avizmarlon/agent-skills/permanent-learning-protocol"><img src="https://agentmods.dev/badge/skills/avizmarlon/agent-skills/permanent-learning-protocol/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for permanent-learning-protocol

Your own site · 80×15
<a href="https://agentmods.dev/skills/avizmarlon/agent-skills/permanent-learning-protocol"><img src="https://agentmods.dev/badge/skills/avizmarlon/agent-skills/permanent-learning-protocol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,187 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01187
Opus 5.5 $0.00024 $0.00475
Sonnet 5.5 $0.00012 $0.00237
Haiku 4.5 $0.00006 $0.00119

Measured 2mo ago against content hash cc45730f1cbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

permanent-learning-protocol scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/permanent-learning-protocol/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Permanent Learning Protocol

AI agents evolve only if learnings become part of their permanent instruction layer — auto-loaded in every future session. Session-only memory does not persist; only auto-loaded files survive across sessions.

This protocol moves learnings from chat to durable instruction files, with explicit user approval at each step. It prevents silent integration and ensures transparency.

1. Triggers

Automatic (natural session end — inferred from tone/context):

  • Farewell signals (goodbye, thanks + session ending, "signing off")
  • Gratitude + user disappears
  • Clear pivot to unrelated topic after coherent work block
  • Request to open new session / create handoff / create worktree for next phase
  • Session approaching context limit

Manual: User invokes skill /learn, or says variations like "consolidate what you learned this session" / "what did you discover today?"

2. Agent Action — Reflection + Proposal in Chat

Quick scan across learning categories:

  1. User Correction (explicit or implicit — user ignored approach and did differently) → feedback type
  2. Validated Pattern (user approved non-obvious approach without technical criticism, or called it "exactly right" / "perfect") → feedback type (good-pattern)
  3. Technical Discovery (tool gotcha, API behavior, effective workaround) → discovery type
  4. New Project/Context Fact (new platform, credential, person, decision) → project type
  5. External Resource Pointer (documentation, dashboard, repo, reference) → reference type

Present in chat as numbered proposal — DO NOT save yet:

📚 Proposed permanent learnings:

1. [feedback] User prefers X over Y
   Location: global-instructions.md (global scope)
   Why: incident from session / concrete reason
   How to apply: when/where to use this pattern

2. [discovery] Tool Z has gotcha W
   Location: project docs or global reference
   Type: behavioral / limitation / workaround

Approve all? Reject item N? Discuss any?

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 95 lines · 60 tokens per session scan A cc45730f1cbc

Subscribe to this mod's changes

permanent-learning-protocol is a skill published in the GitHub repository avizmarlon/agent-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 60 tokens to every session and 1,187 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mem0-vercel-ai-sdk

Mem0 provider for Vercel AI SDK (@mem0/vercel-ai-provider). TRIGGER when: user mentions "vercel ai sdk", "@mem0/vercel-ai-provider", "createMem0", "retrieveMemories", "addMemories", "getMemories", "searchMemories", "mem0 vercel", "AI SDK provider", "AI SDK memory", or is using generateText/streamText with mem0. Also…

mem0ai/mem0 · 146 tokens

pause

Pause Mem0 memory capture on this machine. Use when the user wants to stop memories being recorded, for example for private work or experiments.

mem0ai/mem0 · 30 tokens

mine

Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.

MemPalace/mempalace · 21 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

agent-carnet

Use this skill when the user asks to save, recall, find, or organize notes. Triggers on: 'remember this', 'save this', 'note this', 'what did we discuss about...', 'check the notebook', 'find in carnet'. Also use proactively when discovering findings worth preserving across sessions.

yamadashy/repomix · 67 tokens

mempalace-recall

Recall protocol for MemPalace — search the palace before answering about past work, people, projects, or prior decisions. Apply when the user asks what was decided, what happened before, who someone is, what was discussed last time, or anything that may already be filed in their memory palace; or when mempalace-recall…

MemPalace/mempalace · 94 tokens