Codebase to Course Converter (Chinese) for Openclaw

An AI agent skill that automatically generates self-contained, interactive HTML courses from any codebase, customized for either product managers or software developers.

zhouchang1988
v1.2.0
May 21, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install codebase-to-course-cn

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install codebase-to-course-cn using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Codebase to Course Converter (Chinese)?

The codebase-to-course-cn skill is an advanced tool designed to analyze any software repository and instantly convert it into a highly polished, interactive course. Optimized for developers, project managers, and technical educators, this skill delivers a fully structured education package ready to run entirely offline. By integrating codebase-to-course-cn into your Openclaw Skills workflow, you can bridge the gap between technical complexity and conceptual understanding for diverse team members.

This skill supports two tailored modes. The Product Manager (PM) mode focuses on high-level business logic, user journeys, and functional module maps without exposing code details, while the Developer (PRO) mode provides high-density technical analysis, sequence diagrams, request-response lifecycles, and selective code snippets. Crucially, the generated files are completely self-contained with zero external CDN or Google Fonts dependencies, guaranteeing flawless execution within mainland China and offline environments.

Codebase to Course Converter (Chinese) Use Cases

  • Onboarding New Team Members: Instantly generate a deep-dive technical architecture guide or user journey mapping directly from your existing codebase.
  • Technical Presentations and Architecture Reviews: Build interactive, slide-like documentation showing data flows and system boundaries to present to developers.
  • Product Training for PMs: Educate product managers and business stakeholders on system capabilities and functional modules without overwhelming them with code.
  • Creating Educational Content: Swiftly author offline-capable programming courses and interactive lessons based on real-world repositories.

How Codebase to Course Converter (Chinese) Works

  1. Information Gathering: The agent prompts the user to select either the Product Version (focused on business logic) or the Developer Version (focused on code architecture).
  2. Keyword Assignment: The user specifies a Chinese keyword (for headings and navigation UI) and an English keyword (for the slug, directories, and filenames).
  3. Source Code Retrieval: The skill clones a remote GitHub repository or reads the local project directory to build the context map.
  4. Structure and Briefing: For complex codebases, the AI designs a 4-to-6 module curriculum and drafts individual module briefs specifying technical objectives and design decisions.
  5. Static Site Compilation: The agent populates HTML module templates, hooks them up to interactive CSS and Javascript components, and compiles the final product into a unified, zero-dependency index.html via a local build script.

Codebase to Course Converter (Chinese) Setup

To install and utilize this skill within your Openclaw Skills system, register the skill definition in your agent configuration. The skill operates directly on local workspaces or standard Git repositories.

Running the Skill

To trigger the skill, use any of the supported prompt triggers such as "将此转换为课程" (Convert this to a course) or "交互式讲解此代码库" (Interactively explain this codebase).

If you provide a GitHub repository URL, the tool will automatically clone it:

git clone <github-url> /tmp/<repo-name>

To build the final consolidated static site, execute the build script inside the generated directory:

cd <english-keyword>-course-pm && bash build.sh
# OR for Developer version
cd <english-keyword>-course-pro && bash build.sh

Codebase to Course Converter (Chinese) Data Schema & Taxonomy

The codebase-to-course-cn skill outputs a self-contained web directory structured precisely as follows:

File / Folder Description Dependency Rule
styles.css Global stylesheet defining palettes and typography. Local-only; no Google Fonts or external CDNs permitted.
main.js Interactive elements engine, controls module toggling and animations. Zero network dependence.
_base.html Custom-configured layout shell integrating the localized Chinese titles. Generated dynamically.
build.sh Shell compiler script to merge individual modules into the index page. Native bash script.
briefs/ Directory containing markdown module summaries (used for complex codebases). Static Markdown files.
modules/ HTML partials of the individual course chapters (01-slug.html, etc.). Encapsulated custom <section> nodes.
index.html The final compiled, fully interactive, offline-ready course presentation. Viewable in any standard browser.

Codebase to Course Converter (Chinese) Advanced Features

  • Offline-First Mainland China Compatibility: All generated web assets strictly exclude Google Fonts, external CDNs, or any resources requiring a VPN, achieving perfect zero-network compatibility.
  • Dual-Persona Content Tailoring: Programmatic toggling between business-friendly UX visualizers (Product mode) and high-density technical sequence/state charts (Developer mode).
  • Automated Repository Cloner: Seamlessly handles Git URLs directly from the terminal prompts, managing cloning routines automatically.
  • Interactive Visual Layouts: Employs interactive components like click-to-expand architecture elements, data flow animations, and state transitions using standard CSS custom properties and pure JavaScript.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*