본문으로 건너뛰기
cccskills
무료GitHub에 공개

azure-pipelines-validator

Validate, lint, audit, or review azure-pipelines.yml — syntax, security, best practices.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Azure
설치 방법 보기

포함된 파일(22)

  • SKILL.md6.0 KB
  • .gitignore11 B
  • assets/.yamllint1.8 KB
  • docs/azure-pipelines-reference.md7.6 KB
  • examples/basic-pipeline.yml2.5 KB
  • examples/deployment-pipeline.yml3.5 KB
  • examples/docker-build.yml1.6 KB
  • examples/multi-platform.yml1.4 KB
  • examples/regression-conditional-danger.yml187 B
  • examples/regression-runonce-on-failure.yml308 B
  • examples/template-conditional-stages.yml529 B
  • examples/template-conditional-steps.yml587 B
  • examples/template-example.yml1.3 KB
  • examples/test-with-issues.yml690 B
  • scripts/check_best_practices.py20.1 KB
  • scripts/check_security.py22.4 KB
  • scripts/python_wrapper.sh2.6 KB
  • scripts/step_walker.py5.3 KB
  • scripts/test_regressions.py4.2 KB
  • scripts/validate_azure_pipelines.sh10.6 KB
  • scripts/validate_syntax.py24.7 KB
  • scripts/yamllint_check.sh1.6 KB

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Generate, create, or scaffold Ansible playbooks, roles, tasks, handlers, inventory, vars.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

akin-ozer/cc-devops-skills3252026년 7월 27일 업데이트

Validate, lint, audit, or debug Ansible playbooks, roles, inventories, FQCN, tasks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

akin-ozer/cc-devops-skills3252026년 7월 27일 업데이트

Generate/create/scaffold azure-pipelines.yml, stages, jobs, steps, or reusable templates.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

akin-ozer/cc-devops-skills3252026년 7월 27일 업데이트

Create, generate, write, or scaffold bash/shell scripts (.sh), automation, or CLI tools.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

akin-ozer/cc-devops-skills3252026년 7월 27일 업데이트

Validate, lint, audit, or fix bash/shell/.sh scripts via ShellCheck.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

akin-ozer/cc-devops-skills3252026년 7월 27일 업데이트

Create, generate, or write Dockerfiles and multi-stage Docker images. Containerize apps.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

akin-ozer/cc-devops-skills3252026년 7월 27일 업데이트

akin-ozer의 스킬 모두 보기

이 스킬의 문제 신고