Skip to content
Skills Library
Education · Learning & explanation

learn

/learn

Generate a layered HTML learning explainer so Line can master a topic, framework, or repo feature/system before working on it. Repo knowledge comes from codegraph or targeted file reads; framework/library knowledge MUST be fetched fresh through context7, never from memory. Auto-triggers on /learn <topic>, or natural phrases like 'tôi muốn học', 'cho tôi học', 'giúp tôi nắm', 'dạy tôi', 'I want to learn', 'help me understand the architecture of', 'explain this system so I can work on it'.

Licence
MIT
Last repository change
11.11.2026

Assessment and security

98/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene13 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Generate a layered HTML learning explainer so Line can master a topic, framework, or repo feature/system before working on it. Repo knowledge comes from codegraph or targeted file reads; framework/library knowledge MUST be fetched fresh through context7, never from memory. Auto-triggers on /learn <topic>, or natural phrases like 'tôi muốn học', 'cho tôi học', 'giúp tôi nắm', 'dạy tôi', 'I want to learn', 'help me understand the architecture of', 'explain this system so I can work on it'.

Triggers from the description

tôi muốn họccho tôi họcgiúp tôi nắmdạy tôiI want to learnhelp me understand the architecture ofexplain this system so I can work on it
Original author description

Generate a layered HTML learning explainer so Line can master a topic, framework, or repo feature/system before working on it. Repo knowledge comes from codegraph or targeted file reads; framework/library knowledge MUST be fetched fresh through context7, never from memory. Auto-triggers on /learn <topic>, or natural phrases like 'tôi muốn học', 'cho tôi học', 'giúp tôi nắm', 'dạy tôi', 'I want to learn', 'help me understand the architecture of', 'explain this system so I can work on it'.

How it works

  1. Purpose
  2. Step 1 — Classify the topic
  3. Step 2 — Gather evidence (before writing any HTML)
  4. Step 3 — Build the four layers
  5. Step 4 — Output
  6. Best Practices
  7. Common Pitfalls
  8. Example
Original SKILL.md headings · 136 lines, 1,184 words
SKILL.md preview
---
name: learn
description: "Generate a layered HTML learning explainer so Line can master a topic, framework, or repo feature/system before working on it. Repo knowledge comes from codegraph or targeted file reads; framework/library knowledge MUST be fetched fresh through context7, never from memory. Auto-triggers on /learn <topic>, or natural phrases like 'tôi muốn học', 'cho tôi học', 'giúp tôi nắm', 'dạy tôi', 'I want to learn', 'help me understand the architecture of', 'explain this system so I can work on it'."
verified: 2026-08
layer: utility
category: learning
triggers: ["/learn", "tôi muốn học", "cho tôi học", "muốn nắm", "giúp tôi nắm", "dạy tôi", "học về", "i want to learn", "help me learn", "teach me", "explain the architecture", "explain this system", "master this feature", "understand this feature before"]
---

# Learn — layered HTML explainer for a topic, framework, or repo system

## Purpose

Turn "tôi muốn học ABC" into ONE self-contained HTML file that teaches ABC in
four layers: intuition → architecture → mechanics → practice. The reader is
Line: a builder who needs to hold the full design of a feature or system in
their head before touching it. Evidence-first: real code via codegraph, real
docs via context7. Nothing about library versions or APIs comes from memory.

## Step 1 — Classify the topic

| Topic shape | Example | Evidence sources |
|---|---|---|
| Repo feature/system | "payment flow của TwoHearts" | codegraph (+ context7 for the frameworks it uses) |
| Framework/library | "Next.js App Router", "Drizzle migrations" | context7 (mandatory) |
| Theory/concept | "event sourcing", "CAP theorem" | web search of primary sources, dated |
| Mixed (most common) | "học feature X để tôi sửa nó" | all of the above |

If the topic is ambiguous (which repo? which feature? how deep?), ask ONE short
question with 2–3 concrete options before gathering. Otherwise do not ask.

