How this skill is triggered — by the user, by Claude, or both
Slash command
/unipus-devops-plugin:unipus-infra-init-appThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
初始化 Git 仓库为平台标准服务,生成 service.yaml 与 Jenkinsfile。
初始化 Git 仓库为平台标准服务,生成 service.yaml 与 Jenkinsfile。
宣告:正在执行 unipus-infra-init-app — 平台服务初始化。
以下任一检查失败立即停止,不进入后续流程:
| 检查项 | 命令 | 通过条件 |
|---|---|---|
| Git 仓库 | test -d .git | .git/ 目录存在 |
| Git Remote | git remote -v | 有输出 |
| Remote 属于平台 | 解析 remote URL | 包含 git.unipus.cn |
| 无 Dockerfile | test ! -f Dockerfile | 文件不存在 |
| 无 k8s/ manifests/ chart/ | ls | 目录不存在 |
| service.yaml 冲突 | test -f service.yaml | 不存在;已存在则询问是否覆盖 |
| Jenkinsfile 冲突 | test -f Jenkinsfile | 不存在;已存在则检查是否为平台标准内容 |
references/service-yaml-template.yaml 和 references/init-checklist.mdgit config user.name 推断)references/service-yaml-template.yaml 填充所有字段git checkout dev,提交 service.yaml 和 Jenkinsfile,推送@Library('jenkins-shared-library@main') _
platformPipeline()
| 现象 | 处理 |
|---|---|
| remote URL 不含 git.unipus.cn | 停止,提示用户在平台仓库中操作 |
| 已存在 Dockerfile | 停止,该仓库可能已完成初始化或使用自定义构建 |
| 已存在 k8s/ 等目录 | 停止,平台不支持自定义 manifest |
| Jenkinsfile 内容不是平台标准 | 警告并询问是否覆盖 |
| service.yaml 已存在 | 询问是否覆盖,否则停止 |
| git remote -v 无输出 | 停止,提示先设置 remote |
详细字段说明见 references/service-yaml-template.yaml,校验清单见 references/init-checklist.md,命名规则见 references/naming-rules.md。
npx claudepluginhub glepooek/unipus-plugins-official --plugin unipus-devops-pluginProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.