/learning-ebook-writer:learn-codebasefrom learning-ebook-writer
Turns an unfamiliar codebase into an onboarding book covering architecture, data flow, and design decisions by reading real code rather than external sources.
Ships in learning-ebook-writer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill turns a codebase into and onboarding document. It shares its book format, writing style, and unslop pass with learn-topic. What's different is Step 1: no web research and every claim has to be checked against real files.
This step replaces learn-topic's web-research step. Do these roughly in order:
Title Page / What This Book Covers (and what codebase and version it maps to)
Table of Contents
PART I: Orientation
Ch 1: What this does (product-level, plain language, no jargon yet)
Ch 2: How it's organized (directory tour, tech stack, how to run it locally)
Ch 3: How a request or job moves through it (the one flow you traced in Step 1, start to finish)
PART II: Architecture deep dive
One chapter per load-bearing abstraction found in Step 1, each following the
chapter pattern below, with the "small example" always being a real excerpt
from the code, cited by file path
PART III: Working in this codebase
Conventions, testing approach, common pitfalls and footguns, and "if you needed
to add X, here's where it would go and what it would touch"
Glossary (every jargon term, defined in plain language)
Sources (the real files, docs, and commit and PR history you consulted;
no external links unless the codebase's own docs point to them)
Chapter-level pattern (same DNA as learn-topic, adapted):
Whenever the codebase leans on a broader, transferable idea (dependency injection, event sourcing, a specific design pattern, a consistency or caching model, a build system's core mechanism, a particular concurrency approach), stop and explain the general concept in depth in its own boxed section, then show precisely how this codebase implements it. This is what turns "here's what the code does" into "you now understand this whole class of system," which is the goal of onboarding someone well.
Rule of thumb: if the concept would help the reader understand a different codebase that used the same pattern, it earns a deep-dive. If it's purely this-codebase trivia, a short note is enough.
Same rules as learn-topic: plain language always, define jargon the moment it's introduced, analogies over abstraction, second person and direct, assume nothing but condescend never, short paragraphs around hard ideas. The one addition specific to this skill: never invent a plausible-sounding code example. If you need an example and can't find a clean real one, either simplify by trimming an existing real snippet (clearly marked as trimmed) or describe the behavior in prose instead of faking code.
Same as learn-topic: before final assembly, run every chapter through the unslop skill if it's available in your environment (it ships alongside this one at skills/unslop/SKILL.md in this repo, or install standalone via npx skills add https://github.com/cursor/plugins --skill unslop). If it isn't available, reread each chapter for AI writing tells (significance inflation, stock AI vocabulary, em dashes, chatbot filler, hedge-on-hedge phrasing) and fix them by hand.
Same default as learn-topic: a single self-contained HTML file, styled and structured like mdBook. That means a fixed sidebar table of contents (Parts, Chapters, Glossary, Sources), one chapter shown at a time, prev/next links at the bottom of each chapter, clean typography, a distinct visual treatment for the concept deep-dive and "where this bites people" boxes, and all CSS and JS inline so it works offline with no external dependencies.
One addition specific to this skill: every code excerpt block should visibly show its source file path (e.g. as a small caption above or below the block) so the reader can find it in their own editor.
Fallback. If the tool you're running in truly cannot output an HTML file, fall back to a single flowing Markdown document with the same structure.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/learn-topicWrite a complete, researched "teach me from zero" ebook on any topic, in the style of technical books like *The Rust Programming Language*. Friendly, progressive, concept-first, and never condescending. Use this whenever the user asks to "make an ebook to learn X," "write a book that teaches me X from scratch," "explain X like the official docs don't," or wants a long-form, structured, plain-language learning resource instead of a quick chat answer. Especially valuable for topics with bad or scattered official documentation, or topics that mix a specific tool with deeper underlying concepts (a framework built on a language, a library built on math or CS or ML ideas, and so on). Trigger even if the user just says "help me really learn X" or "I want a guide, not a cheat sheet."/unslopCut AI tells from any writing. Must always apply.Other plugins' skills for the same job
npx claudepluginhub corasan/learning-ebook-writer --plugin learning-ebook-writer