whoamihappyhacking avatar

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-code

Installs 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.ymlreferences/deploy-params.md
将部署输入或系统值写入运行清单Go text/template 渲染references/manifest-render.md
按页面或请求动态改写行为application.injectsreferences/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

More from whoamihappyhacking/lazycat-skills

All 5
1sickn33 avatark8s-security-policiessickn33/antigravity-awesome-skillsk8s security policies216skills.sh installs
2pluginagentmarketplace avatardocker-compose-setuppluginagentmarketplace/custom-plugin-dockerSet up multi-container applications with Docker Compose including services, networks, and volumes209skills.sh installs
3warpdotdev avatarci-fixwarpdotdev/oz-skillsDiagnose and fix GitHub Actions CI failures. Inspects workflow runs and logs, identifies root causes, implements minimal fixes, and pushes to a fix branch. Use 207skills.sh installs
4sickn33 avatarml-pipeline-workflowsickn33/antigravity-awesome-skillsml pipeline workflow204skills.sh installs
5sickn33 avatarbazel-build-optimizationsickn33/antigravity-awesome-skillsbazel build optimization198skills.sh installs
6sickn33 avatarincident-response-smart-fixsickn33/antigravity-awesome-skillsincident response smart fix197skills.sh installs