AGENT SKILL

cast-learn

Turn what this session learned into guidance the next session and the team will read. Extracts corrections the human made, decisions taken, and gotchas found; writes project guidance into the repository's agent instructions, records decisions where they are searchable, and files the rest as a doc. Use at the end of a piece of work, after a correction, or when asked to remember something.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 49
Forks
6

01 前言 Front Matter

name
cast-learn
description
Turn what this session learned into guidance the next session and the team will read. Extracts corrections the human made, decisions taken, and gotchas found; writes project guidance into the repository's agent instructions, records decisions where they are searchable, and files the rest as a doc. Use at the end of a piece of work, after a correction, or when asked to remember something.
argument-hint
[scan | write]

03 SKILL.md 正文

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 the whole team should follow in every repository, not just this one, goes into the team's kit as an instructions item: write it under its own heading in a file and publish it with cast cap publish --instructions <file>#<heading>. Every member's agents then read it. Extend an existing team item when one covers the topic; the installed ones are the team's sections in your own CLAUDE.md.
  • A rule about how the human wants to be worked with, not about the code, goes into memory rather than the shared instructions.
  • When the human's personal instruction file holds rules that belong to this repository or to the team, offer cast cap promote, which proposes each move and writes only what they accept.

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.

04 同仓库更多 Skills

codecast-sh
codecast-sh/codecast

something-else-entirely

A skill whose frontmatter name disagrees with its directory name.

★ 49
codecast-sh
codecast-sh/codecast

unknown-field

Carries a field that is in neither the spec's six nor Claude Code's list.

开发工程师
★ 49
codecast-sh
codecast-sh/codecast

remotion-best-practices

Best practices for Remotion - Video creation in React

前端开发图像与多媒体
★ 49
codecast-sh
codecast-sh/codecast

overlength

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

★ 49
codecast-sh
codecast-sh/codecast

no-frontmatter

暂无简介

★ 49
codecast-sh
codecast-sh/codecast

improve

Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on source code — never implements, fixes, or refactors anything itself. Use when asked to audit a codebase, find improvement opportunities (bugs, security, performance, test coverage, tech debt, migrations, DX), suggest features or where to take the project next (roadmap, product direction), or generate handoff plans for another agent to implement.

开发工程师产品经理Skill与智能体开发
★ 49