/mattpocock-skills:lesson-iteration Topic, e.g. Go or PostgreSQL indexesfrom mattpocock-skills
Drafts, deepens, reviews, and integrates a comprehensive Russian-language lesson into Practice Map. Run with a topic argument.
Ships in mattpocock-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Prevents: unsolicited execution, language drift, imitation without structure, and invented repository assumptions.
Run only when explicitly invoked. Treat the argument as the lesson topic. Resolve ordinary ambiguity by choosing a useful scope and recording assumptions; do not stall for clarification.
This operating manual is English. Everything the learner receives must be Russian: planning summaries, lesson prose, task briefs, reviews, delivery notes, authored code comments, and example explanations. Keep industry terms such as mutex, goroutine, and deadlock in their native form; explain them in Russian rather than inventing calques. Preserve language syntax, identifiers, commands, URLs, and official names.
Read LESSON-TEMPLATE.md beside this file before planning. It is the structural source of truth. If repository-root fable-output.md exists, read it for depth, register, and explanatory technique—not for a mandatory Go-specific curriculum or fixed part count.
Inspect:
portfolio/projects/practice-map/lessons/;portfolio/projects/practice-map/web/curriculum.ts, its actual types, and neighboring cards;Use the supplied Practice Map schema as the expected contract; verify it against the checkout. Do not guess missing fields, commands, or renderer capabilities. If a genuine incompatibility prevents integration, finish the authoring work where possible and report the blocker without claiming completion.
The lesson document is the source of truth. Never improve only the migrated copy.
Prevents: prose-first execution, skipped reviews, and premature “done.”
Execute these gates in order:
Maintain an inspectable work record in Russian: the plan, coverage ledger, audit findings, and validation results. Use the workspace's established task-log/scratch convention, or a clearly designated non-published working artifact. Record decisions and evidence, not private reasoning. Do not put these artifacts into the published essay or curriculum.
Do not seek approval between gates. A failed gate requires repair, not a disclaimer followed by publication. If work is interrupted, preserve the draft and the next unresolved gate; label the result incomplete.
Prevents: shallow scope, missing dependencies, arbitrary examples, and programming-only adaptations.
Before writing lesson prose, record:
## headings, with final consecutive part numbers and planned ### N.M. subsections.part | why-questions | prerequisite | mechanism and internal representation | rule → consequence | demonstration | bad/good trap | mental model and its limit | exercise.Each progressive part needs at least one substantial mechanism explanation, one causal “Почему это важно” passage, and one diagnosed bad/good comparison. Plan at least three distinct reusable mental models across the lesson; introduce them where useful and consolidate them at the end.
For a narrow topic, teach its prerequisites only as far as its mechanisms require; do not silently expand “PostgreSQL indexes” into all of PostgreSQL.
Adapt the curriculum, not the skeleton:
For networking, databases, design, or non-programming subjects, use inspectable artifacts, protocols, measurements, or before/after decisions where source code would be artificial. Keep the same explanatory burden.
Prevents: outlines presented as lessons, API catalogues, invented authority, and unsafe demonstrations.
Draft the entire essay using LESSON-TEMPLATE.md. Keep the working draft outside the numbered final lesson path until both authoring audits pass.
Write a comprehensive essay: target 6,000–12,000 Russian prose words, with a floor of 5,000 excluding code, URLs, and template instructions. Length is a backstop, not proof of depth. Every planned part must be substantive; never meet the floor by padding some parts while reducing others to summaries.
For every taught mechanism, expose its components/state, the sequence of operations, the governing invariant or constraint, and observable consequences. Explain why a rule exists before asking the reader to memorize it.
Examples must be real, idiomatic, and reproducible:
Verify historical claims, version-dependent behavior, quotations, and concrete numbers against authoritative sources where tools permit. State architecture, units, version, and conditions where they affect a number. Mark estimates as estimates; do not fabricate benchmark results. If verification is unavailable, narrow the claim or flag the uncertainty in the work record and lesson where relevant.
Practitioner callouts should express usable judgment. Do not invent quotations or attribute your own maxim to a famous person.
Prevents: fluent but shallow prose, unexplained rules, decorative traps, and slogan-only mental models.
Audit the actual draft against every coverage-ledger row. Record a location and verdict for each item:
Repair every failure in the source draft. Re-run failed checks and affected ledger rows. Do not use a high word count to waive a depth failure.
Prevents: invocation-to-invocation drift, tutorial-speak, missing closing material, and unresolved scaffolding.
Review the draft skeptically against the complete template:
Record pass/fail evidence and repair failures. If consistency repair changes explanations or examples, repeat the affected depth checks before proceeding.
Prevents: source/curriculum divergence, overwritten lessons, lossy migration, invalid TypeScript, and unsupported success claims.
Scan filenames matching NNN-<topic>.md in
portfolio/projects/practice-map/lessons/. Allocate the highest existing three-digit number plus one; use 001 when empty. Choose a short stable lowercase ASCII topic slug.
Write the approved essay as <NNN>-<topic>.md. Recheck availability before writing; never overwrite another lesson or user change. If 999 is exhausted, report the numbering blocker rather than inventing a new convention. A resumed run retains its already allocated lesson path.
Use the real card schema and stable IDs. Update the exact matching topic card; otherwise add a card/area using existing repository conventions. Preserve unrelated content, short lessons, exercises, and references unless an intentional source-backed change is needed. Do not broaden the data model or redesign the reader as a shortcut.
Do not author concepts: the field is schema-only and lesson cards never display it — write "concepts": [].
The expected target is DeepLesson = { sections: readonly LessonSection[] }.
A LessonSection has required heading: string | null and optional paragraphs, blocks, and examples.
Allowed block shapes:
p: text;list: optional ordered, plus items;callout: variant: "key" | "warning", optional title, plus text.Each example requires title, code, and explanation. These are strings. Do not add unsupported table, diagram, code-block, or subsection fields.
Apply this conversion:
## heading, in source order, including the closing heading. The essay's # title is not an extra section. Use actual headings; the number of parts is not fixed at 17.### N.M. heading into a bold lead-in paragraph inside its section.blocks for ordered prose, lists, and callouts. Do not duplicate the same prose in paragraphs.**bold**, *italic*, and backtick code inside text; do not substitute HTML or escape away the markup.key callouts. Use warning for genuine hazards, not ordinary emphasis.examples entry: a concise Russian title, verbatim content without fences, and a one-sentence Russian explanation of what to notice. Do not join bad/good examples into an untraceable blob.Inspect how the reader orders blocks and examples. The schema cannot represent arbitrary code/prose interleaving. Preserve order within each collection and add concise Russian references to example titles where necessary; remove ambiguous “above/below” references in favor of explicit names. Do not invent an ordering field or silently lose the connection between explanation and example.
Escape TypeScript strings correctly. With template literals, escape backslashes, backticks, and ${ so the runtime string exactly reproduces the intended content. A safe string serializer is also acceptable. Code must be verbatim at runtime, not merely look similar in the TS source.
Keep a migration ledger mapping every heading, paragraph, list/table row, callout, and code/diagram block to its target location. Audit for omissions, duplication, and changed meaning. Any substantive correction belongs in the Markdown source first, followed by remigration.
## headings.satisfies DeepLesson pattern; no any, unsafe casts, or weakened types to hide mismatches.Fix introduced failures and repeat affected checks. Distinguish pre-existing failures, missing test infrastructure, and environmental blockers from passes. Never claim a command ran when it did not.
Prevents: invisible partial completion, unverifiable validation, and unauthorized publication.
Deliver a concise Russian note containing:
Only call the loop complete when all authoring gates pass, migration is complete, and required validation succeeds. Otherwise name the last completed gate and the remaining work.
Never commit or push unless separately asked.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (vasyapym/vasyapym.github.io) — no native marketplace selected
npx claudepluginhub p/vasyapym-mattpocock-skills50 skills in this plugin
/ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./brainstormInspect the full diff and surrounding architecture, then propose high-leverage improvements without editing files./bug-iterationFix a reported bug — especially one that has returned after a previous fix — by reproducing it, diagnosing the root cause rather than the symptom, gating every change behind a regression test, stating exactly what was and wasn't verified, and closing with a compact pass report.Other plugins' skills for the same job