azure-devops by rysweet/amplihack
npx skills add https://github.com/rysweet/amplihack --skill azure-devops完整的 Azure DevOps 集成,涵盖工作项、代码仓库、流水线和制品。
自动激活时机: 当用户提及 Azure DevOps、ADO、工作项、工作项板、代码仓库、流水线、制品或 Azure DevOps URL 时。
本技能通过专门构建的 Python CLI 工具,为 Azure DevOps 自动化提供全面指导,这些工具可处理:
务必首先检查身份验证:
python .claude/scenarios/az-devops-tools/auth_check.py --auto-fix
此命令验证 Azure CLI 是否已安装、您是否已登录、组织和项目是否已配置,以及您是否拥有访问权限。
参见:[@authentication.md]
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "User Story" \
--title "实现功能" \
--description @story.md
python .claude/scenarios/az-devops-tools/list_work_items.py --query mine
python .claude/scenarios/az-devops-tools/create_pr.py \
--source feature/branch \
--target main \
--title "添加功能"
有关特定操作的详细指导,请参阅:
| 工具 | 目的 | 使用时机 |
|---|---|---|
auth_check.py | 验证身份验证 | 在任何操作之前 |
create_work_item.py | 创建工作项 | 添加用户故事、任务、缺陷等 |
update_work_item.py | 更新工作项 | 更改状态、分配人、字段 |
delete_work_item.py | 删除工作项 | 移除工作项(需确认) |
get_work_item.py | 获取工作项详情 | 查看完整的工作项信息 |
list_work_items.py | 查询工作项 | 查找、筛选和列出工作项 |
link_parent.py | 链接父子关系 | 创建史诗 → 功能 → 故事层次结构 |
query_wiql.py | 执行 WIQL 查询 | 使用 WIQL 进行复杂筛选 |
format_html.py | 转换为 HTML | 格式化富文本描述 |
list_types.py | 发现类型/字段 | 探索可用选项 |
list_repos.py | 列出代码仓库 | 查看项目中的所有代码仓库 |
create_pr.py | 创建拉取请求 | 提交代码以供审阅 |
# 创建父工作项
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "Epic" \
--title "第一季度规划计划" \
--description @epic_desc.md
# 输出:已创建工作项 #12345
# 创建子项并链接到父项
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "Feature" \
--title "认证系统" \
--description @feature_desc.md \
--parent-id 12345
# 输出:已创建工作项 #12346 并链接到父项 #12345
# 查找您的活动工作项
python .claude/scenarios/az-devops-tools/list_work_items.py \
--query mine \
--format ids-only
# 更新工作项状态
python .claude/scenarios/az-devops-tools/update_work_item.py \
--id 12345 \
--state "Active" \
--comment "开始处理此项工作"
# 列出代码仓库
python .claude/scenarios/az-devops-tools/list_repos.py
# 创建拉取请求
python .claude/scenarios/az-devops-tools/create_pr.py \
--source feature/auth \
--target main \
--title "添加认证" \
--description @pr_desc.md \
--reviewers "user1@domain.com,user2@domain.com" \
--work-items "12345,12346"
# 列出项目中所有工作项类型
python .claude/scenarios/az-devops-tools/list_types.py
# 显示特定类型的字段
python .claude/scenarios/az-devops-tools/list_types.py \
--type "User Story" \
--fields
Azure DevOps 工作项描述使用 HTML,而非 Markdown 或纯文本。
工具会自动处理此问题:
create_work_item.py 默认将 markdown 转换为 HTML--no-html 禁用转换format_html.py 进行自定义格式化参见:[@html-formatting.md]
您无法在通过 CLI 创建工作项时指定父项(Azure 限制)。
工具提供了两种方法:
选项 A: 使用 --parent-id 标志(推荐):
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "Task" \
--title "我的任务" \
--parent-id 12345
选项 B: 单独链接:
# 步骤 1:创建
TASK_ID=$(python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "Task" \
--title "我的任务" \
--json | jq -r '.id')
# 步骤 2:链接
python .claude/scenarios/az-devops-tools/link_parent.py \
--child $TASK_ID \
--parent 12345
项目名称\团队名称\子区域list_types.py 来发现您的项目中可用的内容| 错误 | 使用的工具 | 示例 |
|---|---|---|
| 身份验证失败 | auth_check.py --auto-fix | 自动登录和配置 |
| 无效的工作项类型 | list_types.py | 查看可用类型 |
| 字段验证错误 | list_types.py --type "Type" --fields | 查看有效字段 |
| 父项链接失败 | 检查 ID 是否存在,验证层次结构规则 | 史诗 → 功能 → 故事 → 任务 |
| 分支不存在 | 使用 git branch -a 验证 | 先推送分支 |
所有工具都位于 ~/.amplihack/.claude/scenarios/az-devops-tools/:
tests/ 目录参见:工具 README
这些工具遵循 amplihack 原则:
# 设置(首次使用)
python .claude/scenarios/az-devops-tools/auth_check.py --auto-fix
# 创建工作项
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "User Story" \
--title "标题" \
--description @desc.md
# 更新工作项
python .claude/scenarios/az-devops-tools/update_work_item.py \
--id 12345 \
--state "Active"
# 查询工作项
python .claude/scenarios/az-devops-tools/list_work_items.py --query mine
# 创建拉取请求
python .claude/scenarios/az-devops-tools/create_pr.py \
--source feature/branch \
--target main \
--title "添加功能"
# 发现类型
python .claude/scenarios/az-devops-tools/list_types.py
每周安装次数
98
代码仓库
GitHub 星标数
40
首次出现时间
2026年1月23日
安全审计
安装于
opencode92
codex87
cursor86
gemini-cli85
claude-code85
github-copilot83
Complete Azure DevOps integration covering boards, repositories, pipelines, and artifacts.
Auto-activates when: User mentions Azure DevOps, ADO, work items, boards, repos, pipelines, artifacts, or Azure DevOps URLs.
This skill provides comprehensive guidance for Azure DevOps automation through purpose-built Python CLI tools that handle:
ALWAYS start by checking authentication:
python .claude/scenarios/az-devops-tools/auth_check.py --auto-fix
This verifies Azure CLI is installed, you're logged in, org/project are configured, and you have access.
See: [@authentication.md]
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "User Story" \
--title "Implement feature" \
--description @story.md
python .claude/scenarios/az-devops-tools/list_work_items.py --query mine
python .claude/scenarios/az-devops-tools/create_pr.py \
--source feature/branch \
--target main \
--title "Add feature"
For detailed guidance on specific operations, see:
| Tool | Purpose | When to Use |
|---|---|---|
auth_check.py | Verify authentication | Before any operations |
create_work_item.py | Create work items | Add User Stories, Tasks, Bugs, etc. |
update_work_item.py | Update work items | Change state, assignee, fields |
delete_work_item.py | Delete work items | Remove work items (with confirmation) |
get_work_item.py |
# Create parent work item
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "Epic" \
--title "Q1 Planning Initiative" \
--description @epic_desc.md
# Output: Created work item #12345
# Create child and link to parent
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "Feature" \
--title "Authentication System" \
--description @feature_desc.md \
--parent-id 12345
# Output: Created work item #12346 and linked to parent #12345
# Find your active work items
python .claude/scenarios/az-devops-tools/list_work_items.py \
--query mine \
--format ids-only
# Update work item state
python .claude/scenarios/az-devops-tools/update_work_item.py \
--id 12345 \
--state "Active" \
--comment "Starting work on this"
# List repositories
python .claude/scenarios/az-devops-tools/list_repos.py
# Create pull request
python .claude/scenarios/az-devops-tools/create_pr.py \
--source feature/auth \
--target main \
--title "Add authentication" \
--description @pr_desc.md \
--reviewers "user1@domain.com,user2@domain.com" \
--work-items "12345,12346"
# List all work item types in your project
python .claude/scenarios/az-devops-tools/list_types.py
# Show fields for specific type
python .claude/scenarios/az-devops-tools/list_types.py \
--type "User Story" \
--fields
Azure DevOps work item descriptions use HTML, not Markdown or plain text.
The tools handle this automatically:
create_work_item.py converts markdown to HTML by default--no-html to disable conversionformat_html.py directly for custom formattingSee: [@html-formatting.md]
You cannot specify a parent during work item creation via CLI (Azure limitation).
The tools provide two approaches:
Option A: Use --parent-id flag (recommended):
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "Task" \
--title "My Task" \
--parent-id 12345
Option B: Link separately:
# Step 1: Create
TASK_ID=$(python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "Task" \
--title "My Task" \
--json | jq -r '.id')
# Step 2: Link
python .claude/scenarios/az-devops-tools/link_parent.py \
--child $TASK_ID \
--parent 12345
ProjectName\TeamName\SubArealist_types.py to discover what's available in your project| Error | Tool to Use | Example |
|---|---|---|
| Authentication failed | auth_check.py --auto-fix | Auto-login and configure |
| Invalid work item type | list_types.py | See available types |
| Field validation error | list_types.py --type "Type" --fields | See valid fields |
| Parent link failed | Check IDs exist, verify hierarchy rules | Epic → Feature → Story → Task |
| Branch does not exist | Verify with git branch -a | Push branch first |
All tools are in ~/.amplihack/.claude/scenarios/az-devops-tools/:
tests/ directorySee: Tool README
These tools follow amplihack principles:
# Setup (first time)
python .claude/scenarios/az-devops-tools/auth_check.py --auto-fix
# Create work item
python .claude/scenarios/az-devops-tools/create_work_item.py \
--type "User Story" \
--title "Title" \
--description @desc.md
# Update work item
python .claude/scenarios/az-devops-tools/update_work_item.py \
--id 12345 \
--state "Active"
# Query work items
python .claude/scenarios/az-devops-tools/list_work_items.py --query mine
# Create pull request
python .claude/scenarios/az-devops-tools/create_pr.py \
--source feature/branch \
--target main \
--title "Add feature"
# Discover types
python .claude/scenarios/az-devops-tools/list_types.py
Weekly Installs
98
Repository
GitHub Stars
40
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode92
codex87
cursor86
gemini-cli85
claude-code85
github-copilot83
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
138,800 周安装
飞书多维表格API开发指南:字段类型、批量操作与常见错误解决方案
308 周安装
Tailwind CSS 响应式设计与深色模式教程 - 2025/2026 移动优先最佳实践
306 周安装
Moodle外部API开发指南:创建自定义Web服务与REST端点
307 周安装
技术规格说明书生成器 - AI驱动,快速创建PRD、API设计、架构文档
304 周安装
Dart & Flutter 专家指导 - 掌握移动开发与跨平台应用核心技术
307 周安装
60秒读懂世界 - 每日新闻API | 获取精选中文新闻简报与微语,支持JSON/文本/Markdown/图片格式
311 周安装
| Get work item details |
| View complete work item info |
list_work_items.py | Query work items | Find, filter, and list work items |
link_parent.py | Link parent-child | Create Epic → Feature → Story hierarchies |
query_wiql.py | Execute WIQL queries | Complex filtering with WIQL |
format_html.py | Convert to HTML | Format rich descriptions |
list_types.py | Discover types/fields | Explore available options |
list_repos.py | List repositories | View all repositories in project |
create_pr.py | Create pull request | Submit code for review |