Logo Ring:Generating Pr Descriptions

Ring:Generating Pr Descriptions

Tổ chức
LerianStudio
ring:generating-pr-descriptions

Generating pull request descriptions from git branch changes with automatic title generation, change-type detection, and smart analysis. Uses branch-only scope to avoid full history analysis. Use when preparing a PR for review. Skip when the PR is a single trivial commit or description already exists.

Add to TypingMind

Tổng quan

Nhà phát hànhLerianStudio
Kho mãring
Tên kỹ năngring:generating-pr-descriptions
Sao
215
Bản fork
28
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
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ộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    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 LerianStudio 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 Ring:Generating Pr Descriptions 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/LerianStudio/ring/tree/main/default/skills/generating-pr-descriptions
  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/LerianStudio/ring.git /tmp/ring
mkdir -p .claude/skills
cp -r /tmp/ring/default/skills/generating-pr-descriptions .claude/skills/lerianstudio-ring-generating-pr-descriptions
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 Ring:Generating Pr Descriptions 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 Ring:Generating Pr Descriptions 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 Ring:Generating Pr Descriptions 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.

Generating PR Descriptions

When to use

  • Preparing a pull request for review and need a comprehensive description
  • Generating a PR title automatically from commit message analysis
  • Classifying the type of change (bug fix, feature, breaking change)
  • Saving a reusable PR description to docs/pr-descriptions/<branch-name-with-hyphens>.md

Skip when

  • The PR is a single trivial commit with an obvious description
  • A PR description already exists and does not need regeneration
  • The branch has no commits beyond the base branch

Process

1. Git Branch Analysis - CRITICAL: Branch-Only Scope

  • MANDATORY: Identify actual branch point to avoid analyzing entire development history
  • Detect the base branch (develop, main, master) that the current branch was created from
  • CORRECT APPROACH: Use git merge-base HEAD <base-branch> to find the true divergence point
  • CORRECT APPROACH: Use git log --oneline $(git merge-base HEAD <base-branch>)..HEAD for branch-specific commits
  • CORRECT APPROACH: Use git diff $(git merge-base HEAD <base-branch>)..HEAD for branch-specific changes
  • NEVER rely on manual HEAD~n counting — it breaks on merges, rebases, and long-lived branches
  • Run git status --porcelain to identify uncommitted files (excluded from PR)
  • Enforce that PR analyzes ONLY commits made on the current feature branch, not development history
  • Determine if this is a bug fix, feature, or breaking change based on actual branch commits

2. Change Classification

  • Analyze file patterns and change types
  • Identify the type of change (bug fix, new feature, breaking change, etc.)
  • Detect if documentation updates are needed
  • Determine testing requirements

3. PR Description Generation

  • Create comprehensive description following the template format
  • Include summary of changes and motivation based on ONLY branch-specific commits
  • Pre-fill appropriate checkboxes based on change analysis
  • Suggest testing strategies
  • Derive the output filename from the full branch name with slashes replaced by hyphens (e.g., feature/FE-157 -> feature-FE-157.md)
  • Save to docs/pr-descriptions/<derived-filename> (create directory if needed)

CRITICAL Implementation Steps

Step 1: Branch Analysis (MANDATORY)

bash
# 1. Get branch structure to identify commits
git log --oneline --decorate --graph -10

# 2. Count commits unique to current branch
# Look for where branch diverged from main/develop
# Example output shows 2 commits on feature/PLU-393:
# * 06603bf (HEAD -> feature/PLU-393) fix(i18n): add missing translations
# * d40c631 feat(ui): enhance templates system with calendar filter
# * 30664b1 (develop) Merge branch 'develop' into feature/libs

Step 2: Extract Branch-Only Changes (MANDATORY)

bash
# Use HEAD~n where n = number of branch commits
git log --oneline HEAD~2..HEAD           # Get branch commits
git diff HEAD~2..HEAD --name-status      # Get changed files
git diff HEAD~2..HEAD --stat            # Get change statistics

Step 3: Validation (MANDATORY)

  • Verify commit count matches actual branch commits
  • Ensure no base branch commits are included in analysis
  • Confirm file changes align with branch purpose

WRONG APPROACH - DO NOT USE:

bash
git log main..HEAD      # Includes entire development history
git diff main...HEAD    # Includes all changes since branch creation

Generated Template Structure

The skill generates pull requests following this exact structure:

markdown
# [Auto-generated PR title: short, under 70 chars, using conventional commit prefix]

# Description

[Auto-generated summary of changes and motivation based on commits]

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

PR Title Generation

  • Auto-generated from commit message analysis
  • Uses conventional commit prefix (feat:, fix:, chore:, refactor:, etc.) based on the dominant change type
  • Kept under 70 characters, concise and descriptive
  • Placed as the first # heading in the output file

Change Type Detection

  • Bug fix: Detects fixes, corrections, and patches in commit messages
  • New feature: Identifies new functionality, components, or capabilities
  • Breaking change: Flags API changes, removed functionality, or incompatible changes
  • Documentation update: Detects changes to .md files, comments, or docs folders

Implementation Requirements - CRITICAL

MANDATORY Git Command Usage:

  1. Branch Point Detection:

    bash
    git log --oneline --decorate --graph -10
    # Identify where current branch diverged from base
    # Count commits unique to current branch
  2. Branch-Only Analysis Commands:

    bash
    # For 2 commits on current branch:
    git log --oneline HEAD~2..HEAD
    git diff HEAD~2..HEAD --name-status
    git diff HEAD~2..HEAD --stat
    
    # NEVER use these (includes all development history):
    git log main..HEAD  # WRONG
    git diff main...HEAD  # WRONG
  3. Branch Point Validation:

    • If branch has 3 commits: use HEAD~3..HEAD
    • If branch has 5 commits: use HEAD~5..HEAD
    • Always verify commit count matches actual branch commits

Smart Analysis Features

  • File Pattern Recognition: Detects frontend/backend changes, test files, config changes
  • Commit Message Analysis: Uses conventional commits to determine change types
  • Dependency Detection: Identifies if package.json or similar files changed
  • Test Coverage: Suggests appropriate testing based on changed components

Notes

  • Critical: Uses HEAD~n..HEAD approach to analyze ONLY current branch commits
  • Branch Validation: Verifies number of commits on branch before analysis
  • Feature Branch Scope: Analyzes only commits made specifically on the current feature branch
  • Committed Changes Only: Analyzes committed changes in the branch only, ignores uncommitted files
  • Precise Scope: Prevents inclusion of entire development history in PR description
  • Generated PRs reflect actual feature branch changes, not cumulative project history
  • Breaking changes are flagged based on actual branch commits only
  • Generated PR descriptions are saved to docs/pr-descriptions/<branch-name-with-hyphens>.md for easy copying to GitHub/GitLab

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

Kỹ năng AI Ring:Generating Pr Descriptions làm được gì?

Generating pull request descriptions from git branch changes with automatic title generation, change-type detection, and smart analysis. Uses branch-only scope to avoid full history analysis. Use when preparing a PR for review. Skip when the PR is a single trivial commit or description already exists.

Vì sao nên dùng Ring:Generating Pr Descriptions 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. Ring:Generating Pr Descriptions 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 Ring:Generating Pr Descriptions trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/LerianStudio/ring/tree/main/default/skills/generating-pr-descriptions. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để 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 Ring:Generating Pr Descriptions?

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 Ring:Generating Pr Descriptions 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 Ring:Generating Pr Descriptions 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 Ring:Generating Pr Descriptions có miễn phí không?

Có. Kỹ năng này được LerianStudio phát hành trên GitHub theo giấy phép Apache-2.0. 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 👇