azure-repos-helper

Manage Azure Repos including branches, pull requests, and code reviews. Use when working with Azure Repos or managing repository operations.

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

The Azure Repos Helper skill is a specialized integration designed to streamline repository management and DevOps workflows within the Azure DevOps ecosystem. It empowers developers to automate pull request (PR) lifecycles, enforce sophisticated branch protection policies, and manage Git operations directly through Claude. By bridging the gap between AI assistance and Azure's version control system, it enhances team collaboration, ensures code quality through automated validation settings, and simplifies complex repository administration tasks.

Use Cases

  • Automated Pull Request Lifecycle: Effortlessly create, monitor, and update pull requests with specific reviewers and linked work items using Azure CLI integration.
  • Branch Protection & Governance: Configure and enforce critical branch policies, such as mandatory reviewer counts and build validation requirements, to maintain high code standards.
  • Streamlined Code Review Process: Accelerate the review cycle by managing PR approvals, status updates, and merge completions through natural language commands.
  • Repository Standardization: Manage repository-level configurations including .gitattributes for line-ending normalization and implementing consistent branch strategies across projects.
nameazure-repos-helper
descriptionManage Azure Repos including branches, pull requests, and code reviews. Use when working with Azure Repos or managing repository operations.

Azure Repos Helper Skill

Azure Reposでのリポジトリ管理を支援するスキルです。

主な機能

  • リポジトリ操作: クローン、プッシュ、プル
  • ブランチポリシー: PR必須、レビュー必須
  • コードレビュー: PR作成、レビュー
  • ブランチ管理: ブランチ戦略
  • Git操作: Azure DevOps特有の操作

ブランチポリシー設定

main ブランチ保護

{
  "isEnabled": true,
  "isBlocking": true,
  "type": {
    "id": "fa4e907d-c16b-4a4c-9dfa-4906e5d171dd"
  },
  "settings": {
    "minimumApproverCount": 2,
    "creatorVoteCounts": false,
    "allowDownvotes": false,
    "resetOnSourcePush": true,
    "requireVoteOnLastIteration": true,
    "blockLastPusherVote": true
  }
}

ビルド検証

{
  "isEnabled": true,
  "isBlocking": true,
  "type": {
    "id": "0609b952-1397-4640-95ec-e00a01b2c241"
  },
  "settings": {
    "buildDefinitionId": 123,
    "displayName": "PR Build Validation",
    "validDuration": 720,
    "queueOnSourceUpdateOnly": true
  }
}

PR作成(Azure CLI)

# PR作成
az repos pr create \
  --repository MyRepo \
  --source-branch feature/new-feature \
  --target-branch main \
  --title "新機能: ユーザー認証" \
  --description "JWT認証を実装しました" \
  --reviewers user1@example.com user2@example.com \
  --work-items 123 456

# PRリスト取得
az repos pr list \
  --repository MyRepo \
  --status active

# PR承認
az repos pr update \
  --id 123 \
  --status approved

# PRマージ
az repos pr update \
  --id 123 \
  --status completed \
  --merge-commit-message "Merged PR 123: Add user authentication"

.gitattributes

# Auto detect text files and perform LF normalization
* text=auto

# Source code
*.cs     text diff=csharp
*.java   text diff=java
*.py     text diff=python
*.js     text
*.ts     text

# Binary files
*.png    binary
*.jpg    binary
*.dll    binary
*.exe    binary

バージョン情報

  • Version: 1.0.0