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.
npx skills add codecast-sh/codecast --skill cast-lessonsgit clone --depth 1 https://github.com/codecast-sh/codecastWrote 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.
[](https://agentmods.dev/skills/codecast-sh/codecast/cast-lessons)<a href="https://agentmods.dev/skills/codecast-sh/codecast/cast-lessons"><img src="https://agentmods.dev/badge/skills/codecast-sh/codecast/cast-lessons/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.
<a href="https://agentmods.dev/skills/codecast-sh/codecast/cast-lessons"><img src="https://agentmods.dev/badge/skills/codecast-sh/codecast/cast-lessons.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00085 | $0.01261 |
| Opus 5.5 | $0.00034 | $0.00504 |
| Sonnet 5.5 | $0.00017 | $0.00252 |
| Haiku 4.5 | $0.00009 | $0.00126 |
Grade A, and why
cast-lessons 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Every session captures its own corrections at best. Nobody reads the corrections across the team, so the same one is made in ten threads.
Lessons belong to a project (docs/architecture/line-profile.md LP5). Run from
the root of the repository whose lessons you are mining, and read its profile
first with cast flow profile --json: its project is where the signals go,
and its principles are the project's own files, which new principles are
written into. The clusters are matched against those files and the shared set
together; cast goals --json returns both as one text (principles). A
repository without a profile is mined the same way against the shared set
alone, and its signals carry no project.
Find the corrections
cast search "don't|do not|never|stop|wrong|not like that|instead|revert" -s <window> -n 50
cast search "why did you|I said|again" -s <window> -n 30
The first line's words are REDIRECT_WORDS in packages/shared/contracts/redirectWords.ts, the same words the session insight keeps when it samples a long session.
When mining one project, keep the search to its sessions (add
repo:<name> to the query). For each hit, cast read <id> <line> with a few messages of context to see
what the agent did and what the human wanted instead. Keep the ones where a
human corrected an agent; drop agent to agent messages and corrections that
were about a one time misunderstanding.
Cluster
Group by the rule that would have prevented them, not by the words used. Three sessions told to stop rewriting files they did not own are one rule. For each cluster: the rule in one sentence, how many sessions hit it, the short ids, and whether the repository's instructions already say it (read them; a rule that is written and still ignored is a different problem than one that is missing).
Then match each cluster against the shared set and the project's principles files. A cluster is that principle when the principle, as written, would have prevented every correction in it; one that only shares a topic is not. A match is a repeat of a rule the team already holds, and its count belongs to that principle. A cluster with no match, seen in two or more sessions, is a candidate principle: write it as the file writes them (the principle, why it matters, the evidence) under the next free id in its area, in that file's own id scheme, so a project's ids keep its prefix.
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.
- 12d ago Changed · +12 lines 6421f3b9fe6a
- 1mo ago Changed c6c32b387a43
- 1mo ago Changed 307dcc4c5e2c
- 1mo ago Changed · +2 lines 9d09301cf409
- 1mo ago Changed · +11 lines dee8b38b3d55
- 1mo ago Changed · +15 lines 61e26e3008a4
- 1mo ago Changed · +21 lines 512d5cb17950
- 2mo ago First seen · 45 lines · 85 tokens per session scan A 0a7b06647136
cast-lessons is a skill published in the GitHub repository codecast-sh/codecast (52 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 1,261 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.
cast-lessons compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cast-lessonscodecast-sh/codecast | Skill | 52 | today | MIT | A | 85 | Claude Code |
| adk-go-self-reviewgoogle/adk-go | Skill | 9.0k | 2d ago | Apache-2.0 | A | 87 | Claude Code, Codex |
| grocery-pricesgoogle/adk-go | Skill | 9.0k | 2d ago | Apache-2.0 | A | 16 | Claude Code, Codex |
| honey-pxGreen-PT/honey-for-devs | Skill | 368 | 5d ago | MIT | A | 18 | Claude Code |
| to-prhelderberto/agent-skills | Skill | 21 | 2d ago | MIT | A | 25 | Claude Code |
| debatehelderberto/agent-skills | Skill | 21 | 2d ago | MIT | A | 28 | Claude Code |
| feedbackhelderberto/agent-skills | Skill | 21 | 2d ago | MIT | A | 75 | Claude Code |