Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)29k · #9579

ci-cd-pipeline-builder

Skill này làm gì

Skill này xem các file của repository để nhận diện ngôn ngữ và công cụ, rồi tạo một pipeline khởi đầu cho GitHub Actions hoặc GitLab CI. Dành cho lập trình viên thiết lập hoặc thay thế các kiểm tra tự động.

Khi nào nên dùng

  • ✓Khi bạn thiết lập test và build tự động cho một repository mới.
  • ✓Khi file pipeline hiện tại dễ hỏng hoặc được chép từ dự án khác.
  • ✓Khi bạn muốn chuyển pipeline giữa GitHub Actions và GitLab CI.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/ci-cd-pipeline-builder/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/ci-cd-pipeline-builder/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi cần một pipeline GitHub Actions cho repo này, chạy lint, test và build.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent nhận diện stack của dự án từ các file, rồi tạo các giai đoạn pipeline cho lint, test, build và deploy, kèm cache phù hợp với stack.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

CI/CD Pipeline Builder

Tier: POWERFUL
Category: Engineering
Domain: DevOps / Automation

Overview

Use this skill to generate pragmatic CI/CD pipelines from detected project stack signals, not guesswork. It focuses on fast baseline generation, repeatable checks, and environment-aware deployment stages.

Core Capabilities

  • Detect language/runtime/tooling from repository files
  • Recommend CI stages (lint, test, build, deploy)
  • Generate GitHub Actions or GitLab CI starter pipelines
  • Include caching and matrix strategy based on detected stack
  • Emit machine-readable detection output for automation
  • Keep pipeline logic aligned with project lockfiles and build commands

When to Use

  • Bootstrapping CI for a new repository
  • Replacing brittle copied pipeline files
  • Migrating between GitHub Actions and GitLab CI
  • Auditing whether pipeline steps match actual stack
  • Creating a reproducible baseline before custom hardening

Key Workflows

1. Detect Stack

python3 scripts/stack_detector.py --repo . --format text
python3 scripts/stack_detector.py --repo . --format json > detected-stack.json

Supports input via stdin or --input file for offline analysis payloads.

2. Generate Pipeline From Detection

python3 scripts/pipeline_generator.py \
  --input detected-stack.json \
  --platform github \
  --output .github/workflows/ci.yml \
  --format text

Or end-to-end from repo directly:

python3 scripts/pipeline_generator.py --repo . --platform gitlab --output .gitlab-ci.yml

3. Validate Before Merge

  1. Confirm commands exist in project (test, lint, build).
  2. Run generated pipeline locally where possible.
  3. Ensure required secrets/env vars are documented.
  4. Keep deploy jobs gated by protected branches/environments.

4. Add Deployment Stages Safely

  • Start with CI-only (lint/test/build).
  • Add staging deploy with explicit environment context.
  • Add production deploy with manual gate/approval.
  • Keep rollout/rollback commands explicit and auditable.

Script Interfaces

  • python3 scripts/stack_detector.py --help
    • Detects stack signals from repository files
    • Reads optional JSON input from stdin/--input
  • python3 scripts/pipeline_generator.py --help
    • Generates GitHub/GitLab YAML from detection payload
    • Writes to stdout or --output

References

Câu hỏi thường gặp

Nền tảng nào được hỗ trợ?

GitHub Actions và GitLab CI.

Làm sao nó biết dự án của tôi dùng gì?

Một script nhận diện đọc các file của repository, chẳng hạn lockfile và cấu hình build.

Pipeline đã sẵn sàng cho production chưa?

Đây là một nền tảng cơ bản, và bạn có thể muốn bổ sung cấu hình bảo mật riêng sau này.

Chi tiết

Mô tả gốc của tác giả

Use when setting up or refactoring CI/CD for a repo, before writing workflow YAML. Detects the stack with stack_detector.py and generates the pipeline with pipeline_generator.py.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9579
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự