Lazycat Advanced Routing logo

Lazycat Advanced Routing

Community
whoamihappyhacking
lazycat-advanced-routing

处理懒猫微服 LPK V2 的 HTTP/HTTPS 路由、域名前缀、Host/TLS、复杂反向代理及 TCP/UDP 四层转发问题。

Overview

Publisherwhoamihappyhacking
Repositorylazycat-skills
Skill namelazycat-advanced-routing
Stars
61
Forks
9
Bundled files
6
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by whoamihappyhacking on GitHub. Read the source before you install it.

Installation

Install the Lazycat Advanced Routing AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/whoamihappyhacking/lazycat-skills/tree/main/skills/lazycat-advanced-routing
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/whoamihappyhacking/lazycat-skills.git /tmp/lazycat-skills
mkdir -p .claude/skills
cp -r /tmp/lazycat-skills/skills/lazycat-advanced-routing .claude/skills/lazycat-advanced-routing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lazycat Advanced Routing in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Lazycat Advanced Routing on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Lazycat Advanced Routing is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

懒猫微服高级路由

按下面顺序工作,不要直接套用旧版清单或旧镜像示例。

1. 先校准官方规范

任何打包、构建或路由配置任务,先读取 references/spec-sync.md,按其中流程核对当前官方原文,并确认目标 lzcos 与 lzc-cli 版本。仓库参考文档是快照;若与当前官方冲突,以官方为准。

LPK V2 必须拆分配置:

  • package.yml:package、version、name、description、权限等静态包信息。
  • lzc-manifest.yml:application、services 等运行结构。
  • 不要在 V2 manifest 顶层继续写旧元数据,也不要添加不存在的 application.secondary_domains。

2. 选择正确的流量机制

需求使用关键规则
简单 HTTP/HTTPS、静态文件或启动本地程序application.routesURL_PATH=UPSTREAM;默认移除匹配的路径前缀
保留路径、按域名前缀分流、控制 Host/Header/TLS 校验application.upstreamsbackend 只支持 http、https、file
TCP/UDP、数据库或其他非 HTTP 协议application.ingressL4 直通,不经过平台 HTTP 鉴权
内置能力无法表达的复杂重写应用内反向代理优先用已核验的当前镜像,不复制过时 app-proxy 标签

协议边界必须明确:

  • routes 支持 http(s)://、file:///、exec://端口,程序路径。
  • upstreams[].backend 支持 http、https、file,不支持 exec://;需要启动程序时使用 backend_launch_command。
  • ingress 只声明 tcp 或 udp,不要用它代替普通 HTTP 路由。

3. 域名与服务发现硬规则

  • 每个应用自动拥有 <prefix>-<实际子域名>.<微服根域> 形式的前缀域名;按域名分流使用 upstreams[].domain_prefix。
  • 实际分配域名可能因冲突或多实例而变化,只能从 LAZYCAT_APP_DOMAIN 获取,不要按 application.subdomain 硬拼最终域名。
  • 同一应用内通常使用 http://<service>:<port>。需要让应用内代理收到完整入口 Host 时,按官方多域名方案使用 <service>.<package-id>.lzcapp。
  • .lzcapp 服务 DNS 不等于跨应用调用机制。代表用户访问另一个应用的 HTTP 入口应使用 app.<target-package-id>.lzcx,并按官方应用间访问文档处理委托权限与用户票据。
  • 前缀域名流量会忽略 application.ingress;L4 仅使用应用默认域名对应的入口。

4. 风险边界

  • use_backend_host 控制 HTTP Host,不是官方声明的 TLS SNI 开关;HTTPS backend 应写与证书匹配的主机名。
  • disable_backend_ssl_verify 会关闭后端证书校验,只能在明确风险后使用。
  • L4 转发没有平台账户鉴权;应用必须自行实现协议鉴权。
  • 接管 80/443 会绕过鉴权、自动唤醒、平台证书以及 routes/upstreams,且必须显式设置 yes_i_want_80_443: true。绝大多数应用不应这样做。

5. 按需渐进读取

只加载当前问题需要的文档:

  • 简单路由、协议与服务 DNS:references/route.md
  • upstreams、Host/TLS、复杂代理:references/advanced-routes.md
  • 域名前缀、多域名分流:references/secondary-domains.md
  • TCP/UDP 与 80/443 风险:references/l4forward.md

输出配置前至少检查:文件是否按 V2 拆分、字段是否属于正确层级、协议是否匹配、是否误用跨应用 DNS、是否扩大未鉴权入口,以及所用字段是否满足目标系统版本。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Lazycat Advanced Routing AI skill do?

处理懒猫微服 LPK V2 的 HTTP/HTTPS 路由、域名前缀、Host/TLS、复杂反向代理及 TCP/UDP 四层转发问题。

Why use Lazycat Advanced Routing on TypingMind?

Because you install it once and use it with any model. Lazycat Advanced Routing is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Lazycat Advanced Routing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/whoamihappyhacking/lazycat-skills/tree/main/skills/lazycat-advanced-routing. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Lazycat Advanced Routing?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Lazycat Advanced Routing?

As many as you like. As long as a model supports skills, you can use Lazycat Advanced Routing with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Lazycat Advanced Routing AI skill free?

It is published on GitHub by whoamihappyhacking. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