安全读取 Azure DevOps项目、团队、团队成员、保存的查询及工作项;运行基于 WIQL 的报表;并导出可直接在电子表格中使用的报告,...
Use this skill for secure, read-focused Azure DevOps reporting.
Load credentials from a local .env file stored in this skill directory.
Required variables:
AZURE_DEVOPS_ORGAZURE_DEVOPS_PATOptional defaults:
AZURE_DEVOPS_DEFAULT_PROJECTAZURE_DEVOPS_DEFAULT_TEAMAZURE_DEVOPS_DEFAULT_QUERY_IDAZURE_DEVOPS_OUTPUT_DIRIf required values are missing, ask the user to create or update .env in this skill directory.
This skill requires:
pip3xlsxwriterInstall Python dependency once:
bash
pip3 install -r requirements.txt
AZURE_DEVOPS_OUTPUT_DIR must resolve inside the skill directoryvso.project and vso.work.env file.scripts/projects.js — list projectsscripts/teams.js — list teams in a project and team membersscripts/iterations.js — list team iterations / current sprintscripts/queries.js — list saved queries and inspect a query definitionscripts/workitems.js — run work item queries and normalize resultsscripts/export-report.js — export JSON/CSV data bundlesscripts/build_excel_report.py — generate Excel workbooks with charts from exported JSONRun all commands from the skill directory:
bash
cd /path/to/azure-devops-reports
bash
node scripts/projects.js list
bash
node scripts/teams.js list "Project Name"
bash
node scripts/teams.js members "Project Name" "Team Name"
bash
node scripts/iterations.js current "Project Name" "Team Name"
bash
node scripts/iterations.js list "Project Name" "Team Name"
bash
node scripts/queries.js list --project "Project Name"
bash
node scripts/queries.js get --project "Project Name" --id "QUERY_GUID"
Explicit:
bash
node scripts/workitems.js query-id --project "Project Name" --id "QUERY_GUID"
With defaults from .env:
bash
node scripts/workitems.js query-id
Using the default project from .env:
bash
node scripts/workitems.js closed-last-week
With an explicit project:
bash
node scripts/workitems.js closed-last-week --project "Project Name"
Default saved-query export using .env defaults:
bash
node scripts/export-report.js
Explicit saved-query export:
bash
node scripts/export-report.js query-id \
--project "Project Name" \
--id "QUERY_GUID" \
--format json \
--out query-data.json
Explicit sprint summary export:
bash
node scripts/export-report.js sprint-summary \
--project "Project Name" \
--team "Team Name" \
--format json \
--out sprint-summary.json
bash
python3 scripts/build_excel_report.py \
--input output/query-data.json \
--output output/query-report.xlsx
These requests should map to the skill without manual script execution:
show my Azure DevOps projectshow many teams do we have?list all team members in <Your Team Name> teamcan you list the sprints?generate the Azure DevOps reportregenerate the excellist all work items closed in last weeksummarize closed items from last weekshow current progress of sprint 07which team member has most open items?Read these only if needed:
references/field-mapping.md for normalized field choicesreferences/report-types.md for report presets and chart ideasreferences/api-notes.md for endpoint notes and PAT scope guidance