Token导航 LogoToken导航TokenDH.com
开发只读clawhub未标认证来源可访问clear审计提醒

ai-shifu-course-creator艾师傅课程创建者

Agent Skill

ai-shifu-course-creator 用于辅助部署、云资源、容器和基础设施运维,适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,551

周安装

431

GitHub Stars

公开资料未说明

下载量

3,379
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ai-shifu-course-creator(艾师傅课程创建者)
来源仓库:https://github.com/heshaofu2/ai-shifu-course-creator
安装命令:
openclaw skills install ai-shifu-course-creator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ai-shifu-course-creator

简介

将原始课程材料转换为优化的、可运行的 MarkdownFlow 教学脚本,并通过覆盖细分市场的五阶段管道将其部署为实时课程。

SKILL.md

name
ai-shifu-course-creator
description
Use when the user works with AI-Shifu (AI师傅) courses in any capacity: creating, writing, editing, rewriting, optimizing, reordering, deploying, publishing, previewing, or managing MarkdownFlow (MDF) lesson scripts. Covers the full course lifecycle — from converting raw material into structured lessons, to scripting interactions (single-select, multi-select, input, branching), adding variables, images, and system prompts, to deploying and managing live courses on the AI-Shifu platform. Trigger on any mention of AI-Shifu, AI师傅, or MarkdownFlow course scripting.

Course Creator

Convert raw course material into runnable, optimized MarkdownFlow lesson scripts and deploy them as live AI-Shifu courses.

Execution Modes

  • Standard mode (default): Input quality is sufficient; run requested phases in full.
  • Fallback mode: Input is incomplete or low quality; produce coarse outputs, mark uncertainty, and provide focused rerun hints.

Language Resolution Policy

See references/language-resolution.md for the full policy.

Resolve target language with this strict priority:

  1. explicit_output_language_request
  2. target_language_parameter
  3. session_language_preference
  4. prompt_language_detection
  5. source_material_dominant_language
  6. default_fallback_language (en-US)

Authoring Control Inputs

Use these optional controls across all phases:

  • course_profile (json): audience level, prerequisite level, lesson duration target, lesson count target, and assessment mode.
  • delivery_constraints (json): interaction density, platform limits, must-cover topics, avoid topics, and non-negotiable source fragments.

See references/input-contract.md for recommended object shapes.

Output Boundary

  • Final outputs are MarkdownFlow teaching scripts.
  • The script must be directive/instructional (i.e., it tells the model how to teach), not a polished, directly learner-addressed “final lecture/manuscript”.
  • Avoid author-side meta labels such as “Knowledge Block 1/2/3”, “Lesson Objective”, or “Deliverable”. Keep those as implicit structure, not visible narration.
  • Authoring rules, pipeline notes, and process instructions stay in skill docs and references, not in lesson outputs.
  • Internal design notes may appear only in HTML comments when needed.

MarkdownFlow Authoring Hard Rules (Must Follow)

1) Script style: directive, not manuscript

Write in imperative, model-guiding language. Preferred patterns:

  • “Explain to the learner …”
  • “Ask the learner to …”
  • “Have the learner choose …”
  • “After collecting {{var}}, restate the choice and branch …”

Disallowed patterns:

  • Long, polished prose written as if it is the final learner-facing lecture.
  • Author/lesson-plan meta narration (e.g., “Knowledge Block …”, “In this lesson you will …”, “Deliverable: …”).

2) Interaction syntax: prompt outside, options inside

For MarkdownFlow interactions, keep the question/prompt outside the syntax line. The interaction line must contain only options (and minimal inline hints when strictly necessary).

Bad: ?[%{{topic}} Please pick a topic: A | B | C]

Good: Ask the learner to pick a topic. ?[%{{topic}} A | B | C]

3) Mandatory anchoring + downstream effect

