Logo Teachable Code

Teachable Code

Cộng đồng
ywEdAi
teachable-code

Teach any codebase (a software app, a complex system, an LLM or a research repo) as an interactive page. Follows real data step by step with side-by-side input, transform and output, in 3D for tensors and training loops and 2D for apps, and offers deeper graph views such as paper→code and interventions, after asking the learner about their goal and prior knowledge. Use when someone wants to understand, reproduce, modify or borrow from a GitHub repo, or says "visualize this repo / 帮我看懂这个代码库 / 复现这篇论文的代码 / 画出它的工作流".

Tổng quan

Nhà phát hànhywEdAi
Kho mãteachable-code
Tên kỹ năngteachable-code
Sao
65
Bản fork
9
Tệp đi kèm
134
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 134 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được ywEdAi công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Teachable Code trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/ywEdAi/teachable-code/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ywEdAi/teachable-code.git \
  .claude/skills/teachable-code
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Teachable Code trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Teachable Code ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Teachable Code với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Teachable Code

Teachable Code makes the hidden process of a codebase visible: what runs, in what order, on what data, built on which ideas, and where you could change it. The output is one self-contained HTML page (published as an Artifact when the session can) whose canvas carries the meaning; text sits in a side panel and appears on demand.

Read references/method.md once before your first build. The other references are opened when the step below names them.

The four capabilities

Every page serves one primary capability, sometimes with a second. They decide what you draw first and how deep you go.

CapabilityThe learner wants to…Lead viewsDefault page settings
Understandingknow how it works and whyglobal map → workflow → knowledge layer → directory → paper→codeknowledge layer on, prediction mode on
Reproductionget the paper's numbers out of the codeworkflow with reproduction lens → directory → paper→code (deviations) → what runs wherereproduction lens on
Interventionchange a part or test a hypothesispaper→code (red/yellow edges) → lever previews on real data → feature requestproposal panel on the system graph
Transfer / discoveryreuse its ideas elsewherecross-repo patterns → transfer questions → experiment cardstransfer panel on the patterns graph

Understanding is the floor: intervention and transfer pages still include a compact global map and workflow, because nobody can change what they cannot see.

Workflow

0. Route: lesson, deep page, or both

Any repo can get a step lesson: one piece of data followed step by step across a permanent map of the whole system, all on one screen, for readers who do not code. Readers can zoom the map and click any part or data point to reach its files and values. Run scripts/classify_repo.py REPO, confirm the guess with the learner, and follow references/lessons.md. It uses 3D for tensors and training loops, and 2D for apps and systems.

Use the graph page described below when the learner wants depth on a research repo: paper-to-code checks, levers on real data, or transfer. If you are unsure, start with the lesson.

1. Quick scan (before asking anything)

Spend a few minutes so the questions you ask are concrete.

bash
git clone --depth 1 <repo> /work/<name> && git -C /work/<name> rev-parse HEAD     # pin the commit
python3 -I scripts/inventory.py /work/<name> --out /work/<name>.inv.json --summary

From the summary, the README and the entry points, note:

  • the shape (pipeline, request lifecycle, nested loops, multi-agent system, library — see references/method.md),
  • 8–15 load-bearing concepts a newcomer must know (LoRA, ReST-EM, KV cache, …),
  • the main subsystems (e.g. SEAL: knowledge task vs ARC task),
  • what can run on CPU here and what needs GPUs, keys or services,
  • whether the repo or paper ships real outputs (results folders, eval fixtures) — these become the best evidence.

2. Interaction mode: ask, then decide

Ask before building unless the request already answers everything below or the session is unattended. Follow references/interview.md: it has the question bank, the rules for swapping questions, and how each answer changes the build.

  • Use AskUserQuestion (2–4 options per question, the recommended option first). Round 1 is one call with up to 4 questions; round 2 is optional and only asks what round 1 made necessary.
  • Options must come from the scan: name the repo's real concepts, subsystems and levers, never generic placeholders.
  • Never ask what the request, the conversation or memory already answers; swap in the next most informative question. Every question must change at least one build decision — if no answer would change what you draw, do not ask it.
  • Classify the request as understanding, reproduction, intervention or transfer (primary + optional secondary) using the signals in references/interview.md, and tell the user in one line which you chose and why.
  • Unattended or no answer: pick the most reasonable reading, state it at the top of your reply, and build.

Record the answers as the page's PAGE.defaultProfile so the person who asked lands on their route, while anyone else who opens the page is asked the same questions in the page's own onboarding.

3. Evidence: run what can run

Before drawing, gather the data the graphs will animate. Priority: real outputs the repo committed > running the repo's own functions locally > the repo's tests/mocks > template examples. Never invent model outputs. See references/running-code.md (CPU stubs for Python, scripts/ts_loader for TypeScript, provenance labels).

