agent-skills/README.md
2026-03-31 14:34:38 +08:00

59 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Agent Skills
这个仓库用于公开分发可安装的 agent skills。
## 技能列表
### `gitops-app-onboarding`
用于 Baizhi GitOps 平台的项目接入工作流,适用于:
- `deploy.baizhi.cloud`
- `registry.baizhi.cloud`
- GitLab + Argo CD 的固定交付模型
适合处理:
- 给当前平台接入新项目
- 恢复 `.gitlab-ci.yml`、`deploy/`、Helm Chart、release bundle
- 修当前平台的发版链路
- 让应用仓库在发版时推送自己的 release 结果
- 按固定 nginx + `NodePort` 代理模型组织前后端对外暴露
不适合处理:
- 通用 GitLab CI 改造
- 通用 Helm Chart 编写
- 未指向当前平台常量的通用 GitOps / Argo CD 任务
- 修改 GitOps 仓库中的 `Application`、`AppProject` 或其他发布侧清单
- 改成 Ingress 驱动的对外暴露方式
## 安装
安装 `gitops-app-onboarding`
```bash
npx skills add "https://deploy.baizhi.cloud/gitops-admin/agent-skills.git" --full-depth --skill gitops-app-onboarding -g -y
```
如果已经拿到本地副本,也可以直接从本地目录安装:
```bash
npx skills add "/path/to/agent-skills" --full-depth --skill gitops-app-onboarding -g -y
```
安装后可先确认是否已被识别:
```bash
npx skills add "https://deploy.baizhi.cloud/gitops-admin/agent-skills.git" --full-depth --skill gitops-app-onboarding --list
```
## 仓库结构
```text
agent-skills/
├── README.md
└── gitops-app-onboarding/
└── SKILL.md
```