linear-walkthrough
Generate self-contained, GitHub-styled HTML walkthroughs from GFM markdown.
Takes markdown files with code walkthroughs and produces single-file HTML pages with syntax highlighting, dark mode support, and Mermaid diagram rendering. Optionally launches an interactive server where you can select text and ask Claude follow-up questions.
Install
# Run directly from GitHub
uvx --from git+https://github.com/uptick/linear-walkthrough linear-walkthrough input.md -o output.html
# Or install locally
uv pip install git+https://github.com/uptick/linear-walkthrough
linear-walkthrough input.md -o output.html
AI Coding Assistants
Add the skill to your AI coding assistant:
npx skills add uptick/linear-walkthrough
Works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Goose, OpenCode, and Windsurf.
Example prompts:
/linear-walkthrough Walk me through the auth module
/linear-walkthrough Create a walkthrough for PR #42
/linear-walkthrough Give me a beginner-friendly walkthrough of the API layer
Quick Start
# File input → file output
uv run linear-walkthrough input.md -o output.html
# Stdin → stdout
cat input.md | uv run linear-walkthrough -o out.html
# Interactive server mode (opens browser)
uv run linear-walkthrough input.md --serve
Features
- GFM markdown — tables, task lists, fenced code blocks
- Syntax highlighting — Pygments with light/dark theme support via
prefers-color-scheme - Mermaid diagrams — rendered client-side from fenced
mermaidblocks - Self-contained output — single HTML file with all CSS inlined
- Interactive mode — select text in the browser, ask Claude follow-up questions, responses appended to the source file
Interactive Server Mode
uv run linear-walkthrough walkthrough.md --serve [-p PORT] [--cwd DIR]
Starts a local HTTP server (default port 7847) that renders your walkthrough with a text selection UI. Select any text and ask a question — Claude responds using the full walkthrough as context. Follow-up responses are appended to the original markdown file.
Project Structure
linear_walkthrough/
cli.py - CLI entry point
renderer.py - Markdown → HTML via markdown-it-py + Pygments
template.py - Minijinja template loader + CSS
server.py - Interactive server mode (stdlib http.server + claude subprocess)
templates/
page.html - Static output template
page_interactive.html - Interactive template with follow-up JS
Tech Stack
- Python 3.12+ managed with uv
- markdown-it-py — GFM parsing
- Pygments — syntax highlighting
- minijinja — HTML templating
- Mermaid.js — diagram rendering (CDN)
Development
uv run ruff check . # lint
uv run mypy . # type check
uv run pytest # test
Metadata
Release files for linear-walkthrough 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| linear_walkthrough-0.3.1.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| linear_walkthrough-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.8 kB
Release files / linear_walkthrough-0.3.1.tar.gz
| Download URL | linear_walkthrough-0.3.1.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
748f575207d06a66654c4fa7a0d24331fab402ec63e7b5d216956c0fc9ab6f73
|
|
BLAKE2b-256 checksum How to use checksums |
caf63457d3192d052eec61da8de21d22a11a40ddd6b78e0ad93a47935e91b603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.14
|
Release files / linear_walkthrough-0.3.1-py3-none-any.whl
| Download URL | linear_walkthrough-0.3.1-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fed201b1839a7ad60851be6cb70578334e0ea15bfa6a15c98bcde56a80d60f7e
|
|
BLAKE2b-256 checksum How to use checksums |
06c957941a7f6845cfd370cb9167ade3cf268d6032ea54d6419d0013617e5a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.14
|