AgentSkillsCN

known-issues

了解常见的代理操作失误及其规避方法。在运行脚本、执行命令,或在 Azure DevOps 工作流中采取行动之前,务必加以留意。触发条件包括:运行前检查问题、避免常见失误、脚本参数、团队名称、上下文文件。

SKILL.md
--- frontmatter
name: known-issues
description: "Known agent mistakes and how to avoid them. Use before running scripts, executing commands, or taking actions in Azure DevOps workflows. Triggers on: before running, check issues, avoid mistakes, script arguments, team name, context files."

Known Issues

Check your planned action against these known issues before proceeding.

Script Arguments

#MistakeCorrect Behaviour
1Added unsupported arguments to scripts (e.g., --max-results, --org, --project, --team)Scripts read org/project/team from environment variables. Only use documented arguments: --state, --unassigned, --assigned-to, --type for work items; --status, --include-own for PRs

Rule: Scripts get Azure DevOps configuration from environment variables (AZURE_DEVOPS_ORG, AZURE_DEVOPS_PROJECT, AZURE_DEVOPS_TEAM, etc.). Do not pass org/project/team as arguments.

MCP vs Scripts

#MistakeCorrect Behaviour
2Used MCP to query sprint work items or team PRsMCP cannot filter by Area Path or team reviewer. Use Python scripts in .github/skills/azure-devops-api/scripts/

Rule: Use scripts for team-filtered queries, MCP only for individual item lookups and updates.

Pre-Action Checklist

Before executing any Azure DevOps script:

  1. ✓ Am I using only documented script arguments?
  2. ✓ Am I using scripts (not MCP) for team-filtered queries?
  3. ✓ Are the required environment variables configured? (Script will error if not)