Ring:Generating Pr Descriptionsのロゴ

Ring:Generating Pr Descriptions

組織
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

概要

公開者LerianStudio
リポジトリring
スキル名ring:generating-pr-descriptions
スター
215
フォーク
28
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    LerianStudioがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Ring:Generating Pr Descriptions」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/LerianStudio/ring/tree/main/default/skills/generating-pr-descriptions
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでRing:Generating Pr Descriptionsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にRing:Generating Pr Descriptionsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ring:Generating Pr Descriptionsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

よくある質問

AIスキル「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.

TypingMindでRing:Generating Pr Descriptionsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ring:Generating Pr Descriptionsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにRing:Generating Pr Descriptionsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/LerianStudio/ring/tree/main/default/skills/generating-pr-descriptionsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Ring:Generating Pr Descriptionsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Ring:Generating Pr Descriptionsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもRing:Generating Pr Descriptionsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ring:Generating Pr Descriptions」は無料ですか?

はい。LerianStudioがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