Logo Git

Git

Tổ chức
Rune-kit
git

Specialized git operations — semantic commits, PR descriptions, branch management, conflict resolution guidance. Replaces ad-hoc git commands with a dedicated, convention-aware utility.

Tổng quan

Nhà phát hànhRune-kit
Kho mãrune
Tên kỹ nănggit
Sao
88
Bản fork
26
Tệp đi kèm
Chỉ có hướng dẫn
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 là Markdown thuần túy, không phải 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ộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Rune-kit công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Git 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/Rune-kit/rune/tree/master/skills/git
  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/Rune-kit/rune.git /tmp/rune
mkdir -p .claude/skills
cp -r /tmp/rune/skills/git .claude/skills/git
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 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ự tải Git 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 Git không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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

Purpose

Specialized git operations utility. Handles semantic commits, PR descriptions, branch naming, and changelog generation with consistent conventions. Replaces scattered git logic across cook Phase 7 and other skills with a single, convention-aware utility.

Triggers

  • Called by cook Phase 7 for commit creation
  • Called by scaffold Phase 8 for initial commit
  • Called by team for parallel branch/PR management
  • Called by docs for changelog generation
  • Called by launch for release tagging
  • /rune git commit — manual semantic commit
  • /rune git pr — manual PR generation
  • /rune git branch <description> — generate branch name
  • /rune git changelog — generate changelog from commits
  • /rune git release <version> — create tagged release with changelog

Calls (outbound)

None — pure L3 utility. Reads git state, produces git commands/output.

Called By (inbound)

  • cook (L1): Phase 7 — create semantic commit after implementation
  • scaffold (L1): Phase 8 — initial commit with generated project
  • team (L1): parallel PR management across workstreams
  • launch (L1): release tagging and changelog
  • docs (L2): changelog generation sub-workflow
  • User: /rune git direct invocation

Modes

Commit Mode (default)

Analyze staged changes and produce a semantic commit.

PR Mode

Analyze full branch diff against base and produce a pull request.

Branch Mode

Generate a branch name from a task description.

Changelog Mode

Generate changelog entries from commit history.

Executable Steps

Commit Mode

Step 1 — Analyze Staged Changes

Read git diff --staged and git status. Classify the change:

TypeSignalPrefix
New featureNew files, new exports, new routesfeat
Bug fixChanged logic in existing code, test fixfix
RefactorStructural change, no behavior changerefactor
TestOnly test files changedtest
DocumentationOnly .md, comments, JSDoc changeddocs
Build/CIConfig files, CI pipelines, Dockerfilechore
PerformanceOptimization, caching, query improvementperf
Step 2 — Detect Scope