## Step 2 — Gather evidence (before writing any HTML)

**Repo code** — docs first when they exist: check the repo's docs INDEX and
the module's SPEC/SSOT before scanning code; a maintained SPEC carries more
evidence per token than a blind sweep, and code then verifies the SPEC.
Then codegraph: `codegraph_explore` with the repo's `projectPath`. Collect: entry points, core symbols with verbatim source, call
paths between them, blast radius. Fallback when the repo has no `.codegraph/`:
Grep for the feature's route/handler/model names, then Read by line range.
Never read whole files to explore. Every code claim in the output carries a
`path:line` reference.

**Frameworks and libraries** — MANDATORY context7 pass. For every framework,
library, or SDK the topic touches (or that the repo code imports in the
gathered slice): `resolve-library-id` → `query-docs` for the specific concepts
involved. Record the resolved library id, the version if shown, and today's
date. If context7 has no match, fall back to web search of the official docs
and say so. Training-data memory is NOT an accepted source for API shapes,
config keys, defaults, or version behavior.

**Theory** — web search primary sources (original paper, official spec, author
blog). Record source + date. Prefer one authoritative source over five blogs.

**Coverage sweep — go deep, never stop at the obvious module (Line's rule,
2026-08-27).** The first module found is the center, not the whole system.
After the core slice, run expansion rounds until a round finds nothing new:

1. Grep the whole repo for the topic's signals: imports of the core module,
   its table names, env vars, Redis key prefixes, event names, tool names.
2. Codegraph blast-radius on the core symbols — every caller outside the
   module is a related feature to cover (channel workers, cron, webhooks,
   scripts/, test harnesses, admin/dashboard routes).
3. Read the docs INDEX and the SPEC of every adjacent module the sweep hit.
4. Check sibling repos in the same workspace that consume or evaluate the
   system (e.g. eval harnesses, dashboards, e2e repos) — at least name their
   role even when a deep read is out of scope.

The output MUST contain a coverage map: every related feature found, one line
each (role + where it lives), plus an explicit "out of scope" list. A feature
silently missing from the map is a defect of the explainer.

## Step 3 — Build the four layers

Every explainer has exactly these four sections, in this order:

1. **Trực giác (eli5)** — one analogy, one big diagram, under 100 words.
   The reader should be able to redraw the diagram from memory.
2. **Kiến trúc** — components and boundaries, one architecture diagram
   (inline SVG or mermaid), the 3–5 design decisions that shaped it and WHY.
   For a repo system: which repos/modules own which responsibility.
3. **Cơ chế** — the actual data flow: a sequence walkthrough of the main path
   (request → ... → response), key code excerpts with `path:line`, the
   framework APIs involved with their context7-verified behavior. Include one
   failure path, not just the happy path.
4. **Thực hành** — reading order ("open these files in this order"), how to
   change it safely (where tests live, what breaks first), top pitfalls, and
   5 self-check questions Line should be able to answer without looking.

## Step 4 — Output

- One self-contained HTML file: no external assets, light/dark aware, wide
  diagrams scroll in their own container. Write it to
  `.learn/learn-<slug>-<yyyy-mm-dd>.html` under the repo root (create the
  dir; it is local working state, never committed) — or under the user's
  home `.learn/` when there is no repo.
- The local HTML file IS the deliverable on both harnesses. NEVER publish it
  as a Claude Artifact — Line's standing rule (2026-08-27). Open the file
  directly in the default browser (`Start-Process <path>` on Windows) and
  report the local path. Design guidance (`artifact-design`,
  `artifact-diagramming` on the Claude side) still applies to the HTML itself.
- End the chat message with: sources used (library ids + dates, code paths),
  and what was NOT verified.

## Best Practices

1. **Evidence before prose** — finish Step 2 completely before writing a single
   section; retrofitting sources produces confident fiction.
