azure-devops-rest-api
Skill393 starsChanged 5 months agoMITView on GitHub
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.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- codebase-designSkill
- decision-mappingSkill
- design-an-interfaceSkill
- domain-modelingSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- improve-codebase-architectureSkill
- prototypeSkill
- setup-matt-pocock-skillsSkill
- teachSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- skill-creatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 15 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
testPlan: - Test plans, suites, and cases
- Distinctive: line 27
testResults: - Test runs and results
- Distinctive: line 61
Select the version: - Use the latest version (7.2) unless targeting a specific Azure DevOps Server version
- Distinctive: line 69
When exploring what APIs are available for a specific feature:
- Distinctive: line 74
Check httpExamples for real-world usage patterns
- Distinctive: line 87
When adding new API functionality to the MCP server:
- Distinctive: line 93
Implement handler: Create the feature handler following the repository's feature-based architecture
- Distinctive: line 94
Add tests: Write unit tests with mocked responses based on httpExamples
- Distinctive: line 98
When you need to understand the exact format of API requests or responses:
- Distinctive: line 103
Use this as the basis for creating Zod schemas and TypeScript types
- Very specific: line 121
Use the OpenAPI spec's paths section to find endpoint URLs
- Very specific: line 122
Check the tags property to understand the API category
- Very specific: line 126
All data models are in the definitions section of the OpenAPI spec
- Very specific: line 127
Look for $ref properties to follow schema references
- Distinctive: line 128
Use httpExamples to see actual data structures
- Distinctive: line 131
Use version 7.2 for Azure DevOps Services (cloud)
- Distinctive: line 132
Check azure-devops-server-{version} folders for on-premises versions
- Distinctive: line 137
When implementing features in this MCP server:
- Very specific: line 139
Follow the feature-based architecture: Create features in src/features/{api-area}/
- Distinctive: line 142
Include examples: Use httpExamples data for test fixtures
- Very specific: line 143
Match naming: Use consistent naming with the Azure DevOps API (e.g., repositoryId, pullRequestId)
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 samplesPattern 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 structures
Version selection:
- Use version 7.2 for Azure DevOps Services (cloud)
- Check azure-devops-server-{version} folders for on-premises versions
- API versions are additive - newer versions include all older functionality
Integration with This Repository
When implementing features in this MCP server:
- Follow the feature-based architecture: Create features in
src/features/{api-area}/ - Use Zod for validation: Define schemas based on OpenAPI definitions
- Reference the specs: Link to the relevant OpenAPI spec in code comments
- Include examples: Use httpExamples data for test fixtures
- Match naming: Use consistent naming with the Azure DevOps API (e.g.,
repositoryId,pullRequestId)
Example feature implementation pattern:
// src/features/{api-area}/{operation}/
├── feature.ts // Core implementation using azure-devops-node-api
├── schema.ts // Zod schemas based on OpenAPI definitions
├── feature.spec.unit.ts // Tests using httpExamples data
└── index.ts // ExportsDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

