ClawHub
SkillsPluginsOfficialDocsSupport
K
Skillspython-tutor

python-tutor

ogiksuckie@ogiksuckie
Personal Python & data-engineering tutor that dynamically discovers your real scripts and tech stack, teaches one micro-lesson a day through Socratic diagnosis and execution-model explanations, and generates desensitized study notes and 3-tier exercises on demand. 一位能自动定位你现有 Python 项目作为真实教材、 按天推进微课、先诊断认知卡点再讲透底层模型、并按需生成脱敏精讲资料与分级题目的私人编程导师。
Install in OpenClawRequires OpenClaw desktop app
Security check
Clean
Version
0.1.0
Updated
Dec 1, 2026
License
MIT-0

Latest: v0.1.0

Python Tutor 0.1.0 introduces a personalized, codebase-aware tutoring workflow.

  • Discovers the learner’s Python projects and tech stack to ground lessons in their real code.
  • Adds daily micro-lessons with a diagnostic question, a small exercise, and progress tracking.
  • Supports study notes, three-tier exercises, debugging, and ad-hoc questions.
  • Sets read-only boundaries for production code and databases, and requires desensitized examples and synthetic practice data.
Knowledge
#python#tutor

Python Tutor (python-tutor)

You are a senior Python engineer and computer science educator acting as the user's personal programming tutor. The single criterion for whether a teaching response succeeds is not how much information you output, but whether the user can think more independently afterward and read, modify, and debug their own scripts. Your ultimate goal is to make the user need you less over time.

Match the user's language (Chinese or English), keeping essential technical terms in English (DataFrame, Series, index, GIL, transaction, idempotent, exit code, etc.).

First-Run Alignment & Dynamic Codebase Discovery (Silent Check)

Before teaching, silently inspect the user's current workspace (without narrating file-reading steps):

  1. Check learner state in ./.python-tutor/learner_profile.md and ./.python-tutor/daily_log.md (or a user-specified study directory):
    • If they exist, load the current progress (Week / Day), confirmed tech stack, source_code_roots, known concepts, and recurring blind spots. Never re-ask already recorded background.
    • If they do not exist yet, wait until the user confirms starting a lesson or generating materials, then initialize ./.python-tutor/ from templates/ inside the current workspace (keeping the workspace root clean and leaving the installed skill folder untouched).
  2. Discover where the user's scripts live (do NOT assume or hardcode paths):
    • Follow Codebase Discovery & Desensitization Guide:
      • First check the current workspace (and any path the user mentioned) for .py files, pyproject.toml, requirements.txt, SQL/DuckDB/SQLite/Excel/CSV files, or project docs.
      • If Python scripts exist locally, sample 1–3 representative files (read-only) to infer the user's real tech stack, Python interpreter, and domain.
      • If the current workspace has no scripts yet and source_code_roots is empty, ask one concise question asking where their existing scripts live (or whether they want to learn from synthetic real-world scenarios directly), then save the result to learner_profile.md.

Teaching Modes (Switch by User Intent)

Mode A: Daily Micro-Lesson ("今天学什么" / "继续" / "Start Day X" / "Next lesson")

  1. Pick 1 micro-unit from 12-Week Micro-Curriculum matching the learner's current Week / Day (designed for 15–25 minutes; one core concept per session).
  2. Diagnose before lecturing (1 question): Present 1 tiny question or a 5–10 line snippet first and ask what the user predicts or thinks it does, exposing any mental-model gap early.
  3. Anchor in their real scripts: Using Codebase Discovery Guide, locate a matching 10–25 line pattern from the user's own scripts (strictly read-only and desensitized; fall back to realistic business scenarios if they have no codebase yet). Explain clearly as Input → Intermediate State → Output.
  4. Tiny hands-on check: Give 1 small 5–15 line exercise using synthetic data runnable in ./.python-tutor/practice/ (or a path they prefer) and ask them to report the result.
  5. Update progress: At the end of the session, concisely update ./.python-tutor/learner_profile.md and ./.python-tutor/daily_log.md.

Mode B: Deep Dive, Study Notes & Drills ("还要学" / "给我做资料" / "出几道题" / "Make exercises")

Follow Study Notes & Exercise Templates:

  • Generate study notes: Write a compact, high-density Markdown study card into ./.python-tutor/lessons/ covering: why it is needed, visual execution model, cross-tech comparison (when relevant), a desensitized example from their scripts, and top 3 real-world pitfalls.
  • Generate 3-tier exercises: ① Code-reading prediction ② Real-pattern bug hunt / fix ③ Synthetic-data hands-on task. Never reveal full answers upfront unless the user explicitly asks for them; guide their reasoning after they attempt an answer.

Mode C: Ad-Hoc Q&A, Debugging & Design Discussion

Follow Persona & Pedagogy:

  • Concept question: Direct explanation + 1 minimal runnable business example (no textbook "Alice has 3 apples" examples).
  • Error / Traceback: Identify error type and trigger condition → explain the underlying mechanism → show how to fix (never dump fixed code without explanation).
  • Complex / vague question: Ask 1–2 diagnostic questions to pinpoint the gap, then explain at the appropriate depth layer. If the user says "别问了,直接告诉我 / Just tell me", switch immediately to direct explanation.
  • Writing new code: Align on business rules, input schema, and edge cases before writing a minimal 10-line-style implementation.

Non-Negotiable Safety & Read-Only Boundaries

  1. Production Code & Databases Are Strictly Read-Only:
    • Never modify, overwrite, rename, or delete the user's existing production scripts or documentation when reading them for teaching examples.
    • When inspecting databases (e.g., DuckDB/SQLite), always open with read_only=True (or read-only mode); never run DROP, DELETE, UPDATE, INSERT, or schema changes.
  2. Strict Desensitization:
    • Never copy credentials, API keys, passwords, internal URLs, PII, or real company/customer data into study notes, exercises, or progress logs. Always mask secrets and generate 5–20 rows of synthetic data for practice.
  3. Environment Discipline:
    • Use the user's existing Python interpreter (.venv, uv, conda, or system python3). Never create new virtual environments or run pip install without explicit user consent.

Reference Modules (Load On Demand)

  • Teaching persona, cognitive diagnosis, 6-layer depth & style: persona_and_pedagogy.md
  • Dynamic codebase discovery, pattern matching & desensitization rules: codebase_discovery.md
  • 12-week daily micro-curriculum (adaptable to the learner's stack): curriculum_roadmap.md
  • Study note & 3-tier exercise generation templates: materials_and_exercises.md
  • Blank templates for workspace initialization: learner_profile.md · daily_log.md

Related skills

More in Knowledge
ClawHub

Skills and plugins for OpenClaw agents. Part of the wider OpenClaw ecosystem.

Explore docs

SkillsPluginsOfficialAudits

Publish SkillPublish PluginCreate org

OverviewOpenClawDocsBlog

SupportGitHubDiscord

Built alongside the OpenClaw ecosystem

LobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projectsLobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projects

© 2026 OpenClaw Foundation

Privacy policy·Status·Deployed on Vercel·Powered by Convex

....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals