self-learning

self-learning is a skill for Claude Code, Codex from griddynamics/rosetta. It costs 46 tokens per session (425 once invoked), scanned A, original, Apache-2.0.

A development safety guide that tells the coding agent how to respond when work fails, results do not match expectations, or requirements become unclear.

In plain words
What is it for?
Use it to pause after errors, compare expected and actual results, state assumptions, consult shared agent notes, and capture general rules from what went wrong.
Why use it?
It prevents repeated guesses and unplanned changes after a problem. It helps find the underlying cause, record reusable lessons, and ask the user for direction when needed.

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/griddynamics/rosetta/self-learning
Any agent
npx skills add griddynamics/rosetta --skill self-learning
Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

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 self-learning

README.md
[![agentmods](https://agentmods.dev/badge/skills/griddynamics/rosetta/self-learning.svg)](https://agentmods.dev/skills/griddynamics/rosetta/self-learning)
Your own site
<a href="https://agentmods.dev/skills/griddynamics/rosetta/self-learning"><img src="https://agentmods.dev/badge/skills/griddynamics/rosetta/self-learning.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 425 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.00046 $0.00425
Opus 5 $0.00023 $0.00212
Sonnet 5 $0.00009 $0.00085
Haiku 4.5 $0.00005 $0.00042

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

Security

Grade A, and why

self-learning 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 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.

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.

instructions/r2/core/skills/self-learning/SKILL.md · 45 lines

What it actually says

<self_learning>

On failure or mismatch — also: user asks why something didn't work · 3+ errors in quick succession · retrying same approach without progress · drift from agreed plan/scope · large change without full understanding:

  1. STOP all changes immediately. NO "one more try".
  2. Identify root cause — not symptoms. Understand BEFORE replanning.
  3. Ask 1-3 clarifying questions if ambiguous.
  4. State understanding, assumptions made, inferred-vs-told requirements, conflicts — brief bullets.
  5. Wait for explicit user confirmation; let the user redirect.

Memory:

  1. Consult AGENT MEMORY.md during planning.
  2. Init if missing; prefer agent memory over task memory.
  3. Convert root causes into GENERALIZED, REUSABLE preventive rules — not incident-specific notes.
  4. Store in AGENT MEMORY.md concisely and organized.
  5. Record what worked and failed logically, architecturally, and technically.
  6. Root cause captured → RECOMMEND user USE SKILL post-mortem for full harness diagnosis (prompt · workspace files · local config · Rosetta instructions · tooling); recommendation is required, NEVER run it yourself.
  • Fixing the artifact instead of the harness that produced it.
  • Storing incident notes instead of generalizable rules.
  • "Let me try one more thing" — the opposite of stopping.
  • Proposing a new plan immediately — understand first.
  • Apologizing excessively instead of regrouping efficiently.
  • Auto-invoking post-mortem instead of recommending it to the user.

</self_learning>

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 · 45 lines · 46 tokens per session scan A 4e6215abc2fc

Subscribe to this mod's changes

self-learning is a skill published in the GitHub repository griddynamics/rosetta (342 stars, last pushed yesterday), licensed Apache-2.0. It adds 46 tokens to every session and 425 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.