Extract scope from file paths:

  • src/auth/* → scope: auth
  • src/components/Button.tsx → scope: ui
  • api/routes/users.ts → scope: api
  • Multiple directories → omit scope or use most relevant
  • Root config files → scope: config
Step 3 — Generate Commit Message

Format: <type>(<scope>): <description>

Rules:

  • Description: imperative mood, lowercase first letter, no period
  • Max 72 characters for subject line
  • If > 5 files changed → add body with bullet summary
  • If breaking change detected (removed export, changed API signature, schema change) → add ! suffix and BREAKING CHANGE: footer
feat(auth): add JWT refresh token rotation

- Add refresh token endpoint with sliding window expiry
- Store token family for reuse detection
- Add middleware to validate refresh tokens

BREAKING CHANGE: /api/auth/refresh now requires refresh_token in body instead of cookie
Step 4 — Execute

Run git commit with the generated message. If pre-commit hooks fail → report the failure, do not --no-verify.

PR Mode

Step 1 — Analyze Branch

Read ALL commits on the current branch vs base branch using git log <base>..HEAD and git diff <base>...HEAD.

Do NOT just look at the latest commit — PRs include ALL branch commits.

Step 2 — Generate PR
markdown
## Summary
<1-3 bullet points covering ALL changes, not just the last commit>

## Changes
- [grouped by feature/area]

## Test Plan
- [ ] [specific test scenarios]

## Breaking Changes
- [if any — list explicitly]

Title: < 70 characters, descriptive of the full change set.

Step 3 — Execute

Run gh pr create with generated title and body. If no remote branch → push with -u first.

Branch Mode

Step 1 — Parse Task

Extract key intent from task description:

  • Feature → feat/short-kebab-description
  • Bug fix → fix/issue-number-or-description
  • Refactor → refactor/module-name
  • Chore → chore/description

Rules:

  • Max 50 characters total
  • Kebab-case, no uppercase
  • Include issue number if referenced: fix/123-login-crash
Step 2 — Execute

Run git checkout -b <branch-name> from current branch.

Changelog Mode

Step 1 — Read History

Read commits since last tag (git log $(git describe --tags --abbrev=0)..HEAD) or since specified reference.

Step 2 — Group and Format

Group commits by conventional commit type. Format as Keep a Changelog:

markdown
## [Unreleased]

### Added
- New feature description (#PR)

### Fixed
- Bug fix description (#PR)

### Changed
- Change description (#PR)

### Removed
- Removed feature (#PR)

Link to PRs/issues when references found in commit messages.

Release Mode

Create a version tag with release artifacts.

Triggers:

  • /rune git release <version> — create release for specified version
  • Called by launch (L1) during release pipeline
  • Called by deploy (L2) after successful production deploy
Step 1 — Validate Version

Parse version string. Must follow semver (major.minor.patch):

  • Breaking changes → major bump
  • New features → minor bump
  • Bug fixes → patch bump

Check git tag -l to ensure version doesn't already exist.

Step 2 — Generate Release Artifacts
  1. Changelog: Run Changelog Mode to generate entries since last tag
  2. Version bump: Update version in package.json, pyproject.toml, Cargo.toml, or equivalent
  3. Release notes: Summarize changes for GitHub Release body
Step 3 — Tag and Push
bash
git add <version-files>
git commit -m "chore: bump version to v<version>"
git tag -a v<version> -m "Release v<version>"
git push origin master --tags
Step 4 — Create GitHub Release
bash
gh release create v<version> --title "v<version>" --notes "<release-notes>"
Step 5 — Notify

If deploy reports customer email list available (via rune-pay /admin/emails), flag for notification.

Output Format

Commit Mode

<type>(<scope>): <description>

[optional body — bullet summary if > 5 files changed]

[BREAKING CHANGE: description — if breaking change detected]

PR Mode

Title: <type>: <short description> (< 70 chars)

## Summary
- [bullet points covering ALL branch changes]

## Changes
- [grouped by feature/area]

## Test Plan
- [ ] [specific test scenarios]

## Breaking Changes
- [if any]

Branch Mode

<type>/<short-kebab-description>

Examples: feat/jwt-refresh, fix/123-login-crash, refactor/auth-module

Changelog Mode

markdown
## [Unreleased]

### Added
- Feature description (#PR)

### Fixed
- Bug fix description (#PR)

### Changed
- Change description (#PR)

Release Mode

## Release: v<version>
- **Tag**: v<version>
- **Commits**: [count] since last release
- **Changelog**: [path to CHANGELOG.md]
- **GitHub Release**: [URL]
- **Artifacts**: version bump, changelog, tag, release

Constraints

  1. MUST use conventional commit format — no freeform messages
  2. MUST analyze full diff before generating message — don't guess from file names alone
  3. MUST detect breaking changes — missing BREAKING CHANGE footer causes downstream issues
  4. MUST NOT use --no-verify — if hooks fail, report and fix
  5. MUST NOT force push unless explicitly requested by user
  6. PR mode MUST analyze ALL commits on branch, not just the latest
  7. MUST respect project's existing commit conventions if detected (check recent git log)

Sharp Edges

Failure ModeSeverityMitigation
Commit message doesn't match actual changesHIGHStep 1 reads full diff, not just file names
PR description covers only last commitHIGHStep 1 reads ALL commits on branch
Missing breaking change detectionHIGHCheck: removed exports, changed function signatures, schema changes
Branch name too long or has special charactersLOWMax 50 chars, kebab-case only
Force push without user consentCRITICALConstraint 5: never force push unless explicitly requested
Ignoring project's existing conventionsMEDIUMCheck recent git log --oneline -10 for existing style

Done When

Commit Mode

  • Staged diff analyzed and change type classified
  • Scope extracted from file paths
  • Semantic commit message generated (subject + body if needed)
  • Breaking changes detected and flagged
  • Commit executed (or failure reported)

PR Mode

  • All branch commits analyzed (not just latest)
  • Summary covers full change set
  • Test plan included
  • PR created with gh pr create

Branch Mode

  • Branch name follows convention
  • Branch created from current HEAD

Changelog Mode

  • All commits since last tag grouped by type
  • Formatted as Keep a Changelog
  • PR/issue references linked

Cost Profile

~500-2000 tokens input, ~200-800 tokens output. Haiku — git operations are mechanical and convention-based, no deep reasoning needed.

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

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

Specialized git operations — semantic commits, PR descriptions, branch management, conflict resolution guidance. Replaces ad-hoc git commands with a dedicated, convention-aware utility.

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

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Rune-kit/rune/tree/master/skills/git. TypingMind đọc tệp SKILL.md và cài đặt thành 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?

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.

Bạn có thể dùng Git 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 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 có miễn phí không?

Có. Kỹ năng này được Rune-kit 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