learn

learn is a skill for Claude Code, Codex from AbdurRafay2004/handoff. It costs 66 tokens per session (1,746 once invoked), scanned A, original, MIT.

A learning-and-retrospective guide for recording what happened during development work, incidents, or rollbacks. A retrospective is a review of events and causes used to capture lessons for future work.

In plain words
What is it for?
Updating the changelog and status records, writing structured lessons, identifying causes from repository history, and creating follow-up tasks after significant work or incidents.
Why use it?
It keeps important lessons from being forgotten and helps the team avoid repeating the same problems.

Skill for Claude CodeCodex

Part of the handoff plugin — 15 skills, 3 hooks shipped together

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/abdurrafay2004/handoff/learn
Any agent
npx skills add AbdurRafay2004/handoff --skill learn
Clone the repo
git clone --depth 1 https://github.com/AbdurRafay2004/handoff

Made for: Claude Code, Codex.

Or install handoff, the plugin that ships this one along with the rest of its 15 skills, 3 hooks.

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 learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdurrafay2004/handoff/learn.svg)](https://agentmods.dev/skills/abdurrafay2004/handoff/learn)
Your own site
<a href="https://agentmods.dev/skills/abdurrafay2004/handoff/learn"><img src="https://agentmods.dev/badge/skills/abdurrafay2004/handoff/learn.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,746 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.00066 $0.01746
Opus 5 $0.00033 $0.00873
Sonnet 5 $0.00013 $0.00349
Haiku 4.5 $0.00007 $0.00175

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

Security

Grade A, and why

learn 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 4d 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/learn/SKILL.md · 148 lines

How it starts

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

Learn

Part of the Learn phase — see the workflow skill for tiers and sequencing.

Work that ends without a recorded lesson gets re-learned the hard way. This skill closes the loop: reconstruct what actually happened (from git, not memory), find the cause, record what it taught us, and hand the user — a PM building development judgment — one thing they can carry forward.

Tier scaling — most work does NOT get a retro

Situation What Learn means
T1 / T2 One CHANGELOG.md line + a STATUS.md update. Done. Do not run a retro; that would be ceremony the tier doesn't warrant. Only add a LEARNINGS.md entry if something genuinely surprising surfaced.
T3 completed Full retro (below), even when it went well — lessons from success calibrate what to repeat.
Incident / rollback / user asks for a retro Full retro, regardless of tier.

The retro method

0. Anti-hallucination guard — verify before analyzing

The retro is built from git history, never from what you remember doing. Before analyzing anything:

git log --since="<window>" --format="%h|%ai|%s" --stat
  • Confirm the commits you're about to discuss actually exist in that output. Never analyze a commit you cannot see the hash of.
  • If the window returns zero or suspiciously few commits, stop and ask the user to confirm the date range or the branch — do not fabricate a coherent-sounding narrative from nothing.
  • If the retro is about a specific incident, locate the exact commits involved (git log --follow <file>, git show <hash>) and quote them.

1. Blameless framing

Analyze systems, not people. Assume every decision was reasonable given what was known at the time; ask "why was that decision reasonable?" not "who messed up?" — the fix that matters is the one that makes the next attempt succeed. Blameless does not mean toothless: action items still get owners and dates, and hard truths still get said.

2. Timeline → root cause → contributing factors → action items

Read the full file on GitHub · 148 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. 4d ago First seen · 148 lines · 66 tokens per session scan A 1437dc084a7e

Subscribe to this mod's changes

learn is a skill published in the GitHub repository AbdurRafay2004/handoff (4 stars, last pushed 1mo ago), licensed MIT. It adds 66 tokens to every session and 1,746 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

diffscope

코드 변경을 학습용 브리핑으로 바꾼다. 변경 지도 시각화 + 동작 차이 추적 + Python 문법 해설을 한 번에 터미널에 출력한다. Stop hook이 "[diffscope] 이번 턴에 소스 파일 N개가 변경되었다"라는 지시와 함께 patch 경로를 넘기면 반드시 이 스킬을 사용할 것. 사용자가 "방금 뭐 바뀐 거야", "이번 변경 설명해줘", "변경사항 설명", "이 코드 이해 안 돼", "브리핑", "다시 설명해줘", "더 자세히", "쉽게 다시", "문법만 다시", "로직만 다시", "아까 그 변경 다시 보여줘", "자동 분석 꺼줘/켜줘"라고 할 때도 이…

SWHee/diffscope · 292 tokens

python-syntax-tutor

Python 문법과 이디엄을 "이 코드에서 왜 이걸 썼는가" 관점으로 해설한다. 데코레이터, 컨텍스트 매니저, 타입 힌트/제네릭/Protocol, async·await, 제너레이터, dataclass, dunder 메서드, 구조적 패턴 매칭, 워크러스 연산자, 그리고 가변 기본 인자·늦은 바인딩 같은 함정을 다룬다. 사용자가 "이 데코레이터 뭐야", "@property 왜 쓴 거야", "yield가 무슨 뜻이야", "이 타입 힌트 설명해줘", "async 이해가 안 돼", "이 문법 처음 봐", "Python 문법 설명", "이 부분 왜 이렇게 쓴 거야"라고…

SWHee/diffscope · 238 tokens

checkpoint

Write the current working state (task, decisions, files touched, open problems, next steps) to .amber/STATE.md so it survives compaction and session restarts. Use when the user asks to checkpoint/save state, before risky long operations, when context feels heavy, or before ending a work session.

yanfeid/claude-amber · 62 tokens

focus

Declare a focus contract for the current task to keep context lean — scopes which files/dirs are in play, bans out-of-scope exploration, and routes broad searches to subagents. Use when starting a task, when the user says "focus on X", or when the session is drifting across unrelated parts of the codebase.

yanfeid/claude-amber · 66 tokens

diet

Audit what is eating the context window in this project (CLAUDE.md size, MCP servers, rules that should be skills) and produce a concrete slimming plan with estimated token savings. Use when the user complains about context filling up fast, frequent compaction, or asks to optimize/reduce context usage.

yanfeid/claude-amber · 61 tokens

resume

Reload saved working state from .amber/ (STATE.md, FOCUS.md, checkpoint.md) and continue the previous task. Use when the user says resume/continue where we left off, or at the start of a session in a project that has an .amber directory.

yanfeid/claude-amber · 55 tokens