用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill cicd-base命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cicd-base |
| description | Shared CI/CD — stages, quality gates, secret management, rollback. |
Stages run in this order. Each stage must pass before the next begins.
| # | Stage | Purpose | Fails on |
|---|---|---|---|
| 1 | lint | Code style and static analysis | Any lint error |
| 2 | test | Unit + integration tests with coverage report | Test failure or coverage below threshold |
| 3 | security-scan | SAST + dependency vulnerability check (OWASP) | HIGH or CRITICAL findings |
| 4 | build | Compile / bundle / containerize | Build error |
| 5 | publish | Push artifact/image to registry | Registry error — runs only on main/release branches |
| 6 | deploy-staging | Deploy to staging environment | Deploy failure — auto, after publish |
| 7 | smoke-test | Automated smoke tests against staging | Any smoke test failure |
| 8 | deploy-prod | Deploy to production | Manual gate, or auto on semver tag |
Platform-specific skills (
cicd-github,cicd-gitlab,cicd-bitbucket,cicd-jenkins) map these stages to their native primitives. This file defines the intent — the platform skill defines the syntax.
publish, deploy-staging, deploy-prod) runsHIGH or CRITICAL severity findings block the pipeline; MEDIUM/LOW produce warnings only| Rule | Detail |
|---|---|
| Tagging | Tag images with git SHA for every build; add semver tag when on a release branch |
| Retention | Keep last 10 builds; prune older artifacts automatically |
| Immutability | Never redeploy a mutable latest tag to production — always use a pinned SHA or semver |
| Registry | Push to a private registry; do not rely on Docker Hub for production images |
deploy-staging and deploy-prod stage must have a documented rollback step