After every interaction, the script must:

  1. Restate the selection explicitly as an instruction (not as polished narration), e.g.: Restate the learner's current choice as {{var}}.
  2. Use {{var}} to create a visible downstream effect (branching explanation, examples, practice difficulty, feedback).

4) Visuals: describe, do not inline source markup

  • Do not embed raw SVG/HTML source code inside lesson MarkdownFlow files.
  • Unless the user explicitly asks for SVG, HTML, Mermaid, PlantUML, Graphviz, or other diagram source/markup, do not proactively generate visual source code or diagram markup.
  • Default behavior: when a visual is needed, write a natural-language instruction such as “Show an image that …” and pair it with a brief explanation of what the visual is meant to convey.
  • If the user asks for a visual but does not specify the format, prefer natural-language image/diagram placeholders over executable or embeddable diagram code.

Pipeline Overview

Phase 1: Segmentation → Phase 2: Orchestration → Phase 3: Generation → Phase 4: Optimization → Phase 5: Deployment

Usage Paths

Path A: End-to-End

Run all five phases from raw material to a live deployed course.

  1. Phase 1: Segment raw material into semantic units.
  2. Phase 2: Orchestrate lesson boundaries and generate scripts.
  3. Phase 3: Generate per-lesson MarkdownFlow scripts (called internally by Phase 2).
  4. Phase 4: Audit and optimize final scripts.
  5. Phase 5: Build, import, and publish to the AI-Shifu platform.

Path B: Author Only

Run Phase 1–4 to produce optimized MarkdownFlow scripts without deploying. Sub-paths:

  • Segment only: Phase 1 alone for structured segments and manual review.
  • Generate only: Phase 3 alone on pre-existing segments to produce lesson scripts.
  • Optimize only: Phase 4 alone to audit and improve existing MarkdownFlow scripts.

Path C: Deploy Only

Run Phase 5 alone to deploy pre-existing MarkdownFlow files to the AI-Shifu platform.

Path D: Manage Existing

Use Phase 5 management commands (list, show, update, rename, reorder, delete, publish, archive) on courses already on the platform.


Phase 1: Segmentation

Turn messy course source material into a reliable intermediate structure for downstream lesson generation.

Workflow

  1. Remove filler language and duplicated phrasing without changing meaning.
  2. Mark immutable blocks: code, images, and tables.
  3. Segment by semantic continuity instead of headings alone.
  4. Propose lesson boundaries with one core question per lesson.
  5. Return source-linked structured segments.

Segment Schema

Each segment includes:

  • segment_id
  • segment_type (concept, example, code, image, exercise, transition)
  • core_point
  • preserve_block (yes or no)
  • source_span

Transfer Signals

Capture these fields for downstream teaching quality:

  • learner_hook: statements that can trigger learner reflection.
  • evidence_type: one of history, phenomenon, data, mechanism, or conclusion.
  • visual_cue: fragments suited for SVG/HTML visual support.
  • concept_conflict: candidate idea conflicts for cognitive contrast.
  • boundary_cue: clues for validity boundaries.
  • action_cue: clues that can become immediate or staged actions.
  • density_cue: high-information chunks that should not be diluted.
  • quote_cue: original wording worth preserving.
  • visual_text_pair_cue: clues for "visual first, explanation second" blocks.
  • interaction_intent_cue: intent labels such as diagnose, branch, calibrate, compare.
  • compare_cue: candidate prompts for before/after comparison.

Phase 1 Outputs

  • Ordered segment list.
  • Lesson boundary candidates.
  • One core question per lesson.
  • Preservation block index.
  • Full transfer-signal package.

See references/segmentation-rules.md.

Phase 1 Validation

  • Segment output covers all valid source spans in traceable order.
  • Code/image/table blocks keep original placement and format.
  • Every lesson candidate resolves to one core question.
  • Transfer-signal fields are complete and usable downstream.
  • Cleanup does not alter key facts or terminology.

Phase 2: Orchestration

Convert raw course material into runnable lesson-level MarkdownFlow scripts by coordinating segmentation and generation.

