worked-example-walkthrough
БесплатноБез исполняемых скриптовНе проверенProduces step-by-step computational walkthroughs of vector and matrix operations as a sequence of numbered "frames", showing the explicit state at each step…
от lyndonkl★ 208 звёзд на GitHubОб этом скилле
Worked Example Walkthrough
Table of Contents
A walkthrough is a sequence of numbered frames showing the state of a computation at each step. Each frame answers three questions: what's the current state?, what operation produced it?, and what should the learner notice?
This is the closest pure text gets to a 3Blue1Brown animation. The learner can re-trace the operation by hand, and the explicit intermediate states catch confusions that a final-result-only treatment hides.
Quick example (Eigenvalues of a 2×2 matrix):
Compute the eigenvalues of A = [[4, 1], [2, 3]].
Frame 1. State: A = [[4, 1], [2, 3]]. We want λ such that det(A − λI) = 0.
Frame 2. Form A − λI:
A - λI = [[4-λ, 1 ], [ 2, 3-λ]]Frame 3. Compute the determinant: det = (4 − λ)(3 − λ) − 1·2 = (12 − 7λ + λ²) − 2 = λ² − 7λ + 10
Frame 4. Solve λ² − 7λ + 10 = 0: Factor: (λ − 5)(λ − 2) = 0. So λ = 5 or λ = 2.
Frame 5. Eigenvalues: 5 and 2. Quick sanity check: trace(A) = 4 + 3 = 7 = sum of eigenvalues ✓; det(A) = 12 − 2 = 10 = product of eigenvalues ✓.
What to notice: The characteristic polynomial is just det(A − λI) expanded; finding eigenvalues is just root-finding. No magic.
Five frames, ~80 words. The learner can redo this on paper in under a minute.
Workflow
Copy this checklist and track your progress:
Walkthrough Progress:
- [ ] Step 1: Pick the smallest possible example that exercises the concept
- [ ] Step 2: Write the goal — what we'll compute and why
- [ ] Step 3: Plan the frames (3-7 typically)
- [ ] Step 4: Write each frame: state, operation, notice
- [ ] Step 5: End with a sanity check or invitation to verify
- [ ] Step 6: Optional — invite the learner to redo with a variant
Step 1: Pick the smallest possible example that exercises the concept
The example must be small. 2×2 matrices, 3-vector inputs, 3-token sequences. Bigger examples obscure the structure with arithmetic.
The example must also exercise the concept — not just trivially demonstrate it. A diagonal matrix has trivial eigenvectors; pick a 2×2 that's not diagonal. A scalar attention is trivial; pick at least 3 tokens.
For a catalog of recommended example sizes per concept, see resources/examples.md.
Step 2: Write the goal — what we'll compute and why
Single sentence. "Compute the eigenvalues of A = [[4, 1], [2, 3]]." or "Apply attention to a 3-token sequence with random Q, K, V vectors." The goal frames everything that follows.
Step 3: Plan the frames (3-7 typically)
Each frame is one operation. Sketch the frames before writing them out — this catches the "skipped step" problem before it hits the page.
A frame budget that works for most operations:
- 3 frames: trivial chain (one transformation)
- 5 frames: typical single-concept walkthrough (eigenvalues, softmax, single SGD step)
- 7 frames: compound walkthrough (attention with all sub-steps shown)
If you find yourself wanting >7 frames, either the example is too big (shrink) or the operation has multiple sub-operations that each deserve their own walkthrough.
Step 4: Write each frame: state, operation, notice
Each frame has three parts (see Frame Anatomy):
- State: the current values, shown explicitly.
- Operation: what we just did to get here (or what we're about to do).
- Notice: one sentence pointing out something the learner might miss.
The "notice" is what distinguishes a walkthrough from a worked solution. A worked solution shows the steps; a walkthrough also says what to look at.
Step 5: End with a sanity check or invitation to verify
Every walkthrough ends with one of:
- A sanity check: "trace ✓, determinant ✓".
- A consistency check: "the result has the expected shape".
- An invitation: "try the same operation on A = [[1, 2], [3, 4]]; the answer should be λ ≈ −0.37 and λ ≈ 5.37."
The sanity check is what tells the learner the result is right. It also doubles as a reusable verification trick they can apply to similar problems.
Step 6 (optional): Invite the learner to redo with a variant
If the learner has time and the example is short, invite them to redo with a small change:
- "Same matrix, different starting vector: redo with v = (0, 1) instead of (1, 0)."
- "Same attention computation, but with one token's K replaced by zero: predict the change to the output before computing."
Variants check whether the picture transferred, not just the arithmetic.
Frame Anatomy
Each frame has three parts. Keep them visually distinct.
**Frame N.** [Operation: short verb phrase, what we're doing.]
[State: explicit values, in a code block if needed.]
[Notice: one sentence — what
Установить worked-example-walkthrough в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл worked-example-walkthrough?
Produces step-by-step computational walkthroughs of vector and matrix operations as a sequence of numbered "frames", showing the explicit state at each step. The text-equivalent of a 3Blue1Brown animation — each frame shows what changed and why, so the learner can re-trace the operation by hand. Use when the learner needs to *see* a computation unfold (eigenvalue computation, attention with 3 tokens, gradient descent step, SVD on a 2×2, layer norm on a 3-vector, softmax of a small input), when an explanation has been given but the learner needs to ground it in a worked example, or when introducing an operation that's intimidating in symbol form but trivial in pencil-and-paper form.
Как установить скилл worked-example-walkthrough?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл worked-example-walkthrough запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub