azure-pipelines-validator
Validate, lint, audit, or review azure-pipelines.yml — syntax, security, best practices.
What this skill does
# 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: ```bash 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 bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" ``` Auto-detect from current directory (up to depth 3): ```bash 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. 2. Run local validator - Default full pass: ```bash bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" ``` - Syntax only: ```bash bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" --syntax-only ``` - Best practices only: ```bash bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" --best-practices ``` - Security only: ```bash bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" --security-only ``` - Strict mode (warnings fail): ```bash bash "$SKILL_DIR/scripts/validate_azure_pipelines.sh" "$PIPELINE_FILE" --strict ``` 3. Interpret exit behavior - `0`: pass (or non-blocking checks only) - `1`: validation failed (blocking issues) - `2`: invalid invocation (missing/ambiguous file or bad args) 4. Return findings in the report format below. ## Expected Report Format (Severity Buckets) Always return results in this structure: ```text 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. ```text mcp__context7__resolve-library-id(...) mcp__context7__query-docs(...) ``` 2. Official docs second (`learn.microsoft.com` / Microsoft Azure DevOps docs). 3. 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 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.
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.