Workflow

  1. Normalize source ordering and merge input material.
  2. Run Phase 1 for cleanup and semantic segmentation.
  3. Generate lesson-cut candidates with one core question each.
  4. Run Phase 3 for lesson-level MarkdownFlow scripts.
  5. Build course index and global variable table.
  6. Recompute only failed lessons through strict gating.

Mandatory Gates

All gates must pass:

  • Code blocks are preserved character-by-character.
  • Image links and relative placement are preserved.
  • Each lesson resolves one core question.
  • Each lesson contains at least one valid MarkdownFlow interaction, max five interactions total.
  • Each lesson includes a minimum teaching loop: setup, explanation, interaction, close.
  • Lesson language must be instructional/directive (model-guiding), not pipeline narration.
  • Each lesson includes at least one deepening interaction (calibration, boundary check, or counterintuitive prompt).
  • Action tasks are either immediately executable or explicitly linked to later modules.
  • Variable naming is consistent and traceable.
  • No unresolved placeholder variables in learner-facing text.
  • Do not wrap full lessons in deterministic blocks (=== === or !=== !===).
  • Deterministic blocks are reserved for legally or operationally fixed statements only.
  • If an image must remain unchanged, use single-line deterministic syntax per image.
  • Every variable collection step must produce immediate feedback and downstream effect.
  • Core knowledge points require visual + textual explanation together.
  • Consecutive variable collection cannot exceed three variables.
  • Do not recollect the same variable unless explicitly marked as staged comparison.
  • Never reference uncollected variables.
  • Interaction prompts must be concrete and directly answerable.
  • Avoid repetitive interaction semantics across lessons unless comparison intent is explicit.
  • *_viewpoint_check interactions must branch by option and drive different next steps.
  • Every interaction variable must create visible downstream impact.

Rerun Rules

  • Recompute only impacted lessons.
  • Recompute dependency-linked lessons when shared variables change.
  • Recompute full course only when global source order changes.

Failure Handling

When source quality is weak:

  • Deliver coarse lesson drafts first.
  • Mark uncertain spans explicitly.
  • Continue with best-effort generation instead of stopping.

Phase 2 Outputs

  • Lesson MarkdownFlow scripts (one file per lesson).
  • Course index (lesson id, title, core question, source mapping).
  • Global variable table (definition, use, cross-lesson references).

See references/output-contract.md and references/preservation-rules.md.

Phase 2 Validation

  • Lesson scripts, course index, and variable table are all present.
  • Code/image preservation is exact and position-safe.
  • One-core-question and interaction cap rules are satisfied per lesson.
  • No unresolved variables or no-op interactions remain.
  • Fallback outputs include explicit uncertainty markers and rerun hints.

Phase 3: Generation

Generate runnable MarkdownFlow scripts for each lesson.

Teaching Pattern Baseline

Use these defaults unless lesson content requires a justified variation:

  1. Instructional/directive language only (a teaching script, not a final manuscript).
  2. Variable collection is distributed, not front-loaded.
  3. Build evidence chain from observation to mechanism to conclusion.
  4. Use visual-first explanation for abstract concepts, then textual interpretation.
  5. Every collected variable must immediately affect downstream content.
  6. Include at least one deepening interaction (calibration, boundary check, or misconception correction).
  7. Include at least one reusable deliverable.
  8. Action steps must be immediately executable or explicitly staged for downstream lessons.
  9. Use carryover statements only if cross-lesson dependency is allowed.
  10. Avoid exposing internal authoring terms in learner-facing text.
  11. Keep interaction prompts concrete and answerable.
  12. *_viewpoint_check prompts must branch with distinct feedback paths.
  13. Repeated interaction patterns are allowed only when framed as staged comparison.

See references/teaching-patterns.md and references/cognitive-techniques.md.

Single-Lesson Generation Strategy

