AgentSkillsCN

list-projects

列出 Azure DevOps 组织下的所有项目。当您需要在获取仓库或拉取请求详情之前,先了解项目名称或 ID 时,可选用此方法。

SKILL.md
--- frontmatter
name: list-projects
description: >
  List all projects in an Azure DevOps organization. Use when you need to
  discover project names or IDs before fetching repository or pull request details.

List Projects

Platform Note

  • macOS/Linux: run .sh scripts
  • Windows: run .ps1 scripts with the same argument order

Run the list-projects.sh script on macOS/Linux or list-projects.ps1 on Windows to list projects.

Arguments

#NameRequiredDescription
1organizationNoAzure DevOps organization (default: default_organization)

Example

bash
bash .github/skills/list-projects/list-projects.sh default_organization
powershell
.\github\skills\list-projects\list-projects.ps1 default_organization

Output

Returns JSON with a value array of project objects, each containing id, name, description, and state.