Logo Git Delivery

Git Delivery

Cộng đồngPhổ biến
ryan4yin
git-delivery

Writes commit messages, pull/merge request and issue text, and review replies that follow the target repository's conventions, and cleans up after merge. Use when committing, opening or updating a PR/MR or issue, answering code review, or finishing after a reviewed change merges.

Add to TypingMind

Tổng quan

Nhà phát hànhryan4yin
Kho mãnix-config
Tên kỹ nănggit-delivery
Sao
2.1K
Bản fork
104
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 ryan4yin 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 Git Delivery 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/ryan4yin/nix-config/tree/main/agents/skills/git-delivery
  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/ryan4yin/nix-config.git /tmp/nix-config
mkdir -p .claude/skills
cp -r /tmp/nix-config/agents/skills/git-delivery .claude/skills/git-delivery
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 Git Delivery 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 Git Delivery 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 Git Delivery 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.

Git Delivery

A diff that needs a long explanation is a diff to fix first: rename the thing, split the commit, or put the reason in a comment at its primary location. Delivery text carries only what no artifact can show, for a reader without the task's context: the reviewer now, and the maintainer reading git log or git blame years later. The caps below are the standard: a draft over a cap is cut until it fits, not justified. This skill grants no authorization.

Read examples.md for short messages and descriptions that follow these rules.

Before writing

Run git log --no-merges -n 20 -- <touched paths> and read any contribution guide and PR template, every time, even for a one-line change. Name in one line the convention you followed and where you found it.

  1. The repository's conventions override the defaults below. Supply required metadata (sign-off, links, AI disclosure) only when true; never invent identities, and do not carry one repository's requirements into another.
  2. Identify the comparison base and destination separately. Report an identity or hosting-account mismatch instead of editing Git config.
  3. Describe what is actually delivered: the staged diff for a commit, the full diff against the base for a PR — not the task title or an earlier attempt.
  4. Collect what the diff cannot show: the problem and its impact, costs and side effects (with numbers when measured), and rejected alternatives a reader would otherwise propose. The caps decide what survives. Ask instead of inventing a reason.

Commit messages

  • Subject: the repository's prefix convention, defaulting to Conventional Commits; imperative, aiming at 50 characters with 72 as the ceiling.
  • Body: zero lines unless the change has an effect the diff does not show — data deleted or rewritten outside the changed lines, a stored format or an option other code reads changing meaning, or a running system touched beyond what the changed lines say. A version bump, a config value, a moved and re-grouped file, or a formatter, lint, or build setting states its own effect: no body. When a trigger applies: at most 2 sentences and 40 words, and every sentence names an effect, not a motive. Otherwise the reason goes in the subject when it fits inside the ceiling. Never in a body: file lists, change counts, the measurement that motivated the change, alternatives, or how the problem was found.
  • Summarize an issue instead of only linking it; cite another commit by abbreviated hash and subject. Trailers go last in the repository's format (Fixes:, Refs:, Signed-off-by:, BREAKING CHANGE:), and credit other people only as the repository's policy allows. Notes meant only for current reviewers, such as changes since the last round, stay out.
  • Pass the message with git commit -F <file> or one -m per paragraph. If a hook rejects the commit, nothing was committed: fix the cause and commit again, since --amend would rewrite the previous commit.

Pull/merge requests

The description often becomes the squash-merge message. Check for an existing open PR for the same branch or issue.

  • Title: a commit subject for the whole change.
  • Body: at most 80 words normally, or 160 only for migration or rollback steps, a risk the reviewer must weigh, or a measured result the reviewer cannot see. Use short paragraphs or up to 5 bullets to separate distinct points; brevity should make the change easy to scan. Lead with the changed behavior and its effect. Follow the repository template when one exists; check only boxes that are true. Add only what the change needs: a breaking change names the affected interface, before and after, and the migration; an operational one names the operator effect and measured impact; a cross-cutting one says why the breadth is necessary and where review should start.
  • Self-check before submitting: count. Subject ≤72 characters; commit body 0 lines, or ≤2 sentences and ≤40 words; description ≤80 words, or ≤160 with one of the named triggers. Over a cap, cut in this order until under: anything the diff already shows, then supporting numbers, then alternatives, then adjectives. Report the counts with the draft.
  • Do not add default Summary/Changes/Test Plan headings, pasted commands, CI logs, commit lists, or exhaustive file lists, and cut any sentence a reviewer cannot act on. Replace internal process terms (plan steps, task numbers, agent names) with the behavior they refer to.
  • Verification: report the checks that establish behavior or coverage, with revision and platform; skip routine lint. A build does not show runtime behavior. Once the code changes, an earlier result is historical: rerun it or label it and say what remains unverified.
  • Fixes #123 only for a verified issue in the target repository that this change resolves; Refs only links.
  • Write as if the diff had been written in one pass: state what is excluded and why, not who asked or how the branch evolved. When later commits change scope, risk, or migration, rewrite title and description. After a follow-up push, answer in the existing threads, naming the new commit; do not post a separate summary of what changed since the last round unless the repository's guide or a reviewer asks.
  • Pass multiline text from a file (gh pr create --body-file) and keep the configured Git transport and identity when submitting fails. Before publishing, review the exact outgoing text for internal identifiers, private paths, and anything not already public in that repository.

Review replies

  • Treat each comment as a claim to check against the code and the repository's rules; reviewers and review bots can be wrong. Ask when a comment is unclear.
  • If a reviewer misunderstood the code, make the code clearer or add a comment first; a reply alone does not help later readers.
  • Answer in the thread, naming the commit (Fixed in 1a2b3c4: ...). Keep replies to accepted comments short; give declined ones the full reasoning and the tradeoff weighed. Skip filler.
  • Resolve a thread only when addressed and the repository expects authors to resolve. Never claim a fix or check that did not happen. An approval covers only what that reviewer reviewed, and notify only relevant reviewers.

After merge

For a confirmed-merged PR the agent opened: identify its branches and worktrees from the task record, not by name pattern; remove a worktree only when clean and from outside it; delete the local branch with git branch -d and report when it refuses instead of forcing; fast-forward the default branch only when its checkout is clean and not diverged, then verify. Keep branches while review is open; deleting a remote branch needs separate authorization.

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 Git Delivery làm được gì?

Writes commit messages, pull/merge request and issue text, and review replies that follow the target repository's conventions, and cleans up after merge. Use when committing, opening or updating a PR/MR or issue, answering code review, or finishing after a reviewed change merges.

Vì sao nên dùng Git Delivery 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. Git Delivery 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 Git Delivery trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ryan4yin/nix-config/tree/main/agents/skills/git-delivery. 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 Git Delivery?

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 Git Delivery 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 Git Delivery 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 Git Delivery có miễn phí không?

Có. Kỹ năng này được ryan4yin 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 👇