Required anchors:

  1. Opening objective plus visual cover.
  2. Evidence-chain explanation.
  3. At least one effective interaction with visible downstream effect.
  4. At least one reusable deliverable.
  5. Lesson close with summary or decision checkpoint.

Optional modules:

  • Viewpoint calibration.
  • Misconception correction.
  • Dual deliverables (understanding + action).
  • Cross-lesson bridge sentence.
  • Additional visual-text reinforcement blocks.

Variable Strategy

  • Prefer at most one variable collection per module.
  • Max five interactions per lesson (recommended three to four).
  • No more than three consecutive variable collections before feedback.
  • Reuse global variables when possible; add lesson-local variables only when required.
  • Every variable must have downstream utility (branching, depth control, or deliverable variation).
  • No unresolved placeholders in learner-facing text.
  • Do not recollect the same variable unless explicitly marked as staged comparison.
  • Prevent semantic duplicates even when variable names differ.

Visual-Text Coordination

  • If a visual is needed, describe it in natural language (e.g., "Show an image that …").
  • Pair every visual instruction with a brief explanation of what the visual is meant to convey.
  • Do not inline raw SVG/HTML markup in MarkdownFlow lesson files.

Interaction Design

  • Use no more than one viewpoint_check in a lesson unless justified.
  • Each viewpoint_check must trigger a concrete next action.
  • If using a "restate-boundary-counterintuitive" pattern, branch by option with distinct content.

Phase 3 Outputs

Return per lesson:

  • lesson_id
  • lesson_title
  • mdf_script
  • used_variables
  • depends_on_lessons

See references/lesson-template.md.

Phase 3 Validation

  • Minimum teaching loop exists (setup, explanation, interaction, close).
  • Interaction outcomes visibly alter downstream content.
  • Variable safety rules pass (collect before reference, no duplicate recollection).
  • Core concepts satisfy visual-plus-text coordination.
  • Script remains valid and runnable MarkdownFlow.

Phase 4: Optimization

Audit and improve existing MarkdownFlow teaching prompts. This phase is not for writing from scratch.

When to Use

  • Gap analysis against source material.
  • Script quality upgrades without full rewrites.
  • Consistent chapter style with lower runtime failure risk.

Core Method

  1. Start with a low-friction entry point (cover visual + one light interaction).
  2. Ensure interactions change downstream logic.
  3. Keep structure content-driven, not template-driven.
  4. Build evidence chain: observation/history -> mechanism/data -> conclusion.
  5. Use visuals for abstract structure and text for mechanism + boundaries.
  6. Add viewpoint calibration with branching feedback.
  7. Include concrete correction actions for major misconceptions.
  8. Keep deliverables executable and reusable.
  9. Stabilize syntax and variable usage.

See references/optimization-methodology.md.

High-Standard Constraints

  • Include a lesson cover visual by default.
  • Keep max interactions per lesson at five (recommended three to four).
  • Place interactions at decision points, not only at lesson start.
  • Every interaction must trigger immediate feedback plus downstream effect.
  • Limit consecutive variable collection to three.
  • No uncollected variables in learner-facing text.
  • Spread global variable collection across lessons.
  • Do not recollect the same variable unless marked as staged comparison.
  • Treat semantic duplicates as duplicates even if variable names differ.
  • Keep ending structure lesson-appropriate; interactive endings are optional.
  • Every core concept needs visual-plus-text explanation.
  • Avoid internal authoring terms in learner-facing copy.
  • Keep prompts concrete and answerable.
  • *_viewpoint_check interactions must branch by option.
  • Preserve source information density; do not trade substance for fluency.

Optimization Workflow

  1. Define scope (single lesson vs full course).
  2. Build coverage matrix: source points -> script coverage.
  3. Label issue classes:

