skills/ci-cd-assistant/SKILL.md
Guide CI/CD pipeline design, configuration, and optimization. Use when: setting up pipelines, optimizing build times, configuring deployment stages. Keywords: CI/CD, pipeline, GitHub Actions, deployment, build.
npx skillsauth add asiaostrich/universal-dev-standards ci-cdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Language: English | 繁體中文
Guide CI/CD pipeline design following industry best practices and DORA metrics.
引導 CI/CD 管線設計,遵循業界最佳實踐與 DORA 指標。
BUILD ──► TEST ──► ANALYZE ──► DEPLOY ──► VERIFY
建置 測試 分析 部署 驗證
| Stage | Purpose | Key Activities | 關鍵活動 | |-------|---------|----------------|----------| | Build | Compile & package | Dependency install, compilation, artifact creation | 安裝相依、編譯、產出成品 | | Test | Quality verification | Unit, integration, E2E tests | 單元、整合、端對端測試 | | Analyze | Code quality | Lint, security scan, coverage report | 程式碼檢查、安全掃描、覆蓋率 | | Deploy | Release to environment | Staging → Production rollout | 預備環境 → 正式環境部署 | | Verify | Post-deploy validation | Smoke tests, health checks, monitoring | 冒煙測試、健康檢查、監控 |
| Metric | Elite | High | Medium | Low | |--------|-------|------|--------|-----| | Deployment Frequency 部署頻率 | On-demand (multiple/day) | Weekly–Monthly | Monthly–Biannual | > 6 months | | Lead Time for Changes 變更前置時間 | < 1 hour | 1 day–1 week | 1–6 months | > 6 months | | MTTR 平均恢復時間 | < 1 hour | < 1 day | 1 day–1 week | > 6 months | | Change Failure Rate 變更失敗率 | 0–15% | 16–30% | 16–30% | > 30% |
node_modules, .m2, pip cache between runs快速失敗、快取相依、平行作業、不可變成品、環境一致、密鑰管理、分支保護、回滾策略。
| Platform | Cache | Parallelism | Secrets | 備註 |
|----------|-------|-------------|---------|------|
| GitHub Actions | actions/cache | matrix strategy | secrets.* context | 使用 reusable workflows |
| GitLab CI | cache: keyword | parallel: keyword | CI/CD Variables | 使用 include: 模組化 |
| Jenkins | Stash/unstash | parallel {} block | Credentials plugin | 使用 shared libraries |
/ci-cd # Show full pipeline guidance | 顯示完整管線指引
/ci-cd github-actions # GitHub Actions specific tips | GitHub Actions 專屬提示
/ci-cd --optimize # Pipeline optimization advice | 管線優化建議
/ci-cd build # Build stage best practices | 建置階段最佳實踐
After /ci-cd completes, the AI assistant should suggest:
管線指引已提供。建議下一步 / Pipeline guidance provided. Suggested next steps:
- 部署配置 → 執行
/deploy設定部署策略 ⭐ Recommended / 推薦 — Configure deployment strategy- 安全掃描 → 執行
/security檢查管線安全 — Check pipeline security- 測試設計 → 執行
/testing設計測試策略 — Design test strategy- 提交規範 → 執行
/commit建立規範化提交 — Create conventional commit
| Version | Date | Changes | 變更說明 | |---------|------|---------|----------| | 1.0.0 | 2026-03-24 | Initial release | 初始版本 |
CC BY 4.0 — Documentation content
development
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
development
[UDS] 识别重复流程并以正确的开发深度构建 Skill
tools
[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, 推送, 保护分支, 质量门禁.