2. **Diagrams carry the mechanism** — every diagram shows real component names
   from the code, not generic boxes labeled "Backend".
3. **One main path, walked fully** — a complete trace of one request teaches
   more than shallow coverage of six.
4. **Version-stamp framework claims** — "Next.js 15 App Router (context7,
   2026-08-27)" — so a stale explainer is detectably stale.
5. **Keep tier 1 honest** — the eli5 layer simplifies but never says something
   the deeper layers contradict.
6. **Right-size the file** — a feature explainer is one scrollable page, not a
   book; link out (path references) instead of pasting whole files.

## Common Pitfalls

| Pitfall | Impact | Fix |
|---|---|---|
| Explaining the framework from memory | Stale/wrong APIs taught as fact | context7 pass is mandatory, dated |
| Generic explainer ignoring the repo | Line learns theory, not their system | codegraph slice first; repo names in every diagram |
| Wall of text, no layers | Nothing sticks | enforce the 4-layer structure |
| Only the happy path | Line can't debug what they "learned" | include one failure path in tier 3 |
| Dumping whole source files into the page | Unreadable, huge file | excerpts + `path:line` reading order |

## Example

### Example: "tôi muốn học order webhook flow của TwoHearts backend"

1. Classify: mixed (repo system + its frameworks).
2. Gather: `codegraph_explore(projectPath: D:\01_Workspaces\TwoHearts\<repo>)`
   for webhook handler → queue → worker call paths; context7 for the queue
   library and framework route handler semantics; note idempotency-key code.
3. Write the 4 layers: postman analogy → component diagram (gateway, handler,
   queue, worker, DB) → sequence walkthrough with `src/webhooks/order.ts:42`
   style refs + one duplicate-delivery failure path → reading order, where the
   tests live, 5 self-check questions.
4. Save `.learn/learn-order-webhook-flow-2026-08-27.html`, open it in the
   browser, report sources + the one thing not verified (e.g. staging queue
   config).

Versions

RepositoryScoreLicence
This page · LineLuLan/line-harness98MIT
lucamartins/ouroboros100MIT
boykush/scraps100MIT
nicsuzor/academicops100MIT
cookys/autopilot100MIT
joelhooks/PAROL6100MIT
tw93/Waza100MIT
fainir/agent-harness100MIT
amit429/understanding-map100MIT

Database snapshot: 13.11.2026 · package version 7a60c57a2c6d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95learn-review
    Create a polished HTML review of an existing learning project with a topic roadmap, evidence timeline, learning process, gaps, and observed changes over time. Use for visual learning reports or a review dashboard; use learn-progress for a short conversational status update.
  • 100sigma
    Personalized 1-on-1 AI tutor using Bloom's 2-Sigma mastery learning. Guides users through any topic with Socratic questioning, adaptive pacing, and rich visual output (HTML dashboards, Excalidraw concept maps, generated images). Use when user wants to learn something, study a…
  • 100learning-coach
    Learning coach that turns any topic or work chat (coding, research, processes, study) into knowledge that actually sticks: attempt before the answer, active recall, error review, a self-contained knowledge card, spaced repetition with calendar reminders, and real-world…
  • 100brainstorm-coach
    Coach structured brainstorming sessions on any topic: diverge on ideas together, then converge on priorities and next steps in a session document. Use whenever the user wants ideas or wants to think out loud, in any language ("brainstorm with me", "give me ideas for…", "help me…
  • 100crash-course
    Expert tutor that gets you from zero to working knowledge on any TOPIC fast, grounded in real sources rather than generic filler. Use this whenever the user wants to LEARN, understand, ramp up on, or get up to speed on something and has limited time: a new codebase or project…
  • 100crash-course
    Expert tutor that gets you from zero to working knowledge on any TOPIC fast, grounded in real sources rather than generic filler. Use this whenever the user wants to LEARN, understand, ramp up on, or get up to speed on something and has limited time: a new codebase or project…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.