- coverage_gap - meaning_shift - explanation_clarity - interaction_no_branching - visual_constraints_missing - variable_or_syntax_risk

  1. Apply smallest safe edits first.
  2. Run checklist validation before final output.
  3. Re-check visual-text pairing for every core concept.
  4. Re-check variable lifecycle (collection, reference timing, reuse).
  5. Re-check semantic duplication in interaction prompts.
  6. Re-check viewpoint branching and downstream action coupling.

See references/review-checklist.md.

Required Output Style

  • Present conclusion and risk level first.
  • Then provide grouped change list by issue class.
  • Use file-level references for traceability.
  • If duplicate script versions exist, declare the authoritative one.
  • If cross-lesson dependency is disallowed, remove dependency text and unbound carryover variables.

Common Failure Patterns

  • Structural edits without content-depth recovery.
  • Over-abstraction that drifts from source meaning.
  • Hidden cross-lesson variables causing runtime failures.
  • Vague prompts that models cannot execute reliably.
  • Viewpoint options that still return identical feedback.
  • Repeated semantic questions with different variable names.
  • Visual tasks without explanatory text.
  • Rigid template consistency at the cost of lesson specificity.

Phase 4 Validation

  • Conclusion and risk level are presented first.
  • All issue classes are fully audited.
  • viewpoint_check interactions branch and trigger distinct next actions.
  • Uncollected variable references and semantic duplicate interactions are removed.
  • Output remains runnable with no loss of source information density.

Phase 5: Deployment

Deploy optimized MarkdownFlow lesson scripts to the AI-Shifu platform as live courses.

Prerequisites

  • Python 3 with requests and python-dotenv packages installed.
  • CLI script: {skillDir}/scripts/shifu-cli.py

Authentication

See references/cli-reference.md for the full login flow.

When no valid token is available, guide the user through the login process:

  1. Ask the user to choose their region (China mainland / non-China-mainland).
  2. For China mainland: use the SMS login flow via shifu-cli.py login.
  3. For non-China-mainland: instruct the user to log in manually and set SHIFU_TOKEN in {skillDir}/.env.

Always use CLI commands. Never make raw HTTP/API calls directly.

Course Directory

MarkdownFlow lesson scripts must be organized in a course directory before deployment. See references/course-directory-spec.md for the full specification.

When continuing from Phase 4 (Path A), write optimized scripts into the course directory structure automatically.

CLI Quick Reference

Core deployment commands:

build --course-dir ./course-a/                          # Build shifu-import.json (offline)
import --new --json-file ./course-a/shifu-import.json   # Import as new course
publish <shifu_bid>                                      # Make course live
show <shifu_bid>                                         # Verify course structure
show <shifu_bid> <outline_bid>                           # Read a specific lesson

See references/cli-reference.md for the complete command reference and references/import-json-format.md for the JSON schema.

Deployment Workflow

From pipeline (Path A continuation):

  1. Write Phase 4 outputs into the course directory (lessons/, README.md, system-prompt.md, optional structure.json).
  2. Run build --course-dir <dir> to generate shifu-import.json.
  3. Run import --new --json-file <dir>/shifu-import.json to create the course.
  4. Run publish <shifu_bid> to make it live.
  5. Verify via platform URL.

Standalone deployment (Path C):

  1. Ensure course directory is ready with MarkdownFlow files.
  2. Run build, import, publish as above.

Common Management

Use these commands for ongoing course operations (Path D):

list                                                   # List all courses
show <shifu_bid>                                       # Show course outline
update-meta <shifu_bid> --name "..." --description "..."
update-lesson <shifu_bid> <outline_bid> --mdf-file updated.md
rename-lesson <shifu_bid> <outline_bid> --name "New Name"
reorder <shifu_bid> --order bid1,bid2,bid3
delete-lesson <shifu_bid> <outline_bid>
publish <shifu_bid>
archive <shifu_bid>

Verification

