ado
Azure DevOps CLI (az ado). Use for work items, PRs, pipelines, and backlog management. Triggers on: az ado, ADO, azure devops, work item, backlog, az boards, az repos, az pipelines.
What this skill does
# ado - Azure DevOps CLI
Use `az devops` (plus `az boards`, `az repos`, `az pipelines`) from PowerShell. Assumes `az login` and org/project defaults.
## Configuration
If `ado\config.json` is missing, ask:
1. What is your ADO organization URL? (e.g., `https://dev.azure.com/myorg`)
2. What is your project name?
3. What area path should Epics use?
4. What area path should Features/Stories/Tasks/Bugs use?
5. What iteration path should work items use?
Save to `ado\config.json` (gitignored). Config shape:
```json
{
"organization": "https://dev.azure.com/ORG",
"project": "PROJECT",
"areaPaths": {
"epic": "Project\\Team",
"feature": "Project\\Team\\SubTeam",
"story": "Project\\Team\\SubTeam",
"task": "Project\\Team\\SubTeam",
"bug": "Project\\Team\\SubTeam"
},
"iterationPath": "Project\\Iteration",
"storyPointScale": [1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
}
```
Load config:
```powershell
$config = Get-Content ".\ado\config.json" | ConvertFrom-Json
```
## Prerequisites
Verify auth and defaults:
```powershell
az account show --query "{name:name, user:user.name}" -o table
az devops configure --list
```
If defaults are missing:
```powershell
az devops configure --defaults organization=$config.organization project=$config.project
```
## Rules
- Always use PowerShell for scripting and JSON; do not pipe to python/node.
- Use `--query` JMESPath on `az` commands to filter JSON before PowerShell when possible.
- For any multi-step operation, read the matching section below first; never guess `az` flags or parameters.
## State Transitions
### User Story lifecycle
`New -> Ready to Review -> Ready to Code -> Active -> Closed`
| State | Meaning |
|-------|---------|
| New | Just created, not triaged |
| Ready to Review | Discuss in planning |
| Ready to Code | Planned and estimated |
| Active | In progress |
| Closed | Done |
| Removed | Deleted/cancelled |
### Feature and Epic lifecycle
`New -> Active -> Closed`
### Transition commands
```powershell
az boards work-item update --id ID --state "Ready to Review"
az boards work-item update --id ID --state "Ready to Code"
az boards work-item update --id ID --state Active
az boards work-item update --id ID --state Closed
```
## Quick Reference
Essential commands. For multi-step workflows, read the matching section in "Section Router" first.
```powershell
# Show a work item
az boards work-item show --id ID --output table
# Show with relations (children, parent, related)
az boards work-item show --id ID --expand relations --output json
# Get child IDs from a parent (e.g., features under an epic)
$json = az boards work-item show --id PARENT_ID --expand relations --output json | ConvertFrom-Json
$childIds = $json.relations | Where-Object { $_.attributes.name -eq 'Child' } | ForEach-Object { $_.url -replace '.*/', '' }
# Show multiple work items (loop - there is no --ids flag)
$childIds | ForEach-Object { az boards work-item show --id $_ --output json } | ForEach-Object { $_ | ConvertFrom-Json } | Select-Object id, @{N='Type';E={$_.fields.'System.WorkItemType'}}, @{N='Title';E={$_.fields.'System.Title'}}, @{N='State';E={$_.fields.'System.State'}} | Format-Table
# Query work items with WIQL
az boards query --wiql "SELECT [System.Id], [System.Title], [System.State] FROM WorkItems WHERE [System.WorkItemType] = 'User Story' AND [System.State] = 'Active'" --output table
# Create a work item
az boards work-item create --type "User Story" --title "Title" --area $config.areaPaths.story --iteration $config.iterationPath
# Link child to parent (no --parent flag exists)
az boards work-item relation add --id CHILD_ID --relation-type parent --target-id PARENT_ID
# Update state
az boards work-item update --id ID --state Active
# Create a PR linked to work item
az repos pr create --title "feat: description" --work-items ID --auto-complete true --delete-source-branch true
# List active PRs
az repos pr list --status active --output table
# List pipeline runs
az pipelines runs list --top 5 --output table
```
## Section Router
| User intent | Section | Read before |
|-------------|---------|-------------|
| Pick up work items, create branches, make PRs, monitor builds | Dev Flow | Any PR or branch workflow |
| Create features/stories, hierarchy, area paths, estimation | Planning Flow | Creating or linking work items |
| WIP, aging, throughput, cycle time, Kanban health | Backlog Management | Any backlog query or metric |
| Pipeline status, failed builds, logs, triggers | Pipeline Debugging | Any pipeline operation |
| WIQL field names, operators, macros, quoting | WIQL Reference | Writing any WIQL query |
| CLI command patterns, bulk ops, REST API, output formatting | Command Cookbook | Bulk operations or REST API calls |
| Board columns, WIP limits, Kanban column queries | Board Columns API | Any board column query |
## Troubleshooting
| Problem | Fix |
|---------|-----|
| `az account show` fails | Re-run `az login` - token expired |
| Empty query results | Check area path spelling; for `FROM WorkItemLinks` use REST API instead |
| `charmap` encoding error | Use `az devops invoke` not `az rest`; set `$env:PYTHONIOENCODING = "utf-8"` |
| Defaults not set | Run `az devops configure --defaults organization=$config.organization project=$config.project` |
| Permission denied on work items | Verify area path permissions in ADO project settings |
| WIQL syntax error | Check quoting; see WIQL Reference |
## Additional Tips
- Use `--output table` for readable output, `--output json` for parsing
- Use `--query` with JMESPath to filter JSON: `--query "[].{Id:id, Title:fields.\"System.Title\"}"`
- WIQL supports `@Me`, `@Today`, `@Today - N` macros
- Link PRs to work items with `AB#ID` in commits or PR descriptions
- Use `az devops wiki` for wiki operations
- Use `az boards iteration` and `az boards area` to manage team structure
## Dev Flow - Work Item -> Branch -> PR -> Merge
Use for picking up work items, creating branches, making PRs, or monitoring PR pipelines.
### 1. Pick up a work item
```powershell
# Find items ready to work on
az boards query --wiql "SELECT [System.Id], [System.Title], [System.State] `
FROM WorkItems `
WHERE [System.AssignedTo] = @Me `
AND [System.State] = 'Ready to Code' `
ORDER BY [Microsoft.VSTS.Common.Priority]" --output table
# Activate the item
az boards work-item update --id ID --state Active
```
### 2. Create a branch
```powershell
git checkout -b feature/ID-short-description
```
### 3. Create a PR linked to work item
```powershell
az repos pr create `
--title "feat: description" `
--description "Resolves AB#ID" `
--work-items ID `
--auto-complete true `
--delete-source-branch true
```
The `--work-items` flag links the PR. Use `AB#ID` in description for extra linking.
### 4. Monitor pipeline on PR
```powershell
# List runs for the PR branch
az pipelines runs list --branch feature/ID-short-description --top 1 --output table
# Check run details
az pipelines runs show --id RUN_ID --output table
```
### 5. Complete PR
```powershell
az repos pr update --id PR_ID --status completed
```
Work item state transitions automatically if board rules are configured.
### Assign to self
```powershell
$me = az account show --query "user.name" -o tsv
az boards work-item update --id ID --assigned-to $me
```
## Planning Flow - Features, Stories, Hierarchy and Estimation
Assumes `$config` loaded from `.\ado\config.json`.
### Path conventions
| Work Item Type | Area Path (config key) | Iteration Path (config key) |
|---------------|------------------------|-----------------------------|
| Epic | `areaPaths.epic` | `iterationPath` |
| Feature | `areaPaths.feature` | `iterationPath` |
| User Story | `areaPaths.story` | `iterationPath` |
| Task | `areaPaths.task` | `iterationPath` |
| Bug | `areaPaths.bug` | `iterationPath` |
### Descriptions and acceptance criteria
| Work Item Type | Description Field | Acceptance Criteria |
|---------------|-------------------|-----Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.