Compétences git-analysis
🔀

git-analysis

Sûr ⚡ Contient des scripts⚙️ Commandes externes

Gitブランチとコミットの分析

Également disponible depuis: 1natsu172

Gitリポジトリの変更を理解するには、複数のコマンドを実行して出力を解析する必要があります。このスキルはブランチ分析、コミット履歴の抽出、ファイル変更統計を自動化することで、コードレビューやPR作成を効率化します。

Prend en charge: Claude Codex Code(CC)
🥉 75 Bronze
1

Télécharger le ZIP du skill

2

Importer dans Claude

Allez dans Paramètres → Capacités → Skills → Importer un skill

3

Activez et commencez à utiliser

Tester

Utilisation de "git-analysis". 現在のブランチを分析し、mainと比較して変更を表示する

Résultat attendu:

  • Branch Analysis Summary
  • Base branch: main
  • Current branch: feature/new-feature
  • Merge base: abc123d (2025-01-15)
  • Changes:
  • - 5 commits ahead
  • - 12 files changed
  • - 234 insertions, 89 deletions
  • Recent commits:
  • 1. feat(api): add new endpoint
  • 2. test(api): add endpoint tests
  • 3. docs(api): update API documentation

Utilisation de "git-analysis". 構造化されたコミット履歴を表示する

Résultat attendu:

  • abc123|feat(api): add endpoint|John Doe|john@example.com|2025-01-16
  • def456|test(api): add tests|Jane Smith|jane@example.com|2025-01-16
  • ghi789|docs(api): update docs|Bob Wilson|bob@example.com|2025-01-17

Utilisation de "git-analysis". 変更されたファイルのサマリーを取得する

Résultat attendu:

  • DEFAULT_BRANCH: main
  • MERGE_BASE: abc123def
  • COMMITS: 5
  • CHANGED_FILES: 12
  • INSERTIONS: 234
  • DELETIONS: 89

Audit de sécurité

Sûr
v3 • 1/16/2026

This is a legitimate git analysis tool containing standard shell scripts for git repository operations. All 183 static findings are false positives. The 'weak cryptographic algorithm' HIGH findings were triggered by YAML/JSON metadata fields and git format specifiers that the scanner misidentified. All external command patterns are necessary git commands (git log, git diff, git merge-base) for read-only repository analysis. No network calls, credential theft, or malicious code exists. This skill only performs read operations on local git repositories.

5
Fichiers analysés
1,002
Lignes analysées
2
résultats
3
Total des audits

Facteurs de risque

Score de qualité

59
Architecture
100
Maintenabilité
85
Contenu
21
Communauté
100
Sécurité
91
Conformité aux spécifications

Ce que vous pouvez construire

コードレビューの準備

コードレビュー議論のためにブランチの変更とコミット履歴を抽出する

PR説明文の生成

プルリクエストの説明文のためにコミットリストとファイル変更を収集する

変更の追跡

ブランチのアクティビティを監視し、ブランチ間の変更を追跡する

Essayez ces prompts

基本的なブランチ分析
現在のブランチを分析し、デフォルトブランチと比較して変更されたコミットとファイルを表示する
コミット履歴の抽出
マージベースからHEADまでのコミット履歴を、作成者と日付情報を含む構造化された形式で抽出する
ファイル変更サマリー
現在のブランチで変更されたファイル数、追加行数、削除行数を表示する
完全な分析レポート
デフォルトブランチ、マージベース、コミット数、詳細な変更統計を含む現在のブランチの完全な分析を提供する

Bonnes pratiques

  • 比較には常にマージベースを使用し、現在のブランチ状態ではなく比較する
  • 独立したGitコマンドを並列で実行して高速化する
  • 解析しやすくするために出力を一貫した形式で構造化する

Éviter

  • マージベースではなくブランチの先端から比較する
  • 並列実行が可能な場合にコマンドを順番に実行する
  • Gitコマンドのエラーメッセージを無視する

Foire aux questions

どのGitバージョンがサポートされていますか?
Git 2.0以降に対応しています。最新のシステムのほとんどには互換性のあるバージョンがインストールされています。
解析できる最大コミット数は?
上限はありません。パフォーマンスはリポジトリサイズとGitコマンドの効率に依存します。
このスキルはコミットを作成または変更できますか?
いいえ。このスキルは既存のリポジトリ状態のみを解析します。コミット操作には他のツールを使用してください。
リポジトリのデータは安全ですか?
はい。このツールは標準的なGit読み取り専用コマンドのみを使用してリポジトリデータを読み取ります。
マージベースを決定できない場合はどうなりますか?
スクリプトはエラーメッセージを表示して終了します。コミットを持つブランチにいることを確認してください。
git logとの違いは何ですか?
このスキルは構造化された出力を提供し、複数のGitコマンドを組み合わせて包括的な解析を行います。

Détails du développeur

Structure de fichiers