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.

When you encounter a new mistake that isn't listed here, add it to the appropriate section so future runs don't repeat it.

Scripts & CLI

#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 & Azure DevOps

#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.

Coding & Implementation

<!-- | # | Mistake | Correct Behaviour | -->

Testing

<!-- | # | Mistake | Correct Behaviour | -->

Code Review

<!-- | # | Mistake | Correct Behaviour | -->

Git & Commits

<!-- | # | Mistake | Correct Behaviour | -->

SQL & Stored Procedures

<!-- | # | Mistake | Correct Behaviour | -->

Adding New Issues

Add to the appropriate section using this format:

markdown
| # | {What went wrong} | {What should happen instead} |

Use the next available number (currently 3).