rheinmir/skills-kit · Archived

ci-cd

CI/CD helper — push git để trigger pipeline, report luồng từ file triển khai có trong repo

First seen Jun 20, 2026

Installation

$ npx skills add rheinmir/skills-kit --skill ci-cd

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Also in this package

Other skills from rheinmir/skills-kit.

npx skills add rheinmir/skills-kit

Browse all from rheinmir/skills-kit

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Read, Glob, Grep

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,527 B
  • docs SUMMARY.md 115 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Người dùng muốn push code và/hoặc hiểu luồng CI/CD của repo hiện tại.

Detect mode từ input:

  • Nếu input bắt đầu bằng f hoặc force → FORCE MODE: push ngay không hỏi, report sau
  • Không có prefix → NORMAL MODE: hỏi xác nhận trước khi push

Thực hiện theo thứ tự:

1. Scan file triển khai (parallel)

Tìm tất cả file CI/CD phổ biến:

  • Jenkinsfile hoặc Jenkinsfile.*
  • .github/workflows/*.yml
  • .gitlab-ci.yml
  • Dockerfile, docker-compose*.yml
  • .circleci/config.yml
  • bitbucket-pipelines.yml
  • azure-pipelines.yml
  • cloudbuild.yaml
  • fly.toml, render.yaml, railway.toml

2. Đọc và phân tích file tìm được

Với mỗi file tìm được, đọc nội dung và extract:

  • Các stages/jobs theo thứ tự
  • Trigger (push branch nào, PR, manual, schedule)
  • Environment target (dev/staging/prod)
  • Commands chính (build, test, deploy)

3. Output report theo format:

=== CI/CD PIPELINE REPORT ===

FILE:      <tên file tìm thấy>
PLATFORM:  <Jenkins / GitHub Actions / GitLab CI / ...>
TRIGGER:   <push to main / PR / manual / ...>

STAGES:
  1. <stage name> → <lệnh chính>
  2. <stage name> → <lệnh chính>
  ...

ENV TARGETS: <dev / staging / prod>
DEPLOY TO:   <server / k8s / docker / cloud service>
GOTCHAS:     <biến env cần set, secret cần có, điều kiện đặc biệt>

Nếu không tìm thấy file CI/CD nào → báo rõ và gợi ý platform phù hợp dựa trên stack repo.

4. Kiểm tra git status

git status --short
git log origin/HEAD..HEAD --oneline 2>/dev/null

Hiển thị:

  • Files chưa commit
  • Commits chưa push

5. Push theo mode

NORMAL MODE — hỏi trước:

  • Nếu có commits chưa push → hỏi: Có N commit chưa push lên <branch>. Push để trigger pipeline không?
  • Nếu user confirm → git push
  • Nếu còn file chưa commit → hỏi có muốn commit trước không

FORCE MODE (f prefix) — không hỏi:

  • Nếu có file chưa commit → git add -A && git commit -m "chore: force deploy" rồi push
  • Nếu chỉ có commits chưa push → git push ngay
  • Sau khi push xong mới output report và kết quả

Không tự push mà không hỏi — trừ khi FORCE MODE.