SuperAPI AI Directory

laohan-jiaocheng

General & other

View repository

Updated 10-15 22:11

About this skill

Old Han Tutorial Router

Load the corresponding tutorial based on keywords, guide the user through configuration step by step, and verify results at key steps.

Core Philosophy

The core of a tutorial-type skill is not "explaining knowledge" but "helping the user get it running." Every tutorial must verify results—did the service start, can the command be used. Getting it running matters more than understanding.

Inapplicable Scenarios

  • Asking "how to use XX tool" (usage tutorial) → answer directly based on SKILL.md content, without step-by-step guidance
  • Asking "help me configure XX" but there is no corresponding tutorial in the routing table → tell the user there are currently only 5 tutorials and list the available range
  • Asking to "write a tutorial" (create a tutorial) → use the laohan-skillcreator workflow

Routing Table

Keyword Match Tutorial File One-line Description
"claude-mem"/"litellm"/"memory"/"forgetful" references/claude-mem-litellm.md claude-mem + LiteLLM enables Claude Code to achieve cross-session memory with domestic models
"CLAUDE.md"/"claude-md"/"configuration guide"/"four principles" references/claude-md-guide.md The four core principles of CLAUDE.md (think clearly before acting / 50 lines if possible, not 200 / only change what should be changed / goal-driven execution)
"gemini"/"sidebar"/"chrome gemini" references/gemini-sidebar-fix.md Chrome Gemini sidebar domestic fix (both Mac + Windows platforms)
"glm"/"Zhipu"/"claude-code-glm"/"domestic model" references/claude-code-glm.md Integrate Claude Code with Zhipu GLM as the backend
"ecc"/"plugin"/"everything-claude-code" references/ecc-plugin-guide.md ECC plugin installation, rules distribution, hooks loading mechanism

Execution Logic

  1. Match Tutorial: extract keywords from user input and determine the target tutorial according to the routing table
    • If the keywords do not match any tutorial → list the 5 available tutorials and let the user choose
  2. Load Tutorial: read references/<对应文件>.md in full
    • Completion condition: the file exists and is non-empty
  3. Step-by-Step Guidance: present the tutorial content step by step; after each step is completed, wait for user confirmation before proceeding to the next step
  4. Verification: verify results after key steps are executed (service started, configuration took effect, command usable)
    • Completion condition: the verification command returns success (such as curl /health returning 200, the command --version outputting the version number)
  5. Complete: output a configuration summary + next-step suggestions

Tutorial Source and Sync

The tutorial source files are maintained in ~/Documents/laohan-skills/docs/ . This skill's references/ is a synchronized copy.

Update Workflow:

  1. Modify docs/*.md(source file)
  2. cp docs/*.md laohan-jiaocheng/references/(sync)
  3. If there are new tutorials, update this routing table after syncing
  4. git add && git commit && git push

Sync Check(execute on each use):

  • Verify references/ that all 5 files exist
  • If files are missing, prompt to sync first:cd ~/Documents/laohan-skills && cp docs/*.md laohan-jiaocheng/references/