agentleFS
MicrosoftKnown publishermicrosoft/adoqr/.github/skills/ado-assessment/SKILL.md

ado-assessment

Skill57 starsChanged 6 months agoMITView on GitHub

Review an Azure DevOps organization or project for adherence to Azure DevOps best practices. Use when: running an ADO Quick Review, evaluating org or project configuration, checking adoption of recommended settings, identifying improvement opportunities, ADO best practices, org review, project review.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the relevant reference file based on the user's assessment scope.

    line 70
  2. Distinctive:

    When reporting results, use this format for each control:

    line 87
  3. Distinctive:

    After the assessment completes, save the results as Markdown files in the workspace root.

    line 101
  4. Distinctive:

    Use the organization short name and project name, lowercased and with spaces replaced by hyphens.

    line 110
  5. Distinctive:

    Write the files at the end of Phase 2 (after all controls are assessed and results are shown to the user).

    line 127

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Azure DevOps Quick Review

Review an Azure DevOps organization or project for adherence to Azure DevOps best practices by collecting settings via Azure CLI / REST API and evaluating them against documented Microsoft recommendations.

This skill does NOT call AzSK.ADO. It brings best-practice knowledge derived from those controls and uses native Azure CLI and REST API calls to collect and evaluate settings.

Workflow

Phase 1 — Collect Settings

Gather the current configuration of an ADO organization or project using az devops CLI commands and REST API calls. The reference files below contain the exact commands and API endpoints for each resource type.

Phase 2 — Assess Against Best Practices

Compare collected settings against the best-practice controls documented in the reference files. Each control has a severity (High/Medium/Low), a rationale, and remediation guidance. Generate a report showing which best practices have been adopted and which remain as improvement opportunities.

Prerequisites

# Azure CLI 2.81.0+
az version

# Azure DevOps extension
az extension add --name azure-devops

# Login
az login

# Set defaults
az devops configure --defaults organization=https://dev.azure.com/<YourOrg> project=<YourProject>

Authentication

# Interactive login
az login

# PAT-based login (for automation)
$env:AZURE_DEVOPS_EXT_PAT = '<your-pat>'
az devops login

# Get REST API bearer token
$token = az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query accessToken -o tsv

Resource Types Covered

ResourceControlsScope
Organization35+ controlsAuth, users, extensions, pipelines, feeds, audit
Project25+ controlsVisibility, admins, pipelines, permissions, credential scanning
Build Pipelines20+ controlsSecrets, permissions, forks, branches, task groups
Release Pipelines12+ controlsSecrets, approvals, permissions, task groups
Service Connections15+ controlsAuth, scope, access, permissions, branches
Agent Pools10+ controlsPermissions, auto-provision, patching, secrets
Repos / Feeds / Secure Files / Environments20+ controlsAccess, permissions, branches, approvals
Variable Groups10+ controlsSecrets, permissions, access, branches
Users / PATs6+ controlsPAT scope, expiry, alternate credentials

Each resource is evaluated against documented Microsoft best practices.

Reference Files

Read the relevant reference file based on the user's assessment scope.

FileKeywordsCovers
references/org-settings.mdorganization, org, AAD, external users, public projects, extensions, audit, OAuth, SSH, feeds, conditional access, adminOrganization-level settings — collection commands and best-practice controls
references/project-settings.mdproject, visibility, admin, credential scanner, permissions, pipeline scoping, inactiveProject-level settings — collection commands and best-practice controls
references/build-controls.mdbuild, pipeline, CI, secrets, fork, task group, variable, branch, YAMLBuild pipeline best-practice controls — collection commands and assessments
references/release-controls.mdrelease, deployment, approval, CD, production, stageRelease pipeline best-practice controls — collection commands and assessments
references/service-connection-controls.mdservice connection, endpoint, SPN, certificate, subscription, ARMService connection best-practice controls — collection commands and assessments
references/agent-pool-controls.mdagent, pool, self-hosted, auto-provision, auto-updateAgent pool best-practice controls — collection commands and assessments
references/repo-feed-environment-controls.mdrepository, repo, feed, artifact, secure file, environment, branch protectionRepos, feeds, secure files, and environment best-practice controls
references/variable-group-controls.mdvariable group, secret, key vault, linkedVariable group best-practice controls
references/user-pat-controls.mduser, PAT, personal access token, alternate credentials, inactiveUser and PAT hygiene best-practice controls
references/errors.mderror, 401, 403, permission denied, troubleshootCommon errors and troubleshooting

Assessment Output Format

When reporting results, use this format for each control:

| Status | Severity | Control | Finding |
|--------|----------|---------|---------|
| PASS   | High     | AAD authentication enabled | Organization uses AAD-backed auth |
| FAIL   | High     | External user access | 3 external users found with access |
| FAIL   | Medium   | Audit streaming | Audit streaming is not configured |

Summarize at the end with counts: X PASS | Y FAIL | Z NOT CHECKED

Saving Results

After the assessment completes, save the results as Markdown files in the workspace root. Create separate files for the organization and each project:

FileContents
{org-name}-org-assessment.mdOrganization-level controls (auth, users, extensions, pipelines, feeds, audit, agent pools, PATs)
{org-name}-{project-name}-assessment.mdProject-level controls (visibility, admins, pipeline settings, permissions) plus all project-scoped resources: build pipelines, release pipelines, service connections, repos, feeds, environments, variable groups, secure files

File naming

  • Use the organization short name and project name, lowercased and with spaces replaced by hyphens.
  • Examples for org pbi-demo with projects eShop Web Demo and CL-DEMO:
    • pbi-demo-org-assessment.md
    • pbi-demo-eshop-web-demo-assessment.md
    • pbi-demo-cl-demo-assessment.md

File structure

Each file must include:

  1. Header — assessment date, organization/project name, assessor
  2. Control results table — the standard Status | Severity | Control | Finding table
  3. Summary counts — X PASS | Y FAIL | Z NOT CHECKED
  4. Critical findings — list of FAIL items sorted by severity (High first) with remediation steps

When to write

Write the files at the end of Phase 2 (after all controls are assessed and results are shown to the user). Always create the files — do not ask for confirmation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.