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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install code-decoded - After installation, invoke the skill by name or use
/code-decoded - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 57 downloads so far.
How do I install Code Decoded?
Run "/install code-decoded" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Code Decoded free?
Yes, Code Decoded is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Code Decoded support?
Code Decoded is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Code Decoded?
It is built and maintained by Leo Stehlik (@leostehlik); the current version is v0.1.0.