aget: Skill for Claude Code

.claude/skills/aget-record-lesson/SKILL.md

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

A session tool that records lessons as searchable files in a Git repository, classifying each lesson as reusable across agents or specific to one project or person.

In plain words
What is it for?
Use it after feedback, errors, discoveries, or process improvements to save structured lessons in the appropriate knowledge location.
Why use it?
It preserves useful learning beyond a single conversation or context window, so it can be found and reused later.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is aget-framework/aget's own configuration. It tells Claude Code how to work on aget itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aget configures →

Reuse

Borrowing it

Nothing to install: this file belongs to aget-framework/aget. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/aget-framework/aget/main/.claude/skills/aget-record-lesson/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/aget-framework/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/aget/aget-record-lesson.svg)](https://agentmods.dev/skills/aget-framework/aget/aget-record-lesson)
Your own site
<a href="https://agentmods.dev/skills/aget-framework/aget/aget-record-lesson"><img src="https://agentmods.dev/badge/skills/aget-framework/aget/aget-record-lesson.svg" alt="Measured on agentmods" 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 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.00039 $0.01305
Opus 5 $0.00019 $0.00652
Sonnet 5 $0.00008 $0.00261
Haiku 4.5 $0.00004 $0.00130

Measured 7d ago against content hash dee908c7f924, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, 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 7d 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

Copies of this mod

1 near-identical copy found in the catalogue:

.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. 7d 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/aget (11 stars, last pushed yesterday), 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. 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