用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/AsiaOstrich/universal-dev-standards --skill ci-cd命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
[UDS] 以 Claude 原生 Agent tool 编排多任务执行计划(DAG-based,无外部引擎)。 Use when: executing a plan.json file with parallel/sequential task dependencies. Keywords: orchestrate, plan, execute, DAG, task plan, 编排, 执行计划, 并行.
[UDS] 从 Spec 文档、OpenSpec 变更或自由文本需求生成 plan.json。 Use when: converting specifications into executable task plans for /orchestrate. Keywords: plan, spec, task plan, 计划, 规格, 任务, plan.json, DAG.
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.
基于 SOC 职业分类
正在显示 SKILL.md
| source | ../../../../skills/ci-cd-assistant/SKILL.md |
| source_version | 1.0.0 |
| translation_version | 1.0.0 |
| last_synced | "2026-03-24T00:00:00.000Z" |
| status | current |
| description | [UDS] 引導 CI/CD 管線設計、配置和優化 |
| name | ci-cd |
| allowed-tools | Read, Grep, Glob |
| scope | universal |
| argument-hint | [pipeline config or stage | Pipeline 配置或階段] |
語言: English | 繁體中文
引導 CI/CD 管線設計,遵循業界最佳實踐與 DORA 指標。
BUILD ──► TEST ──► ANALYZE ──► DEPLOY ──► VERIFY
建置 測試 分析 部署 驗證
| 階段 | 用途 | 關鍵活動 |
|---|---|---|
| Build | 編譯與打包 | 安裝相依、編譯、產出成品 |
| Test | 品質驗證 | 單元、整合、端對端測試 |
| Analyze | 程式碼品質 | 程式碼檢查、安全掃描、覆蓋率 |
| Deploy | 發布到環境 | 預備環境 → 正式環境部署 |
| Verify | 部署後驗證 | 冒煙測試、健康檢查、監控 |
| 指標 | 菁英 | 高 | 中 | 低 |
|---|---|---|---|---|
| 部署頻率 | 隨需(每日多次) | 每週至每月 | 每月至半年 | > 6 個月 |
| 變更前置時間 | < 1 小時 | 1 天至 1 週 | 1 至 6 個月 | > 6 個月 |
| MTTR | < 1 小時 | < 1 天 | 1 天至 1 週 | > 6 個月 |
| 變更失敗率 | 0–15% | 16–30% | 16–30% | > 30% |
node_modules、.m2、pip cache| 平台 | 快取 | 平行化 | 密鑰 | 備註 |
|---|---|---|---|---|
| GitHub Actions | actions/cache | matrix 策略 | secrets.* | 使用 reusable workflows |
| GitLab CI | cache: 關鍵字 | parallel: 關鍵字 | CI/CD Variables | 使用 include: 模組化 |
| Jenkins | Stash/unstash | parallel {} 區塊 | Credentials plugin | 使用 shared libraries |
/ci-cd - 顯示完整管線指引/ci-cd github-actions - GitHub Actions 專屬提示/ci-cd --optimize - 管線優化建議/ci-cd build - 建置階段最佳實踐/ci-cd 完成後,AI 助手應建議:
管線指引已提供。建議下一步:
- 執行
/deploy設定部署策略- 執行
/security檢查管線安全- 執行
/testing設計測試策略- 執行
/commit建立規範化提交