save-learning

save-learning is a skill for Claude Code, Codex from caliber-ai-org/ai-setup. It costs 71 tokens per session (633 once invoked), scanned A, original, MIT.

A skill that saves a user's coding preferences or instructions for future sessions.

In plain words
What is it for?
Recording conventions such as branch choices, coding patterns, things to avoid, or other instructions that should persist.
Why use it?
It prevents users from repeating the same project rules or personal preferences every time.

Skill for Claude CodeCodex

About the project

Caliber is a tool that generates and continuously updates AI context and configuration files for software repositories, including CLAUDE.md, AGENTS.md, and platform-specific rules. Development teams use it to keep coding agents aligned with the current codebase across tools such as Claude Code, Cursor, Codex, OpenCode, and GitHub Copilot. Its catalogue entries include skills, hooks, rules, instructions, and settings for configuring that workflow.

caliber-ai-org/ai-setup · 1,259 stars · on GitHub

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.

agentmods
npx agentmods add skills/caliber-ai-org/ai-setup/save-learning
Any agent
npx skills add caliber-ai-org/ai-setup --skill save-learning
Clone the repo
git clone --depth 1 https://github.com/caliber-ai-org/ai-setup

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 save-learning

README.md
[![agentmods](https://agentmods.dev/badge/skills/caliber-ai-org/ai-setup/save-learning.svg)](https://agentmods.dev/skills/caliber-ai-org/ai-setup/save-learning)
Your own site
<a href="https://agentmods.dev/skills/caliber-ai-org/ai-setup/save-learning"><img src="https://agentmods.dev/badge/skills/caliber-ai-org/ai-setup/save-learning.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 633 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00071 $0.00633
Opus 5 $0.00036 $0.00316
Sonnet 5 $0.00014 $0.00127
Haiku 4.5 $0.00007 $0.00063

Measured 5d ago against content hash f8af7becc6a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

save-learning 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 5d 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.

.agents/skills/save-learning/SKILL.md · 61 lines

How it starts

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

Save Learning

Save a user's instruction or preference as a persistent learning that will be applied in all future sessions on this project.

Instructions

  1. Detect when the user gives an instruction to remember, such as:
    • "remember this", "save this", "always do X", "never do Y"
    • "from now on", "going forward", "in this project we..."
    • Any stated convention, preference, or rule
  2. Refine the instruction into a clean, actionable learning bullet with an appropriate type prefix:
    • **[convention]** — coding style, workflow, git conventions
    • **[pattern]** — reusable code patterns
    • **[anti-pattern]** — things to avoid
    • **[preference]** — personal/team preferences
    • **[context]** — project-specific context
  3. Show the refined learning to the user and ask for confirmation
  4. If confirmed, run:
    caliber learn add "<refined learning>"
    
    For personal preferences (not project-level), add --personal:
    caliber learn add --personal "<refined learning>"
    
  5. Stage the learnings file for the next commit:
    git add CALIBER_LEARNINGS.md
    

Examples

User: "when developing features, push to next branch not master, remember it" -> Refine: **[convention]** Push feature commits to the \next` branch, not `master` -> "I'll save this as a project learning: **[convention]** Push feature commits to the \next` branch, not `master` Save for future sessions?" -> If yes: run caliber learn add "**[convention]** Push feature commits to the next branch, not master" -> Run git add CALIBER_LEARNINGS.md

User: "always use bun instead of npm" -> Refine: **[preference]** Use \bun` instead of `npm` for package management` -> Confirm and save

User: "never use any in TypeScript, use unknown instead" -> Refine: **[convention]** Use \unknown` instead of `any` in TypeScript` -> Confirm and save

When NOT to trigger

  • The user is giving a one-time instruction for the current task only
  • The instruction is too vague to be actionable
  • The user explicitly says "just for now" or "only this time"

Read the full file on GitHub · 61 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. 5d ago First seen · 61 lines · 71 tokens per session scan A f8af7becc6a3

Subscribe to this mod's changes

save-learning is a skill published in the GitHub repository caliber-ai-org/ai-setup (1,259 stars, last pushed 1mo ago), licensed MIT. It adds 71 tokens to every session and 633 once invoked, about $0.0004 per session on Opus 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-30.

Related

Other skills, from other repositories

deep-init

Generate an agent-agnostic, two-tier context layer for a codebase — a lean, always-loaded CLAUDE.md plus a deep, on-demand .ai/docs/ layer (business rules, live DB schema + ORM drift, cross-component workflows, and the WHY: ADRs + a knowledge log), every claim grounded to file:line and verified to exist. Built for…

deepfusionlabs/deep-init · 128 tokens

lesson

被使用者糾正後,先分流(單純事實/偏好交給內建 auto memory,需要變成規則才進本流程),把規則寫成可長期沿用的條目記入 tasks/lessons.md。在使用者說「不對」「不是這樣」「我說過」或任何形式指出錯誤後立即使用;也用於定期把重複的 lesson 升級成 CLAUDE.md 規則、skill 或 hook。.

curtischoutw/claude-institution · 111 tokens

context-diet

Measure and compact an oversized agent-context file (CLAUDE.md, .cursorrules, AGENTS.md, a system prompt) without losing rules, or safely run reversible bounded, reversible ablation when intentional/aggressive context removal is requested. Triggers: "CLAUDE.md too big", "over the char limit", "context file too large"…

gaia-research/skill-context-diet · 110 tokens

contextdocs

Your AI agent maintains its own context files — a Claude Code plugin with an AGENTS-first model that covers Codex, Copilot, Cursor, Gemini, and 3 more tools. Signal Gate filtering, Context Guard hooks, health scoring, and MEMORY.md promotion.

littlebearapps/contextdocs · 56 tokens

rules-architect

Claude Code 自我改进规则架构——五层记忆模型(L0 Hook / L1 个人记忆 / L2 路径规则 / L3 CLAUDE.md / L5 团队经验)+ 五问归位流程 + 3 个核心 Hook + 路径规则入口 + 团队同步。用于用户要求管理规则、解决规则容易遗忘、优化 CLAUDE.md 或 memory、整理规则分布、自动判断规则归位时。L3 审计委托给 claude-md-management:claude-md-improver。.

langlanglanglanglang/rules-architect · 128 tokens

context-vault

Use a Markdown/Obsidian context vault for durable memory, workflow decisions, project lessons, context packs, SOPs, and cross-session handoffs.

niclejeune/pi-agents-config · 35 tokens