learn-from-session

learn-from-session is a skill for Claude Code, Codex from Erlemar/dswok. It costs 48 tokens per session (986 once invoked), scanned B, original, CC-BY-4.0.

A session-review tool that turns mistakes, near misses, review surprises, and escaped bugs into lasting changes to project safeguards.

In plain words
What is it for?
Use it after an incident has been contained, a bad handoff, incorrect edit, unsupported claim, permission overreach, or user-facing bug.
Why use it?
It helps prevent the same failure from recurring by improving rules, tests, checkers, templates, or monitoring.

Skill for Claude CodeCodex

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/erlemar/dswok/learn-from-session
Any agent
npx skills add Erlemar/dswok --skill learn-from-session
Clone the repo
git clone --depth 1 https://github.com/Erlemar/dswok

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 learn-from-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/erlemar/dswok/learn-from-session.svg)](https://agentmods.dev/skills/erlemar/dswok/learn-from-session)
Your own site
<a href="https://agentmods.dev/skills/erlemar/dswok/learn-from-session"><img src="https://agentmods.dev/badge/skills/erlemar/dswok/learn-from-session.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 986 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin unknown 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.00048 $0.00986
Opus 5 $0.00024 $0.00493
Sonnet 5 $0.00010 $0.00197
Haiku 4.5 $0.00005 $0.00099

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

Security

Grade B, and why

learn-from-session scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Commands that required manual approval (check if they could be added to `permissions.allow` in `~/.claude/settings.json`)
.claude/skills/learn-from-session/SKILL.md · 141 lines

The source is not reproduced here

Licensed CC-BY-4.0

The repository is licensed CC-BY-4.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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 · 141 lines · 48 tokens per session scan B db1b95e2b8ea

Subscribe to this mod's changes

learn-from-session is a skill published in the GitHub repository Erlemar/dswok (33 stars, last pushed 1mo ago), licensed CC-BY-4.0. It adds 48 tokens to every session and 986 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). 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

project-knowledge

Accumulated project memory: verified gotchas and prior findings for oh-my-posh work. Consult BEFORE touching shell integration scripts (zsh, pwsh, fish, bash, cmd/Clink), terminal or pty behavior, WSL-based shell testing, or internals (cache, segments, streaming, serve daemon). Read only the topic files relevant to…

JanDeDobbeleer/oh-my-posh · 81 tokens

wax

Swift framework guidance for Wax on-device memory/RAG. Use when writing Swift code with the public Memory facade, experimental PhotoMemory / VideoMemory, BuiltInMultimodalEmbeddings, embedding providers, retrieval modes, or hybrid search. For agent operators using the Wax MCP server tools, use the separate wax-mcp…

christopherkarani/Wax · 68 tokens

sessions

Search and ask questions about coding agent session history across Claude Code, Codex, and Cursor. Use when asking what was worked on, what was tried before, how a problem was investigated across sessions, what happened recently, or any question about past agent sessions. Also use when the user references prior…

slopus/happy · 78 tokens

perforatedai

Expert in PerforatedAI library for adding artificial dendrites to PyTorch neural networks. Triggers: 'Perforate my model' (start interactive setup), 'debug my perforated model' (debug/optimize existing integration), 'load my perforated model for inference' (deploy trained models). Also use when: debugging dendrite…

PerforatedAI/PerforatedAI · 115 tokens

perforatedai-distributed

Multi-GPU setup for PerforatedAI with DataParallel or DistributedDataParallel (DDP). Invoked automatically by the perforatedai skill when multi-GPU training is detected. Handles initialization workflow, checkpoint loading, rank 0 handling, and shell script generation for DDP.

PerforatedAI/PerforatedAI · 64 tokens

wax-performance-audit

Benchmarking and performance auditing for the Wax repo. Use when running or interpreting Wax benchmarks, diagnosing CPU, memory, or I/O bottlenecks, or investigating Swift 6.2 concurrency issues such as Sendable, actor isolation, @unchecked Sendable, task-group fan-out, and data races.

christopherkarani/Wax · 67 tokens