Save every result as JSON in runs/ and list it in runs.json.

4. Build the page

Create a page folder:

<page>/repos.json          {"seal": {"name": "SEAL", "root": "/work/SEAL", "url": "https://github.com/o/r/blob/<sha>/"}}
<page>/runs.json           {"seal.estep": "runs/estep.json", ...}   -> RUN.seal.estep in the page
<page>/runs/*.json
<page>/graphs/10_system.js     def({...}) — one file per area; loaded in name order
<page>/graphs/90_page.js       PAGE, PROFILE, FRAMES, ROUTES

Write graphs with the spec in references/graph-spec.md. Omit x/y and the engine lays nodes out (groups side by side, layered inside); give coordinates only where a hand layout reads better. Per view type, follow:

  • knowledge layer → references/concepts.md
  • paper → code → references/paper-to-code.md
  • levers, previews, feature requests → references/interventions.md
  • cross-repo patterns and experiment cards → references/transfer.md

First pass = key frames. Build 3–5 frames along the learner's route, publish, and ask for feedback before building the rest. Big visual builds are cheaper to steer early.

5. Verify, then publish

bash
python3 scripts/build.py <page> --out <page>/index.html       # checks every file:line and every edge/step id
python3 -I scripts/check.py <page>/index.html --shots <page>/shots   # plays every scenario, screenshots every frame

build.py fails if a code reference points at a missing file or line range, or a scenario names a missing edge. check.py fails on page errors or horizontal overflow at phone width. Look at the frame screenshots once; fix overlaps you can see.

Publish with the Artifact tool. If the page includes live feature-request or transfer generation, declare capabilities: {"sample": {}}; the page falls back to the built-in example when a viewer has not allowed it.

6. Deliver

One short paragraph: what the page shows, the route you chose and why, the 2–3 most important findings (things the code does that the paper does not say, real-data surprises), and what you could not run. Then ask which frame to deepen next.

Quality bar

  • Show, not tell. If a sentence describes movement, order or a branch, it should be an animation, an edge or a scenario instead.
  • Global first, then zoom. Every page opens on something that shows the whole; detail lives one double-click down.
  • Every claim is traceable. Code shown in the page is pulled from the pinned commit by line number at build time. Numbers name their source: ran here / committed results / test mock / template example / synthetic.
  • The learner's own path. Visited marks, pinned questions and prediction results stay on the page and export as JSON for the next iteration.
  • Honest scope. Say what is synthetic, what is a stand-in, what you could not run, and where the paper and the code disagree.

Files

PathWhat it is
assets/engine.js, assets/shell.html, assets/prelude.jsThe page runtime (canvas, zoom, scenarios, inspector, onboarding, prediction, proposals, transfer)
assets/views/directory.jsReusable directory ↔ workflow view (VIEWS.directory)
scripts/inventory.pyFile list with line counts, definitions and shape signals
scripts/build.pyValidates references and ids, injects source lines, writes one HTML file
scripts/check.pyHeadless run of every scenario and frame, dark mode and phone-width checks
scripts/pyrun.py, scripts/ts_loader/Run a repo's own Python / TypeScript functions without its heavy dependencies
references/*.mdMethod, interview, graph spec, concepts, paper→code, interventions, transfer, running code
references/lessons.md, assets/lesson/Step lessons: method, schema and the 2D/3D runtime
scripts/classify_repo.pyGuesses what kind of system a repo is, and which lesson fits
scripts/build_lesson.py, scripts/check_lesson.pyBuild a lesson from a pinned clone; play every step in a browser
examples/lessons/Worked lessons: nanoGPT (3D) and vercel/ai-chatbot (2D)
examples/four-repos/Complete worked example: SEP, mini-sglang, SEAL, OpenMAIC (24 graphs, 13 frames)

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

và 74 tệp khác.

Câu hỏi thường gặp

Kỹ năng AI Teachable Code làm được gì?

Teach any codebase (a software app, a complex system, an LLM or a research repo) as an interactive page. Follows real data step by step with side-by-side input, transform and output, in 3D for tensors and training loops and 2D for apps, and offers deeper graph views such as paper→code and interventions, after asking the learner about their goal and prior knowledge. Use when someone wants to understand, reproduce, modify or borrow from a GitHub repo, or says "visualize this repo / 帮我看懂这个代码库 / 复现这篇论文的代码 / 画出它的工作流".

Vì sao nên dùng Teachable Code trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Teachable Code là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Teachable Code trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ywEdAi/teachable-code/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Teachable Code?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Teachable Code với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Teachable Code với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Teachable Code có miễn phí không?

Kỹ năng này được ywEdAi phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