azure-devops-rest-api
БесплатноЗапускает вложенные скриптыНе проверенGuide for working with Azure DevOps REST APIs and OpenAPI specifications. Use this skill when implementing new Azure DevOps API integrations, exploring API…
Об этом скилле
Azure DevOps REST API
Overview
This skill provides guidance for working with Azure DevOps REST APIs using the official OpenAPI specifications from the vsts-rest-api-specs repository. It helps with implementing new API integrations, understanding API capabilities, and referencing the correct request/response formats.
Key API Areas
Azure DevOps REST APIs are organized into the following main areas:
Core Services
- core - Projects, teams, processes, and organization-level operations
- git - Repositories, branches, pull requests, commits
- build - Build definitions, builds, and build resources
- pipelines - Pipeline definitions and runs
- release - Release definitions, deployments, and approvals
Work Item & Planning
- wit (Work Item Tracking) - Work items, queries, and work item types
- work - Boards, backlogs, sprints, and team configurations
- testPlan - Test plans, suites, and cases
- testResults - Test runs and results
Package & Artifact Management
- artifacts - Artifact feeds and packages
- artifactsPackageTypes - NuGet, npm, Maven, Python packages
Security & Governance
- graph - Users, groups, and memberships
- security - Access control lists and permissions
- policy - Branch policies and policy configurations
- audit - Audit logs and events
Extension & Integration
- extensionManagement - Extensions and marketplace
- serviceEndpoint - Service connections
- hooks - Service hooks and subscriptions
API Specification Structure
The vsts-rest-api-specs repository is organized by API area and version:
specification/
├── {api-area}/ (e.g., git, build, pipelines)
│ ├── 7.2/ Latest stable version
│ │ ├── {area}.json OpenAPI spec file
│ │ └── httpExamples/ Example requests/responses
│ ├── 7.1/
│ └── ...
Using the Specifications
- Identify the API area - Determine which service area (git, build, wit, etc.) contains the functionality needed
- Select the version - Use the latest version (7.2) unless targeting a specific Azure DevOps Server version
- Review the OpenAPI spec - The main
{area}.jsonfile contains all endpoints, schemas, and parameters - Check httpExamples - Real request/response examples for each endpoint
Implementation Patterns
Pattern 1: Exploring New API Capabilities
When exploring what APIs are available for a specific feature:
- Clone the vsts-rest-api-specs repository to
/tmp/vsts-rest-api-specs - Browse the specification directory for the relevant API area
- Review the OpenAPI spec JSON file for available endpoints
- Check httpExamples for real-world usage patterns
Example workflow:
cd /tmp
git clone --depth 1 https://github.com/MicrosoftDocs/vsts-rest-api-specs.git
cd vsts-rest-api-specs/specification/git/7.2
# Review git.json for endpoint definitions
# Check httpExamples/ for request/response samples
Pattern 2: Implementing a New API Feature
When adding new API functionality to the MCP server:
- Locate the spec: Find the relevant OpenAPI specification
- Review the schema: Understand the request parameters and response format
- Check examples: Review httpExamples for real request/response data
- Create types: Define TypeScript interfaces based on the OpenAPI schema
- Implement handler: Create the feature handler following the repository's feature-based architecture
- Add tests: Write unit tests with mocked responses based on httpExamples
Pattern 3: Understanding Request/Response Formats
When you need to understand the exact format of API requests or responses:
- Navigate to
specification/{area}/{version}/httpExamples/ - Find the relevant endpoint example (e.g.,
GET_repositories.json) - Review both the request parameters and response body structure
- Use this as the basis for creating Zod schemas and TypeScript types
Reference Resources
scripts/
Contains helper utilities for working with the API specifications:
clone_specs.sh- Clone or update the vsts-rest-api-specs repositoryfind_endpoint.py- Search for specific endpoints across all API specs
references/
Contains curated reference documentation:
api_areas.md- Comprehensive list of all API areas and their purposescommon_patterns.md- Common request/response patterns across APIsauthentication.md- API authentication methods and patterns
Usage Tips
Finding the right API:
- Use the OpenAPI spec's
pathssection to find endpoint URLs - Check the
tagsproperty to understand the API category - Review the
operationIdfor the internal Azure DevOps method name
Understanding schemas:
- All data models are in the
definitionssection of the OpenAPI spec - Look for
$refproperties to follow schema references - Use httpExamples to see actual data structure
Установить azure-devops-rest-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл azure-devops-rest-api?
Guide for working with Azure DevOps REST APIs and OpenAPI specifications. Use this skill when implementing new Azure DevOps API integrations, exploring API capabilities, understanding request/response formats, or referencing the official OpenAPI specifications from the vsts-rest-api-specs repository.
Как установить скилл azure-devops-rest-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл azure-devops-rest-api запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic