whoamihappyhacking/lazycat-skills/lazycat-dynamic-deploy
Claude Code and agent skill by whoamihappyhacking/lazycat-skills
- community
Checking that the SKILL.md file is still in the repository.
懒猫微服应用需要部署参数、Go 模板清单渲染或 browser/request/response 脚本注入时使用的动态部署指南。
Install
npx vskill@latest install whoamihappyhacking/lazycat-skills/lazycat-dynamic-deploySKILL.md
懒猫微服动态部署与注入
任何配置生成前,先确认目标 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:
lzc-manifest.yml 片段:
- 用户参数为
.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 阶段先持久化失败的登录/改密数据。
脚本来源只使用官方列出的 inline、builtin://... 或 file:///...;不要宣称或依赖未在官方规范列出的远程 URL 脚本来源。
安全与交付检查
- 参数只收集实际需要的数据,密码使用
secret,示例不写死弱密码。 auth_required保持默认true,除非确有未登录流量需求并完成风险分析;ctx.persist要求非空ctx.safe_uid。when精确到所需路径;/api/*不匹配/api,需要时分别声明。- 正式脚本优先随包提供;不加载远程可变代码。
- request/response 不使用
Promise/async;browser 的ctx.persistAPI 是异步的。 ctx.dump不输出密码、Token 或请求体敏感信息。- 对照
references/injects.md的完整内置参数表和官方专题后再交付。
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lazycat-dynamic-deploy/SKILL.md
Popularity
- Repository stars
- 17
- Repository forks
- 1
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/whoamihappyhacking/lazycat-skills/lazycat-dynamic-deploy)