Logo Ci Cd

Ci Cd

Cộng đồng
nahid-sparktales
ci-cd

Design the shape of a delivery pipeline — what each stage actually proves, what gates what, where verification belongs, and how a run reports the truth instead of a green tick. Use when a pipeline is being designed or restructured, when a release got through a passing pipeline broken, when deciding what blocks a merge or a deploy, or when a stage claims more than it ran. Not for provider-specific workflow YAML (github-actions), image authoring (docker), writing the tests themselves (test-design), or handling an outage in progress.

Tổng quan

Nhà phát hànhnahid-sparktales
Kho mãagent-dispatcher
Tên kỹ năngci-cd
Sao
58
Bản fork
5
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được nahid-sparktales công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ci Cd trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/devops/ci-cd
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/devops/ci-cd .claude/skills/ci-cd
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ci Cd trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ci Cd ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ci Cd với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Pipeline design

A pipeline is a chain of claims about a commit. Each stage is entitled to exactly one claim, and almost every bad release is a stage that made a bigger one than it earned.

Keep the words apart, because the pipeline will not:

  • built — it compiled and packaged. Nothing ran.
  • executed — the code ran. Nobody asserted anything about what it did.
  • tested — assertions ran against it and passed. Only the assertions that exist.
  • reviewed — a human or an agent read it. No execution is implied.
  • deployed — the artifact reached an environment. It may be crash-looping.
  • verified — the deployed thing was observed doing the intended work, in that environment.

A pipeline that reports "deployed" as "verified" is the single most expensive defect in this document.

When this fires

A pipeline is being designed, restructured, or reviewed; something broken reached an environment through a passing pipeline; the gate policy is in question; or a stage's reported meaning does not match what it ran. It does not fire for one workflow file's syntax, nor during an active incident, where restoring service outranks fixing the pipeline that let it through.

Procedure

  1. Map the pipeline that exists before proposing one. Triggers, stages in order, what each stage runs, which are required checks, who can bypass them, where the deployed artifact comes from, and what happens on failure. Draw it from the configuration and from recent runs, not from what the README says it does.
  2. Write the claim each stage is entitled to make, in the vocabulary above, in one line each. A stage that cannot state its claim is either redundant or is silently trusted for something it does not check. This step alone finds most of the holes.
  3. Order stages by how cheaply they rule things out. Fast, broad checks first — format, lint, types, unit tests — then integration, then the artifact build, then tests against a deployed environment. The pipeline should spend its first two minutes eliminating the most common failures, not compiling for twelve.
  4. Build the artifact once and promote that exact artifact. Rebuilding per environment means the thing you tested is not the thing you shipped. Give it an immutable identity — a digest or an immutable tag, plus the commit SHA — and carry that identity through every subsequent stage and into the deployment record.
  5. Separate gates from signals, and mean it. A gate blocks; a signal informs. Anything advisory must be genuinely non-blocking, and anything blocking must be worth blocking for. A gate that is routinely overridden has already stopped being a gate — either enforce it or demote it, but do not leave it as theatre.
  6. Put verification after the thing it verifies, against the running system. Post-deploy checks hit the deployed environment, assert the revision identity they expect, and exercise at least one real path through the application. A 200 from a health endpoint proves a process is listening — it is not evidence that the new code is the code answering.
  7. Design rollback with the deploy, not after it. Name the rollback action, how long it takes, and who runs it. It is only credible if it has been executed, so record when it was last exercised. A schema or data migration that cannot be reversed makes rollback a lie: sequence it expand-then-contract so the previous version keeps working against the new schema.
  8. Keep environments and their credentials separate. Each environment holds its own secrets, and a stage gets only the credentials for the environment it acts on. A pipeline where every stage can reach production is a pipeline where every stage is a production risk, including the one that runs contributed test code.
  9. Require explicit authorization for consequential steps. Production deploys, publishing packages, destroying infrastructure, and data migrations belong behind a human approval. An agent prepares these and stops: proposing automatic deploy on merge changes who can ship, so say that consequence out loud and get confirmation before making it so.
  10. Make skipped and cached work legible. Conditional stages that skip must not aggregate into a green summary as though they ran, and a stage restored from cache must say so. Check the failure path deliberately: introduce a failure on a branch and confirm the pipeline goes red at the right stage, with a message naming what failed.
  11. Handle flakes as defects with owners. Retry-until-green converts an unreliable test into an unreliable pipeline and hides real intermittent bugs. Quarantine the test out of the gate, with a name, an owner, and a date, and report retries in the run rather than absorbing them.
  12. Measure the things that decide whether it is trusted: time to feedback on a change, how often the main branch is red, and how often the gate is bypassed. A slow or noisy pipeline is routed around, and a routed-around pipeline verifies nothing regardless of how well it is designed.
  13. Change the pipeline the way you change production code. On a branch, with a full run observed end to end, including at least one deliberate failure. Then merge.

Checklist

  • Existing pipeline mapped from configuration and real runs
  • Every stage has a one-line claim in the built/executed/tested/reviewed/deployed/verified vocabulary
  • One artifact build, with an immutable identity carried to deployment
  • Gates and signals distinguished; every gate is one someone would actually stop for
  • Post-deploy verification asserts the deployed revision and one real path
  • Rollback named, time-bounded, and last-exercised date recorded
  • Credentials scoped per environment
  • Consequential steps require explicit approval; nothing irreversible runs unattended
  • Skipped and cached stages are visible in the summary
  • Failure path exercised — the pipeline observed going red for the right reason

Failure handling

  • A broken release passed a green pipeline. Do not add a stage yet. Find which stage should have caught it and what it actually ran; usually the check exists but asserts something weaker than assumed, or ran against a different artifact. Fix the claim before adding coverage.
  • The pipeline is red and nobody knows why. Distinguish infrastructure failure, flake, and a real regression before any retry. Re-running first destroys the evidence and teaches the team that red means "try again".
  • A stage cannot run here — no environment, no credentials, no runner. That stage is unrun. Report which claim in the chain is now missing, and do not let the stages that did run stand in for it.
  • Deploy succeeded but the service is unhealthy. Deployed is not verified. Roll back or stop the rollout first, then diagnose; do not push a fix forward through a pipeline whose verification you have just seen fail to catch this.
  • Asked to disable or bypass a gate to get something out. That is a decision with an owner, not a pipeline edit. Say what the gate was protecting against and what is lost by skipping it, and let the human decide and record it.

Evidence to report

The stage list with each stage's claim, and which stages actually ran in the run you are reporting on. The artifact identity — digest and commit — as it appeared at build and as observed in the target environment. The post-deploy check that ran and what it asserted. The result of the deliberate failure test. Timings per stage. And an explicit list of claims not made: which environments, paths, and failure modes this pipeline does not cover.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

Kỹ năng AI Ci Cd làm được gì?

Design the shape of a delivery pipeline — what each stage actually proves, what gates what, where verification belongs, and how a run reports the truth instead of a green tick. Use when a pipeline is being designed or restructured, when a release got through a passing pipeline broken, when deciding what blocks a merge or a deploy, or when a stage claims more than it ran. Not for provider-specific workflow YAML (github-actions), image authoring (docker), writing the tests themselves (test-design), or handling an outage in progress.

Vì sao nên dùng Ci Cd trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ci Cd là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ci Cd trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/devops/ci-cd. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ci Cd?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ci Cd với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ci Cd với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ci Cd có miễn phí không?

Có. Kỹ năng này được nahid-sparktales phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