learning-loop

learning-loop is a skill for Claude Code, Codex from wan-huiyan/agent-traffic-control. It costs 20 tokens per session (539 once invoked), scanned A, original, MIT.

A procedure for turning a significant failure, user correction, or conflicting result into a tested improvement to a workflow or its guidance.

In plain words
What is it for?
It reviews what happened, reproduces or qualifies the cause, makes the smallest useful change, and places that change in the appropriate code, data, measurement, decision, skill, or memory.
Why use it?
It prevents lessons from becoming vague notes by separating evidence from guesses and checking that a correction fixes the failure without breaking valid cases.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the agent-traffic-control plugin — 124 skills shipped together

Good fit It reviews what happened, reproduces or qualifies the cause, makes the smallest useful change, and places that change in the appropriate code, data, measurement, decision, skill, or memory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/learning-loop
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 wan-huiyan/agent-traffic-control --skill learning-loop
Clone the repo
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control

Made for: Claude Code, Codex.

Or install agent-traffic-control, the plugin that ships this one along with the rest of its 124 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/learning-loop/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/learning-loop)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/learning-loop"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/learning-loop/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 learning-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/learning-loop"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/learning-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 539 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.00020 $0.00539
Opus 5.5 $0.00008 $0.00216
Sonnet 5.5 $0.00004 $0.00108
Haiku 4.5 $0.00002 $0.00054

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

Security

Grade A, and why

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

plugins/agent-traffic-control/skills/learning-loop/SKILL.md · 25 lines

How it starts

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

Learning Loop

Improve a decision process after a material failure, user correction or contradictory result. Use across coding, research, design and operations; an ordinary successful task or a spelling fix does not require a retrospective. The outcome can be a narrower rule, a test, a corrected measurement, or retirement of unhelpful guidance.

Learn from evidence

Read the correction procedure for a substantive correction. Preserve what happened and the exact artifact versions. Separate the observed discrepancy from its proposed cause. Reproduce or qualify that cause, find the smallest useful correction, and check both the failure and a legitimate case the correction must still allow. A tabletop review is not a measured improvement in real performance.

Put the correction where it belongs: code, data, measurement, a project decision, a skill or memory. Search existing guidance first. Keep one canonical explanation and update its retrieval descriptions and pointers; keywords appearing in a store do not prove the correction changed behavior. Preserve superseded evidence privately instead of erasing the history.

Apply supported changes within the current task's authorization. The request to improve a workflow can already authorize its local edits; do not repeatedly ask for that same permission. This skill does not authorize unrelated memory edits, changing an owner's policy, publishing future releases, or scheduled background work.

Distinguish a user's policy choice from a claimed empirical result. A user can choose a conservative restriction despite limited evidence; record its scope as a decision, without pretending one incident proves a universal mechanism. Explain the tradeoff if useful, but do not use this skill as a veto over an explicit, permissible instruction. An authorized publication still needs appropriate handling of private material; evidence uncertainty alone does not cancel publication authority.

Close the event

Read the full file on GitHub · 25 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 25 lines · 20 tokens per session scan A eea2f0208b3b

Subscribe to this mod's changes

learning-loop is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 539 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-09-13.

Related

Other skills, from other repositories

gan-zhong-xue

A learning workflow that makes an AI explain code changes through questions, evidence, and underlying principles. It is designed to help developers understand work they asked an AI to do, rather than merely accept the result.

ly8427/gan-zhong-xue · 288 tokens

help

Explain the agentic-study-environment plugin — what it does, the lifecycle skills it ships, the domain overlays, the session types, and the key conventions — or a specific one of those if the user names it. Use this skill whenever the user asks for help with the study harness itself rather than asking to study…

TimboGP/timbogp-marketplace · 0 tokens

accessibility-audit

This skill should be used when evaluating a design, page, or component against accessibility standards and producing a severity-scored report. Trigger phrases include "audit accessibility", "check a11y", "is this accessible", "WCAG audit", "check color contrast", and "accessibility review before handoff". Use it to…

TimboGP/timbogp-marketplace · 107 tokens

design-tokens

This skill should be used when a user wants to scaffold or refactor a design token system — e.g. "set up design tokens", "create a design system foundation", "extract these hardcoded colors into tokens", "add a type scale", "theming setup", or "dark mode tokens". It produces a single source of truth for color, type…

TimboGP/timbogp-marketplace · 98 tokens

explain

Explain what a piece of code does — a specific file, class, or method in close detail, or a user-facing flow as a concise system overview. What it does and why, not whether it's good.

thoughtbot/rails-consultant · 45 tokens

retro

Facilitate a structured sprint retrospective — what went well, what didn't, and prioritized action items with owners and deadlines. Use when running a retrospective, reflecting on a sprint, creating action items from team feedback, or learning how to run effective retros.

VandanaAjayDubey111/great-pm · 52 tokens