An automated browser-automation agent designed to manage course enrollment, video playback, and study hour tracking on the China Tobacco Network Academy platform.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install cttc-auto-learn
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install cttc-auto-learn using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Tobacco Network Academy Auto Learning skill (cttc-auto-learn) is a highly efficient browser-automation workflow that streamlines video study and credit accumulation on the mooc.ctt.cn platform. Powered by Playwright and Python, this AI-ready skill acts as a hands-free study assistant capable of completing login routines, selecting target courses, tracking metrics, and resolving common platform session timeouts without manual intervention.
By deploying this skill within the Openclaw Skills framework, developers and users can completely automate tedious digital learning tasks. The agent automatically handles QR-code login generation, keeps track of the active user state via secure JSON, and employs advanced anti-idle overrides, crash recovery systems, and multi-tab browser constraints to bypass common platform limits.
Verify that Python 3.11+, the uv tool, and Chrome/Playwright dependencies are installed on your host system.
# Check for folder existence and clone the source code
if [ ! -d ~/Desktop/cttc-auto-learn ]; then
git clone https://github.com/gandli/cttc-auto-learn.git ~/Desktop/cttc-auto-learn
fi
cd ~/Desktop/cttc-auto-learn
uv sync
Initiate the login script to render the QR codes. Check the log file for code generation signals, read the output images, and complete the WeChat or Mobile App scan.
uv run python main.py
After logging in, credentials will be saved under output/auth-state.json to bypass subsequent logins.
You can instruct the agent to run under four distinctive automated modes:
uv run python main.py --mode hoursuv run python main.py --mode topicsuv run python main.py --mode coursesuv run python main.py --mode tasksThe skill persists progress, configurations, and scan codes inside the local file system:
| Path | Description |
|---|---|
output/auth-state.json |
Encrypted session token and authentication keys to bypass manual scan prompts. |
output/qrcode-app.png |
App-specific login QR code dynamically updated on expiration. |
output/qrcode-wechat.png |
WeChat login QR code dynamically updated on expiration. |
output/status.json |
Real-time state dump payload (written every 30 seconds). |
logs/cttc.log |
Persistent log files recording runtime info, event frames, and errors. |
status.json)| Field Name | Type | Description |
|---|---|---|
status |
string | Playback state (playing, completed, or error). |
current_video |
string | Name of the video course currently active in the Playwright DOM. |
video_progress |
float | Percentage of player progress (0.0 to 100.0). |
api_completed_rate |
integer | Server-side progress registration rate. |
study_hours_current |
float | Current total hours completed on the active account. |
study_hours_target |
float | Milestones configured for execution (e.g., 50.0). |
courses_completed |
integer | Metric counting finalized video modules. |
courses_pending |
integer | Count of indexed modules remaining in queue. |
courses_total |
integer | Total courses registered inside the current workspace. |
errors_count |
integer | Rolling error tally for automated monitoring loops. |
stall_recoveries |
integer | Number of active video recovery routines fired. |
uptime_seconds |
integer | Cumulative runtime metric of the script. |
last_update |
string | ISO timestamp of the latest status generation. |
scripts/monitor.py) containing interactive terminal bars and output telemetry visualizations.Loading
An AI-powered local contract review agent that generates multidimensional risk heatmaps, interactive HTML reports, and tailored negotiation strategies.

An AI design agent that analyzes articles, designs high-retention metaphor cards, and auto-generates readable hand-drawn line-art illustrations.

Automatically convert images and text prompts into physical Perler Bead and Pindou crafting templates complete with color-coded layouts and exact bead counts.

A powerful MCP-based skill enabling AI agents to get quotes, track portfolios, and execute cross-chain token swaps securely across 14 networks.

A high-precision mathematical calculator and SVG visualizer to resolve wall-mounted faucet reach, outlet height, and drain alignment coordinates.

A local hardware detection CLI that automatically analyzes system memory, GPU, and CPU specs to suggest and output ideal Ollama and llama.cpp setup commands.








































