Token导航 LogoToken导航TokenDH.com
云服务执行命令github未标认证来源可访问许可证需确认审计异常

azure-pipelines-validatorAzure pipelines validator 部署

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

3,634

周安装

147

GitHub Stars

197

下载量

1,141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:azure-pipelines-validator(Azure pipelines validator 部署)
来源仓库:https://github.com/akin-ozer/cc-devops-skills
仓库路径:skills/azure-pipelines-validator
安装命令:
npx skills add https://github.com/akin-ozer/cc-devops-skills --skill azure-pipelines-validator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akin-ozer/cc-devops-skills --skill azure-pipelines-validator

简介

用于检测 Azure DevOps 流水线 YAML 的安全性与最佳实践合规性。

  • 适用于合并前代码审查、CI 失败原因分析和配置漏洞扫描。
  • 先执行本地脚本验证,仅在必要时查询远程文档补充说明。
  • 需确保流水线文件路径正确,且 Agent 有权限读取相关项目上下文。
  • azure-pipelines-validator 属于云服务类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Azure Pipelines Validator

Use this skill to validate Azure DevOps pipeline YAML (azure-pipelines.yml / azure-pipelines.yaml) with local scripts first, then escalate to docs only when local output is not enough.

Trigger Phrases

Use this skill when the user asks things like:

  • "Validate my azure-pipelines.yml."
  • "Why is this Azure pipeline YAML failing?"
  • "Run a security scan on this Azure DevOps pipeline."
  • "Check this pipeline for best-practice issues."
  • "Review this pipeline in CI before merge."

Do not use this skill for pipeline generation from scratch. Use azure-pipelines-generator for that.

Deterministic Path Setup (No Ambiguity)

Run from any directory using explicit absolute paths:

REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)"
SKILL_DIR="$REPO_ROOT/devops-skills-plugin/skills/azure-pipelines-validator"
PIPELINE_FILE="$REPO_ROOT/azure-pipelines.yml"

If REPO_ROOT is empty, stop and ask for the repository root path. Do not guess paths.

Validate one file:

bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE"

Auto-detect from current directory (up to depth 3):

bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh"

If auto-detect returns multiple files, rerun with one explicit file path.

Local-First Execution Model

  1. Preflight
  • Confirm bash and python3 are available.
  • Confirm target file exists.
  1. Run local validator
  • Default full pass:
bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE"
  • Syntax only:
bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" --syntax-only
  • Best practices only:
bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" --best-practices
  • Security only:
bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" --security-only
  • Strict mode (warnings fail):
bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" --strict
  1. Interpret exit behavior
  • 0: pass (or non-blocking checks only)
  • 1: validation failed (blocking issues)
  • 2: invalid invocation (missing/ambiguous file or bad args)
  1. Return findings in the report format below.

Expected Report Format (Severity Buckets)

Always return results in this structure:

Validation Report: <path>

Summary:
- Blocking: <count>        # Syntax errors + Security critical/high
- Warning: <count>         # Security medium/low + best-practice warnings
- Info: <count>            # Suggestions
- Skipped: <count>         # Explicitly name skipped checks

Findings:
- [Blocking][syntax][<rule-id>] line <n> - <message>
- [Blocking][security-high][<rule-id>] line <n> - <message>
- [Warning][security-medium][<rule-id>] line <n> - <message>
- [Warning][best-practice][<rule-id>] line <n> - <message>
- [Info][best-practice][<rule-id>] line <n> - <message>

Remediation:
- <short, concrete fix per finding>

Execution Notes:
- Commands run: <exact commands>
- Environment/fallback notes: <tool missing, skipped checks, offline constraints>

Escalation Policy (Docs Only When Needed)

Run local checks first. Escalate only when at least one condition is true:

  • Local finding depends on current upstream behavior (task versions, deprecations, new inputs).
  • User asks for "latest/current/recent" Azure Pipelines task or schema details.
  • Local scripts cannot determine validity for a specific task/resource syntax.

Escalation order:

  1. Context7 docs tooling first.
mcp__context7__resolve-library-id(...)
mcp__context7__query-docs(...)
  1. Official docs second (learn.microsoft.com / Microsoft Azure DevOps docs).
  2. General web search only if the first two are insufficient.

When escalating, cite the source URL and state what local check could not answer.

Fallback Behavior

Use this matrix when tools are unavailable:

  • Condition: yamllint unavailable.
  • Action: Continue with syntax/best-practice/security checks.
  • Report note: "YAML lint skipped because yamllint is unavailable."
  • Condition: python3 unavailable or venv/dependency setup fails.
  • Action: Mark scripted validation blocked; perform manual YAML review only if requested.
  • Report note: "Local scripted validation blocked by missing Python runtime/dependencies."
  • Condition: No network while dependencies/docs are needed.
  • Action: Run whatever local checks are still possible; defer doc/version verification.
  • Report note: "External verification deferred due offline environment."
  • Condition: Multiple auto-detected pipeline files.
  • Action: Do not pick arbitrarily; require explicit target file path.
  • Report note: "Validation paused until a single target file is specified."

Rule Buckets (What the Scripts Check)

Syntax examples:

  • yaml-syntax
  • yaml-invalid-root
  • invalid-hierarchy
  • task-invalid-format
  • pool-invalid
  • deployment-missing-strategy

Best-practice examples:

  • missing-displayname
  • task-version-zero
  • task-missing-version
  • pool-latest-image
  • missing-cache
  • missing-deployment-condition

Security examples:

  • hardcoded-password
  • hardcoded-secret
  • curl-pipe-shell
  • eval-command
  • insecure-ssl
  • container-latest-tag
  • variable-not-secret

Use script output rule IDs directly in the report.

References and Examples

  • Syntax reference: docs/azure-pipelines-reference.md
  • Example pipelines: examples/

Quick local test:

bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$SKILL_DIR/examples/basic-pipeline.yml"

Done Criteria

This skill execution is done when all conditions are true:

  • Trigger match is explicit and plain-language examples are provided near the top.
  • Validation command(s) were run with unambiguous paths.
  • Report uses severity buckets (Blocking, Warning, Info, Skipped).
  • Fallback behavior is explicitly reported for unavailable tools/environment constraints.
  • External docs were consulted only when local checks were insufficient.

适合场景

01

Azure 资源规划

02

云服务升级

03

基础设施检查

04

企业云环境自动化

能力概览

能力 1

整理 Azure 服务操作流程

能力 2

提示 CLI/MCP 前置条件

能力 3

辅助云资源检查和规划

能力 4

保留官方服务来源线索

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.67%
按下载量换算418

Claude

32.52%
按下载量换算371

Cursor

19.25%
按下载量换算220

Gemini CLI

9.13%
按下载量换算104

安全审计

Gen Agent Trust Hub

未通过

Socket

未通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/akin-ozer/cc-devops-skills --skill azure-pipelines-validator 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills