Lazycat Dynamic Deploy logo

Lazycat Dynamic Deploy

Community
whoamihappyhacking
lazycat-dynamic-deploy

懒猫微服应用需要部署参数、Go 模板清单渲染或 browser/request/response 脚本注入时使用的动态部署指南。

Overview

Publisherwhoamihappyhacking
Repositorylazycat-skills
Skill namelazycat-dynamic-deploy
Stars
61
Forks
9
Bundled files
5
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.

  • 5 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 Dynamic Deploy 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-dynamic-deploy
  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-dynamic-deploy .claude/skills/lazycat-dynamic-deploy
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lazycat Dynamic Deploy 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 Dynamic Deploy 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 Dynamic Deploy 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.

懒猫微服动态部署与注入

任何配置生成前,先确认目标 lzcos 与 lzc-cli,并读取 references/spec-sync.md 按流程现场校准官方规范。本文示例按 LPK V2(lzcos >= 1.5.0、lzc-cli >= 2.0.0)组织;动态渲染能力始于 lzcos 1.3.8+。

选择正确层次

要解决的问题机制必读
安装/重配时收集用户输入lzc-deploy-params.ymlreferences/deploy-params.md
将部署输入或系统值写入运行清单Go text/template 渲染references/manifest-render.md
按页面或请求动态改写行为application.injectsreferences/injects.md

不要用 deploy render 做请求级路由,也不要用 inject 替代静态可表达的 manifest 配置。

部署参数与渲染

lzc-deploy-params.yml:

yaml
params:
  - id: target_host
    type: string
    name: 目标主机
    description: 要连接的主机名或 IP
  - id: admin_password
    type: secret
    name: 管理员密码
    description: 留空时由系统生成随机初始密码
    default_value: "$random(len=20)"

lzc-manifest.yml 片段:

yaml
services:
  web:
    environment:
      TARGET_HOST: {{ .U.target_host | quote }}
      ADMIN_PASSWORD: {{ .U.admin_password | quote }}
      INTERNAL_SECRET: {{ stable_secret "internal_secret" | quote }}
  • 用户参数为 .U/.UserParams;含 . 的 ID 用 index .U "listen.port"。
  • 系统参数为 .S/.SysParams。
  • stable_secret 用于跨重启稳定的内部随机秘密;不要截成短弱口令。
  • 含 {{ ... }} 的模板源不能直接当作最终 YAML 交给普通 YAML 解析器;应检查渲染后的 /lzcapp/run/manifest.yml。
  • LPK V2 的静态元数据只写 package.yml,不要混回 manifest 顶层。

三阶段 inject

  • browser:真实浏览器环境;面向 HTML 页面,可使用 hash 匹配。
  • request:转发 upstream 前的 lzcinit 同步沙盒;可改 Header/Body/路由。
  • response:upstream 响应后的 lzcinit 同步沙盒;可按状态码提交状态或改响应。

request/response 可处理 JSON 等非 HTML 流量;只有 browser 注入要求可承载脚本的 HTML 页面。匹配规则使用 when/unless/do,不存在 include/exclude/mode/scripts。

需要跨请求记住用户状态时:request 只把候选值写入 ctx.flow,response 确认业务成功后才写 ctx.persist,browser 再通过 $persist 参数读取。不能在 request 阶段先持久化失败的登录/改密数据。

yaml
application:
  injects:
    - id: login-autofill
      when:
        - /login
      do:
        - src: builtin://simple-inject-password
          params:
            user: admin
            password:
              $persist: app.password
            autoSubmit: false

脚本来源只使用官方列出的 inline、builtin://... 或 file:///...;不要宣称或依赖未在官方规范列出的远程 URL 脚本来源。

安全与交付检查

  • 参数只收集实际需要的数据,密码使用 secret,示例不写死弱密码。
  • auth_required 保持默认 true,除非确有未登录流量需求并完成风险分析;ctx.persist 要求非空 ctx.safe_uid。
  • when 精确到所需路径;/api/* 不匹配 /api,需要时分别声明。
  • 正式脚本优先随包提供;不加载远程可变代码。
  • request/response 不使用 Promise/async;browser 的 ctx.persist API 是异步的。
  • ctx.dump 不输出密码、Token 或请求体敏感信息。
  • 对照 references/injects.md 的完整内置参数表和官方专题后再交付。

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 Dynamic Deploy AI skill do?

懒猫微服应用需要部署参数、Go 模板清单渲染或 browser/request/response 脚本注入时使用的动态部署指南。

Why use Lazycat Dynamic Deploy on TypingMind?

Because you install it once and use it with any model. Lazycat Dynamic Deploy 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 Dynamic Deploy in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/whoamihappyhacking/lazycat-skills/tree/main/skills/lazycat-dynamic-deploy. 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 Dynamic Deploy?

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 Dynamic Deploy?

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

Is the Lazycat Dynamic Deploy 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 👇