Code Decoded
/install code-decoded
Code Decoded
Turn a codebase into a self-contained interactive HTML course. One file. No setup. Host it, share it, or open it locally.
Read references/html-structure.md for the HTML output spec.
Read references/design-principles.md for visual and content rules.
What to Build
A single HTML file that teaches how the codebase works through:
- Scroll-based modules — one concept per section, progress indicator
- Code + plain English side by side — real code from the repo on the left, what it means on the right. Never modify or simplify the code.
- Architecture overview — visual diagram of how the main components connect
- Data flow walkthrough — trace what happens during a key user action (login, submit, search — whatever is most representative)
- Interactive quizzes — application-focused, not memorization. "A user reports stale data after switching pages. Where would you look first?" Not "What does API stand for?"
- Glossary tooltips — hover any technical term for a plain-English definition
- Keyboard navigation — arrow keys to move between sections
Before Starting
Ask the user (or infer from context):
- Audience — non-technical (product users, stakeholders), developer onboarding, or power users?
- Focus — full codebase tour, or a specific area (auth, data layer, a specific feature)?
- Key action to trace — what is the most important thing the code does? This becomes the data flow module.
If the user says "just do it" — infer from the codebase and proceed.
How to Generate
- Read the codebase structure (directory tree, key files)
- Identify: entry points, main modules, data models, key user flows
- Pick 5-8 concepts to teach — ordered from "what is this?" to "how does it work?" to "how do I use/change it?"
- Write the HTML course following
references/html-structure.mdandreferences/design-principles.md - Output as a single
.htmlfile
Output
Name the file: [repo-name]-tour.html
It must:
- Work offline (no external CDN, no network requests)
- Be self-contained (all CSS and JS inline)
- Render correctly in Chrome, Firefox, Safari
- Be hostable as a static page with no build step
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install code-decoded - 安装完成后,直接呼叫该 Skill 的名称或使用
/code-decoded触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Code Decoded 是什么?
Turns any codebase into a self-contained interactive HTML course. Use when asked to explain a codebase, generate onboarding material, create an interactive t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 57 次。
如何安装 Code Decoded?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install code-decoded」即可一键安装,无需额外配置。
Code Decoded 是免费的吗?
是的,Code Decoded 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Code Decoded 支持哪些平台?
Code Decoded 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Code Decoded?
由 Leo Stehlik(@leostehlik)开发并维护,当前版本 v0.1.0。