cast-learn

cast-learn is a skill for Claude Code from codecast-sh/codecast. It costs 81 tokens per session (513 once invoked), scanned A, original, MIT.

A session review that turns corrections, decisions, and codebase discoveries into lasting team guidance. It puts general rules in repository instructions and records other knowledge separately.

In plain words
What is it for?
Use it at the end of a session to capture reusable rules, design decisions, and environment or codebase gotchas.
Why use it?
Important lessons often stay in one conversation and are repeated by the next coding session. This gives future work a place to find them.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it at the end of a session to capture reusable rules, design decisions, and environment or codebase gotchas.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codecast-sh/codecast/cast-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 codecast-sh/codecast --skill cast-learn
Clone the repo
git clone --depth 1 https://github.com/codecast-sh/codecast

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/codecast-sh/codecast/cast-learn"><img src="https://agentmods.dev/badge/skills/codecast-sh/codecast/cast-learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 513 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.00081 $0.00513
Opus 5.5 $0.00032 $0.00205
Sonnet 5.5 $0.00016 $0.00103
Haiku 4.5 $0.00008 $0.00051

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

Security

Grade A, and why

cast-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.

packages/cli/skills/cast-learn/SKILL.md · 46 lines

What it actually says

A correction that lives only in this transcript is made again by the next session. This moves it to where the next session looks first.

Harvest

Read back through this session for three kinds of learning:

  • Corrections: moments the human said no, stop, not like that, or redirected the approach. Each is a rule the next session should already know.
  • Decisions: a choice between approaches with a reason, whether the human made it or you did and they accepted it.
  • Gotchas: a fact about this codebase or environment that cost time to find and is not written anywhere: a flag that must be set, a test that needs a service, a file that two systems own.

Skip anything derivable from the code or the git history, and anything that was true only for this task.

Route each one

  • A rule that applies to every session in this repository goes into the project's agent instructions (CLAUDE.md or AGENTS.md) under the section that fits, in one or two sentences. Read the file first; edit an existing rule when one is close, never add a duplicate.
  • A decision: cast decisions add "<title>" --reason "<why>" --tags <area>.
  • A gotcha that needs more than two sentences: cast doc create "<title>" -t insight -c - with the body on stdin, and one line in the instructions pointing at it.
  • A rule about how the human wants to be worked with, not about the code, goes into memory rather than the shared instructions.

With scan, list the candidates and the route for each without writing. With write or no argument, write them and report what went where.

Keep the file short

Instruction files lose adherence as they grow. When an addition would push the file past a couple of hundred lines, tighten what is there before adding to it, and prefer a pointer to a doc over a paragraph.

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 · 46 lines · 81 tokens per session scan A abad9d0bbef6

Subscribe to this mod's changes

cast-learn is a skill published in the GitHub repository codecast-sh/codecast (40 stars, last pushed today), licensed MIT. It adds 81 tokens to every session and 513 once invoked, about $0.0003 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-15.