aget-record-lesson

aget-record-lesson is a skill for Claude Code from aget-framework/template-advisor-aget. It costs 39 tokens per session (1,305 once invoked), scanned A, a copy of aget-record-lesson, Apache-2.0.

A command for saving lessons from work sessions as searchable files in a Git repository. It sorts each lesson into reusable guidance for agents or knowledge meant for the main project owner.

In plain words
What is it for?
Use it after feedback, mistakes, discoveries, or process improvements to record what happened and where the lesson should be stored.
Why use it?
Useful lessons can otherwise disappear when a session ends or the conversation context is lost. It keeps those lessons available for later work.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it after feedback, mistakes, discoveries, or process improvements to record what happened and where the lesson should be stored.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aget-framework/template-advisor-aget/aget-record-lesson
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 aget-framework/template-advisor-aget --skill aget-record-lesson
Clone the repo
git clone --depth 1 https://github.com/aget-framework/template-advisor-aget

Made for: Claude Code.

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 aget-record-lesson

README.md
[![agentmods](https://agentmods.dev/badge/skills/aget-framework/template-advisor-aget/aget-record-lesson/github.svg)](https://agentmods.dev/skills/aget-framework/template-advisor-aget/aget-record-lesson)
Your own site
<a href="https://agentmods.dev/skills/aget-framework/template-advisor-aget/aget-record-lesson"><img src="https://agentmods.dev/badge/skills/aget-framework/template-advisor-aget/aget-record-lesson/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 aget-record-lesson

Your own site · 80×15
<a href="https://agentmods.dev/skills/aget-framework/template-advisor-aget/aget-record-lesson"><img src="https://agentmods.dev/badge/skills/aget-framework/template-advisor-aget/aget-record-lesson.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,305 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 100% copy Near-identical to another mod 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.00039 $0.01305
Opus 5 $0.00019 $0.00652
Sonnet 5 $0.00008 $0.00261
Haiku 4.5 $0.00004 $0.00130

Measured 9d ago against content hash dee908c7f924, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

aget-record-lesson 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 9d 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.

Origin

This is a copy

100% identical to aget-record-lesson — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/aget-record-lesson/SKILL.md · 192 lines

How it starts

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

/aget-record-lesson

Record lessons learned as structured L-docs in the git repo. Each lesson is classified to determine storage location and ID scheme.

Purpose

Capture learnings in a persistent, searchable format that survives context windows and session boundaries. Enables knowledge accumulation across sessions.

Input

$ARGUMENTS - Optional lesson description or trigger context

Execution

Step 1: Gather Context

Identify what triggered the lesson:

  • Session observation
  • User feedback
  • Error encountered
  • Pattern discovered
  • Process improvement

Step 2: Classify the Lesson

Ask the user:

Classification Required

Would this lesson help another AGET (different principal, different domain)?

  • Framework → Reusable across AGETs → .aget/evolution/L###_*.md
  • Domain → Helps this principal → knowledge/patterns/*.md

Decision Tree:

Would this help another AGET?
├── YES → Framework → .aget/evolution/L###_{name}.md (gets L-number)
└── NO  → Would this help the principal without an AGET?
    ├── YES → Domain → knowledge/patterns/{category}/{name}.md
    └── UNCLEAR → Ask user to clarify

Step 3: Get Next ID (Framework only)

# Read next_id from index.json
jq '.next_id' .aget/evolution/index.json

Step 4: Create Lesson Document

Framework Template (.aget/evolution/L{ID}_{name}.md):

# L{ID}: {Title}

**Date**: {YYYY-MM-DD}
**Type**: Lesson Learned
**Category**: {category}
**Status**: complete

---

## Summary

{One paragraph summary of the lesson}

---

## Context

{What triggered this lesson? What were you doing?}

---

## Key Finding

{The core insight or learning}

---

## Implications

{What should change as a result?}

---

## Traceability

| Link | Reference |
|------|-----------|
| Session | {session file if applicable} |
| Project | {project plan if applicable} |
| Trigger | {what prompted this lesson} |

---

*L{ID}: {Title}*
*Category: {category}*

Domain Template (knowledge/patterns/{category}/{name}.md):

Read the full file on GitHub · 192 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. 9d ago First seen · 192 lines · 39 tokens per session scan A dee908c7f924

Subscribe to this mod's changes

aget-record-lesson is a skill published in the GitHub repository aget-framework/template-advisor-aget (2 stars, last pushed 10d ago), licensed Apache-2.0. It adds 39 tokens to every session and 1,305 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to aget-record-lesson, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

init

Turn on Rekal memory in the current repository by running rekal init. Use when the user asks to initialize or set up Rekal here, or when a rekal command reported the repository is not initialized. Once per repository. Do not offer this merely because a repo lacks a .rekal/ store — most repos do not want one.

rekal-dev/rekal-cli · 75 tokens

metagit-context-pack

Token-efficient workspace onboarding via tiered context packs — map, repo cards, session digest, objectives, approvals, repomix profiles. Use at session start or when scoping work in a metagit-managed workspace.

metagit-ai/metagit-cli · 48 tokens

unforgit-memory

Use Unforgit MCP tools as durable repository memory for decisions, conventions, gotchas, and playbooks.

MiguelMedeiros/unforgit · 27 tokens

loredex-sync

Commit local dex changes, pull teammates' notes, push yours — the team-sharing loop for a git-backed dex. Use when the user says "sync the dex", "push my notes", "pull the latest dex", or after finishing work another team should see.

ahmedtawfeeq1/loredex · 58 tokens

project-memory

GitHub-native persistence for project learnings, decisions, and patterns using issue labels and structured comments. Used when recording what worked, what failed, or architectural decisions that should persist across sessions.

maystudios/maxsimcli · 41 tokens

repo-hygiene

Use when the scheduled repo-hygiene workflow runs from GitHub Actions (or an operator dry-run) to scan the repository for small, certain docs/test/code hygiene issues and fix them as one batched branch.

QwenLM/qwen-code · 48 tokens