megg-learn

megg-learn is a skill for Claude Code from ToruAI/toru-claude-agents. It costs 22 tokens per session (275 once invoked), scanned A, original, MIT.

A command for saving project facts, decisions, reusable patterns, and pitfalls to shared AI memory.

In plain words
What is it for?
Recording concise learnings with categories such as decisions, patterns, gotchas, and context.
Why use it?
It lets future sessions recall important project knowledge without repeating the explanation.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the toru-claude-agents plugin — 15 skills, 7 agents, 1 MCP server shipped together

Good fit Recording concise learnings with categories such as decisions, patterns, gotchas, and context.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/toruai/toru-claude-agents/megg-learn
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 ToruAI/toru-claude-agents --skill megg-learn
Clone the repo
git clone --depth 1 https://github.com/ToruAI/toru-claude-agents

Made for: Claude Code.

Or install toru-claude-agents, the plugin that ships this one along with the rest of its 15 skills, 7 agents, 1 MCP server.

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 megg-learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/toruai/toru-claude-agents/megg-learn/github.svg)](https://agentmods.dev/skills/toruai/toru-claude-agents/megg-learn)
Your own site
<a href="https://agentmods.dev/skills/toruai/toru-claude-agents/megg-learn"><img src="https://agentmods.dev/badge/skills/toruai/toru-claude-agents/megg-learn/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 megg-learn

Your own site · 80×15
<a href="https://agentmods.dev/skills/toruai/toru-claude-agents/megg-learn"><img src="https://agentmods.dev/badge/skills/toruai/toru-claude-agents/megg-learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 275 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.00022 $0.00275
Opus 5.5 $0.00009 $0.00110
Sonnet 5.5 $0.00004 $0.00055
Haiku 4.5 $0.00002 $0.00028

Measured 1mo ago against content hash 0e178d13d975, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

megg-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 1mo 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/megg-learn/SKILL.md · 39 lines

What it actually says

Capture Learning

User wants to save something to megg knowledge.

Process

  1. If argument provided, use it as the learning content
  2. If no argument, ask: "What should we capture?"
  3. Determine the appropriate entry type:
    • decision: Architectural or design choice made
    • pattern: How we do things here (reusable approach)
    • gotcha: Trap to avoid, something that caught us
    • context: Background info, not actionable
  4. Extract or ask for relevant topics (tags for categorization)
  5. Use the mcp__megg__learn tool to save

Example

User: /megg-learn always use absolute paths in hooks

→ Capture as pattern with topics like hooks, paths

Important

  • Keep entries concise and actionable
  • Topics should be 1-3 words each
  • Title should be short (5-10 words max)
  • Content can include examples or context
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. 1mo ago First seen · 39 lines · 22 tokens per session scan A 0e178d13d975

Subscribe to this mod's changes

megg-learn is a skill published in the GitHub repository ToruAI/toru-claude-agents (15 stars, last pushed 3mo ago), licensed MIT. It adds 22 tokens to every session and 275 once invoked, about $0.0001 per session on Opus 5.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

principle-guard-the-context-window

Apply when context is filling up: large outputs, long files, repeated reads, fan-out planning. Route bulk to subagents; keep summaries in the main thread, not raw payloads.

michael-denyer/pstack-claude · 46 tokens

session-handoff

Create consistent session handoff documents for context transfer between sessions. Use when closing a session, reaching 75% token consumption, or when user requests handoff. Ensures proper YAML headers for metrics collection, LF line endings, and complete documentation of progress, decisions, and next steps.

QBall-Inc/the-bulwark · 61 tokens

domain-extract

Extract domain knowledge from existing project sources and generate domain rules. Also handles vault sync and domain listing.

luiseiman/dotforge · 24 tokens

capture-practice

Captures an insight or practice discovered during work and registers it in the dotforge practices/inbox.

luiseiman/dotforge · 24 tokens

update

Integrate external info (research, status changes, reference material, deliverables) into the ops repo's knowledge base. Drop files in .update/ or pass content inline.

OdinMB/ops-workflow · 37 tokens

harden-memories

Audit the bd remember store and recommend which entries to prune, so each one earns its per-session bd prime injection cost. Read-only: it proposes a triage table plus the exact bd forget / migration commands; you run them. Use when bd remember entries have accumulated, feel stale, redundant, or conflicting, or when…

voxpelli/claude-beads · 185 tokens