
Lazycat Dynamic Deploy
This handles dynamic deployment configuration and script injection for Lazycat MicroServer applications. You define user prompts in lzc-deploy-params.yml (things like IP addresses or passwords), then use Go template syntax to render those values into your manifest at install time. The injection feature is clever: it lets you force JavaScript into third-party Docker image frontends without touching the original code, useful for auto-filling login forms or injecting credentials you generated with stable_secret. The mode matching (exact vs prefix) and include/exclude lists give you precise control over which pages get the injection. Worth learning if you're deploying self-hosted apps where users need to configure endpoints or you need to work around hardcoded defaults.
- skills.sh installs
- 227
- GitHub stars
- 61
- last updated
- Aug 21, 2026
Install
$ npx -y skills add whoamihappyhacking/lazycat-skills --skill lazycat-dynamic-deploy --agent claude-codeInstalls into .claude/skills of the current project.
Files
懒猫微服动态部署与注入
任何配置生成前,先确认目标 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.yml | references/deploy-params.md |
| 将部署输入或系统值写入运行清单 | Go text/template 渲染 | references/manifest-render.md |
| 按页面或请求动态改写行为 | application.injects | references/injects.md |
不要用 deploy render 做请求级路由,也不要用 inject 替代静态可表达的 manifest 配置。
部署参数与渲染
lzc-deploy-params.yml:
params:
- id: target_host
type: string
name: 目标主机
description: 要连接的主机名或 IP
- id: admin_password
type: secret
name: 管理员密码
description: 留空时由系统生成随机初始密码
default_value: "$random(len=20)"
lzc-manifest.yml 片段:
services:
web:
environment:
TARGET_HOST: {{ .U.target_host | quote }}
ADMIN_PASSWORD: {{ .U.admin_password | quote }}
INTERNAL_SECRET: {{ stable_secret "internal_secret" | quote }}
Sponsors
Details
- Repository
- github.com/whoamihappyhacking/lazycat-skills
- Categories
- DevOps & CI/CD, Release Management
- First seen
- Jun 3, 2026