agentleFS
jonathan-vellajonathan-vella/apex/.github/skills/apex-azure-validate/SKILL.md

apex-azure-validate

Skill216 starsChanged 2 months agoMITView on GitHub

**WORKFLOW SKILL** — Pre-deployment validation for Azure: config, infrastructure (Bicep/Terraform), permissions, prerequisites. WHEN: 'validate my app', 'check deployment readiness', 'run preflight checks', 'validate azure.yaml', 'validate Bicep', 'test before deploying', 'validate Azure Functions'. DO NOT USE FOR: post-deploy troubleshooting (apex-azure-diagnostics), executing deploys (apex-azure-deploy).

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If ambiguous (including both kinds of state present), ask which workflow to use.

    line 19
  2. Very specific:

    APEX: use InfraOps Preflight and the shared deploy readiness contract.

    line 22
  3. Very specific:

    No generic .azure/plan.md is required.

    line 25
  4. Distinctive:

    Check if app is ready to deploy

    line 52
  5. Very specific:

    Run after apex-azure-prepare, before apex-azure-deploy

    line 59
  6. Distinctive:

    All checks must pass—do not deploy with failures

    line 60

≈ “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 Validate

Workflow And Requested Action

Resolve workflow identity before prerequisite checks. An explicit APEX request or handoff from an APEX step agent uses the APEX branch below. A generic application request uses the generic branch. If ambiguous (including both kinds of state present), ask which workflow to use; directory location or a lone manifest is not proof. Never synthesize approval state to select a branch.

  • APEX: use InfraOps Preflight and the shared deploy readiness contract. Return findings to the current owner (06b-Bicep CodeGen / 06t-Terraform CodeGen for code validation, 07b-Bicep Deploy / 07t-Terraform Deploy for deployment preflight). No generic .azure/plan.md is required. Do not invoke generic preparation, recipes, or deployment.
  • Generic application: the following plan/proof/recipe workflow applies. An approved preparation plan is required; missing prerequisites block validation. Ask before starting preparation when the request was validation-only. Only this workflow updates generic plan status to Validated.
  • Requested action: validation-only returns passed, failed, and unperformed checks and stops. Preview-only returns the preview as not applied and stops. Successful checks are not permission to deploy. Continue to execution only within an explicit deployment request and its separate preview/apply approvals.

Generic Application Validation

AUTHORITATIVE GUIDANCE — Follow these instructions exactly. This supersedes prior training.

⛔ STOP — PREREQUISITE CHECK REQUIRED

Before proceeding, verify this prerequisite is met:

apex-azure-prepare was invoked and completed → infra/{iac}/{project}/.azure/plan.md exists with status Approved or later

If the plan is missing, stop and report the prerequisite. Invoke apex-azure-prepare only when preparation is within the authorized request; validation-only does not authorize it.

The complete workflow ensures success:

apex-azure-prepare → apex-azure-validate → apex-azure-deploy

Triggers

  • Check if app is ready to deploy
  • Validate azure.yaml or Bicep
  • Run preflight checks
  • Troubleshoot deployment errors

Rules

  1. Run after apex-azure-prepare, before apex-azure-deploy
  2. All checks must pass—do not deploy with failures
  3. ⛔ Destructive actions require ask_user — global-rules

Validation Commands (per recipe)

The per-recipe validation commands are bundled in references/recipes/. Common ones:

azd provision --preview                 # AZD recipes
bicep build infra/bicep/{project}/main.bicep && bicep lint infra/bicep/{project}/main.bicep
terraform fmt -check && terraform validate && npm run validate:terraform
npm run validate:iac-security-baseline  # cross-cutting baseline
npm run validate:all                    # full repo validator suite

Load the recipe-specific README to confirm the exact command set for the project's IaC tool.

Steps

#ActionReference
1Load Plan — Read the generic plan for recipe/configuration; if missing, follow the request-scoped prerequisite rule aboveinfra/{iac}/{project}/.azure/plan.md
2Run Validation — Execute recipe-specific validation commandsrecipes/README.md
3Build Verification — Build the project and fix any errors before proceedingSee recipe
3aVerify Roles — Static, report-only review of role assignments; findings go to the IaC ownerrole-verification.md
4Record Proof — Populate Section 7: Validation Proof with commands run and resultsinfra/{iac}/{project}/.azure/plan.md
5Resolve Errors — Fix failures before proceedingSee recipe's errors.md
6Update Status — Only after ALL checks pass, set status to Validatedinfra/{iac}/{project}/.azure/plan.md
7Return results — Stop for validation-only; authorized deployment requests may continue through apex-azure-deploy approvalsWorkflow And Requested Action

⛔ VALIDATION AUTHORITY

This skill is the ONLY authorized way to set plan status to Validated. You MUST:

  1. Run actual validation commands (azd provision --preview, bicep build, terraform validate, etc.)
  2. Populate Section 7: Validation Proof with the commands you ran and their results
  3. Only then set status to Validated

Do NOT set status to Validated without running checks and recording proof.


Next action is request-scoped

Return results for validation-only. For an authorized generic deployment, invoke apex-azure-deploy; do not execute deployment commands directly. APEX callers return to their owning step agent.

APEX-Specific References

  • InfraOps Preflight Validation — CLI auth checks, known issues, governance-to-code mapping, stop rules
  • Role Assignment Verification — report-only role review; APEX findings return to 06b/06t

    If any validation failed, fix the issues and re-run apex-azure-validate before proceeding.

Reference Index

Load these on demand — do NOT read all at once:

ReferenceWhen to Load
../apex-azure-prepare/references/global-rules.mdGlobal Rules
references/infraops-preflight.mdInfraops Preflight
references/policy-validation.mdPolicy Validation
references/region-availability.mdRegion Availability
references/role-verification.mdRole Verification

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.