After any deployment or management operation, verify the result:

  1. Admin console: https://app.ai-shifu.cn/shifu/<shifu_bid> (cn) or https://app.ai-shifu.com/shifu/<shifu_bid> (global)
  2. Course preview: https://app.ai-shifu.cn/c/<shifu_bid>?preview=true (cn) or https://app.ai-shifu.com/c/<shifu_bid>?preview=true (global)
  3. Lesson preview: https://app.ai-shifu.cn/c/<shifu_bid>?preview=true&lessonid=<outline_bid> (cn) or https://app.ai-shifu.com/c/<shifu_bid>?preview=true&lessonid=<outline_bid> (global)
  4. Use show <shifu_bid> to get the lesson outline_bid, then check each lesson's MarkdownFlow content, variable collection, and interaction logic.

Phase 5 Validation

  • Import completes without errors.
  • Course is accessible via platform URL.
  • Lesson count and structure match the source directory.
  • Published course is reachable in preview mode.

MarkdownFlow Syntax (Required)

See references/markdownflow-spec.md for the quick reference.

Authoring principle: - Script text should guide generation behavior. - Do not output full polished learner prose as fixed text. - Never lock full lesson bodies inside deterministic blocks. - For fixed images, use one deterministic line per image. - After each interaction, restate learner selection and reflect it in downstream content. - For input prompts, include example phrasing to reduce blank responses. - Treat ... as a structural input marker, not as decorative punctuation. - For pure input, place ... directly before the prompt text: ?[%{{var}} ...Prompt text]. - For select + input, place ... at the start of the option that opens free text: ...Other, please specify. - Never place ... at the end of prompt text or option labels.

Common syntax mistakes to avoid: - Incorrect: ?[%{{var}} Prompt text...] - Incorrect: ?[%{{var}} Option A | Option B | Other, please specify...] - Correct: ?[%{{var}} ...Prompt text] - Correct: ?[%{{var}} Option A | Option B | ...Other, please specify]

Shared Constraints

Preservation Rules

See references/preservation-rules.md.

Must preserve:

  • Code content and fence language.
  • Image URLs, alt text, and relative placement.
  • Domain terms and factual statements.

Can normalize:

  • Speech filler.
  • Sentence breaks and punctuation.
  • Redundant transitions.

Variable Rules

  • Collect before reference; never use uncollected variables.
  • No more than three consecutive variable collections before feedback.
  • Max five interactions per lesson (recommended three to four).
  • Every variable must produce downstream utility.
  • No unresolved placeholders in learner-facing text.
  • Do not recollect the same variable unless explicitly marked as staged comparison.
  • Prevent semantic duplicates even when variable names differ.
  • Reuse global variables when possible.

Interaction Rules

  • Each lesson includes at least one deepening interaction (calibration, boundary check, or misconception correction).
  • Interaction prompts must be concrete and directly answerable.
  • *_viewpoint_check interactions must branch by option and drive different next steps.
  • Avoid repetitive interaction semantics across lessons unless comparison intent is explicit.
  • Every interaction variable must create visible downstream impact.

Validation Checkpoints

Phase 1 (Segmentation)

  • Source span traceability and immutable block preservation.
  • One core question per lesson candidate.

Phase 2 (Orchestration)

  • All mandatory gates pass.
  • Course index, variable table, and lesson scripts are complete.

Phase 3 (Generation)

  • Teaching loop, variable safety, visual-text coordination.
  • Script is valid runnable MarkdownFlow.

Phase 4 (Optimization)

  • All issue classes audited.
  • Interaction branching and variable lifecycle validated.
  • No loss of source information density.

Phase 5 (Deployment)

  • Import completes without errors.
  • Course is accessible and lesson structure matches source.
  • Published course is reachable in preview mode.

Report Template

See references/report-template.md.

Examples

  • examples/pipeline-full.md
  • examples/segmentation-only.md
  • examples/generation-only.md
  • examples/optimization-only.md
  • examples/fallback-mode.md
  • examples/end-to-end-deploy.md
  • examples/deploy-only.md

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

74.18%
按下载量换算2,507

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills