/learning-guide:analyzefrom learning-guide
Reads source artifacts (codebase, planning session, docs) and generates a tour-spec.json for interactive learning guides. Auto-detects archetype, discovers embedded sources and cross-references, then hands off to a renderer.
Ships in learning-guide. 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.
Read when SKILL.md points to them.
Read input artifact(s) and write a tour-spec.json that the renderer consumes. Hand off to learning-guide:render at the end.
<input-parent>/learning/..observations.md OR YAML frontmatter contains session_date: → planning-session.codebase.refactor-plan.generic.en. Always state the detected language and offer an override before drafting.references/archetype-<name>.md.artifacts: lists, sibling .md files). If none found AND archetype is codebase or generic, plan to synthesize tour-companion.md per references/synthesis-contract.md.TICKET- → https://tracker.example.com/browse/TICKET-{id}). Templates must start with http://, https://, or mailto: and contain {id} — the renderer rejects other schemes.references/cross-ref-design.md. Propose only token-shaped patterns; bare words are forbidden. Show the user the proposed list, get confirmation.tour-companion.md if planned in step 5. Use references/spec-authoring.md for body_md style.body_md.level >= 2 has a parent (the renderer rejects a spec that violates this — the JSON Schema only hints it for editors).anchor_format resolves to a heading in that source. Heading anchors are bare slugs with no section- prefix (see references/cross-ref-design.md).external_links template starts with an allowed scheme (http(s):// / mailto:) and contains {id}.answer_index is in [0, options.length-1].learning-guide:render with the spec path. No "shall I render?" gate — render is cheap and idempotent.If tour-spec.json already exists at the target path, ask:
"Existing spec found. Update it (preserve your edits), regenerate from scratch, or just re-render?"
sections[].body_md, sections[].quiz, final_quiz, glossary verbatim. Refresh embedded_sources, external_links, cross_ref_patterns only when input artifacts have changed since the spec's mtime. All other top-level fields refresh. Conflicts are surfaced as a numbered list before write.learning-guide:render; skip analyze entirely.references/archetype-codebase.md, references/archetype-planning-session.md, references/archetype-refactor-plan.md, references/archetype-generic.mdreferences/spec-authoring.md — body_md style and field rules.references/cross-ref-design.md — pattern shapes and slug algorithm.references/synthesis-contract.md — tour-companion.md skeleton.references/archetype-codebase.md (opens in a new tab)references/archetype-generic.md (opens in a new tab)references/archetype-planning-session.md (opens in a new tab)references/archetype-refactor-plan.md (opens in a new tab)references/cross-ref-design.md (opens in a new tab)references/spec-authoring.md (opens in a new tab)references/synthesis-contract.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dmitriyyukhanov/agent-plugins --plugin learning-guide3 skills in this plugin
/learning-guideUse when the user asks to "create a learning guide", "make an interactive tour", "generate onboarding doc", "build a learning module", or any variant of turning an artifact (codebase, planning session, refactor plan, design doc) into an interactive HTML guide. Dispatches to learning-guide:analyze for new tours or learning-guide:render for re-renders after spec edits. Also use when the user is uncertain which step they need./renderRenders an existing tour-spec.json to a single-file interactive HTML guide via the bundled Node renderer. Use when the user has hand-edited a tour-spec.json, when learning-guide:analyze hands off after drafting, or when the user explicitly asks to "render the tour", "regenerate the HTML", or "update the embedded sources". Idempotent for generated artifacts; preserves user-edited README and tour-spec.json.