Agent skill

Apex Azure Governance Discovery

by jonathan-vella in jonathan-vella/apex

ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl.

MITAuto-check passedDevOps & Cloud

Install Apex Azure Governance Discovery

skills CLI
$ npx skills add jonathan-vella/apex --skill apex-azure-governance-discovery -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jonathan-vella/apex apex-azure-governance-discovery --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/apex-azure-governance-discovery .claude/skills/apex-azure-governance-discovery && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
apex-azure-governance-discovery
GitHub stars
217
Token cost
~2.1k tokens
SKILL.md length
702 words
Files
20 (incl. scripts, references)
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl.

  • : artifact writing
  • SKILL.md covers When to Use, When NOT to Use, Rules and Steps, plus 4 more sections
  • Runs Python scripts from its folder; calls az, python and pytest
  • Architecture mapping

What it does

Apex Azure Governance Discovery is an agent skill from jonathan-vella/apex. ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl. MG-inherited), definitions/exemptions, effect classification, emits governance-constraints JSON. WHEN: 'Azure policy discovery', 'effective policy assignments', 'governance constraints', '04g-Governance Phase 1', 'refresh governance JSON'. DO NOT USE FOR: artifact writing, architecture mapping.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 22 other files, including scripts and reference files (for example `references/baseline-check.md`, `references/discover-output.md` and `references/effect-classification.md`). Compatibility notes: Requires Python 3.14, Azure CLI on PATH, read access to the target subscription.

It sits in DevOps & Cloud. It works with Microsoft Azure. The repository describes itself as: APEX turns Azure platform engineering requirements into verified, deploy-ready IaC — powered by GitHub Copilot agents, real-time pricing, and built-in compliance. The licence is MIT.

When your agent uses it

  • : artifact writing
  • Architecture mapping

Example prompts

  • “Azure policy discovery”
  • “effective policy assignments”
  • “governance constraints”
  • “/apex-azure-governance-discovery”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Requires Python 3.14, Azure CLI on PATH, read access to the target subscription.

What it can do on your machine

Read from SKILL.md and the folder at commit d0d3f18. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 7 files in scripts/ (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • az
    • python
    • pytest
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use az and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Python 3.14, Azure CLI on PATH, read access to the target subscription.

    From compatibility in the SKILL.md frontmatter.

Context cost

Apex Azure Governance Discovery loads about 2.1k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 100 tokens; SKILL.md has 702 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~100
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~17k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jonathan-vella/apex at commit d0d3f18, republished under its MIT licence (© jonathan-vella). 702 words, ~2,094 tokens.

Download SKILL.mdSave it as .claude/skills/apex-azure-governance-discovery/SKILL.md (or your agent's skills folder). This skill also uses 19 other files; get the full folder from GitHub.
name
apex-azure-governance-discovery
description
**ANALYSIS SKILL** — Azure Policy discovery: effective assignments (incl. MG-inherited), definitions/exemptions, effect classification, emits governance-constraints JSON. WHEN: 'Azure policy discovery', 'effective policy assignments', 'governance constraints', '04g-Governance Phase 1', 'refresh governance JSON'. DO NOT USE FOR: artifact writing, architecture mapping.
compatibility
Requires Python 3.14, Azure CLI on PATH, read access to the target subscription.
user-invocable
true
disable-model-invocation
false
argument-hint
project, subscription scope and discovery or refresh

Azure Governance Discovery Skill

Replaces the legacy governance-discovery-subagent with a deterministic script. The skill exposes scripts/discover.py — a single batched REST traversal that emits the schema-compliant 04-governance-constraints.json envelope. The parent agent (04g-Governance) invokes it via run_in_terminal, reads a compact one-line JSON status from stdout, and proceeds to artifact writing without ever pulling raw Azure REST responses into LLM context.

When to Use

  • Step 3.5 governance discovery for a project
  • Refreshing the governance snapshot after policy changes
  • Regenerating inputs for Step 4 (IaC Plan) and Step 5 (IaC Code)

When NOT to Use

  • Writing 04-governance-constraints.md — that stays in the parent agent
  • Cross-referencing architecture resources — parent-side LLM work
  • Challenger review orchestration — parent-side LLM work
  • Any workflow that is not 04g-Governance

Rules

  • Stay deterministic — the discovery script is a single batched REST traversal; no LLM calls, no retries that hide errors, no inferred policy effects
  • Use compact status for routing, then targeted envelope reads for decisions; recover all required evidence and diagnostics
  • Schema compliance is mandatory — envelope MUST conform to tools/schemas/governance-constraints.schema.json (schema_version: governance-constraints-v1)
  • Property paths are always strings — use "" for unresolvable paths, never null
  • Defender filtering is narrow — the collector retains enforcement-bearing assignments; --include-defender-auto retains all
  • Exit codes are contract — 0 = COMPLETE, 1 = PARTIAL, 2 = FAILED; argparse errors also return nonzero. COMPLETE is collection status, not planning approval
  • No artifact writing — the script emits JSON + a .preview.md; the agent owns the final 04-governance-constraints.md content and traffic-light rendering
  • Reuse only current scoped evidence — project, subscription, options, schema, COMPLETE status, valid TTL and exemptions must match
  • Resolve confirmations before review — all topics require current evidence-bound answers; unknowns block. See inline resolution

Steps

bash
python .github/skills/apex-azure-governance-discovery/scripts/discover.py \
    --project my-project \
    --out agent-output/my-project/04-governance-constraints.json

Flags:

FlagMeaning
--project <name>Required. Used only for cache key and provenance.
--out <path>Required. Full envelope written here (overwrites).
--subscription <id|default>Optional. default uses az account show.
--refreshForce re-discovery even if <out> already exists.
--include-defender-autoInclude Defender-for-Cloud auto-assignments (excluded by default).

Exit codes:

CodeMeaning
0COMPLETE — discovery succeeded
1PARTIAL — partial data written; parent should surface to user
2FAILED — auth/network/permission error
2Invalid arguments (argparse), distinguished from failures by diagnostics

Stdout — always exactly one machine-readable JSON line first, optional human-readable preview after:

json
{
  "status": "COMPLETE",
  "cache_hit": false,
  "assignment_total": 247,
  "blockers": 18,
  "auto_remediate": 12,
  "exempted": 3,
  "out_path": "agent-output/my-project/04-governance-constraints.json"
}

Output Contract

The script writes a JSON envelope conforming to tools/schemas/governance-constraints.schema.json (schema_version: governance-constraints-v1). Each finding carries both bicepPropertyPath and azurePropertyPath (always strings — empty "" when unresolvable, never null), plus category, exemption, and classification ("blocker" | "auto-remediate" | "informational"; exempted Deny/Modify blockers downgrade to "informational"). Top-level envelope also includes policies (alias of findings), tags_required, allowed_locations, and discovery_metadata (L0 attestation envelope — MANDATORY).

For the full per-finding schema and additive fields, read references/schema.md.

For the L0 envelope spec (shape, completeness-signature algorithm, end-of-discovery self-check, refresh handoff, consumer protocol, backward-compatibility rules), read references/l0-envelope.md.

For the effect classification table and Defender-filter rationale, read references/effect-classification.md.

Show full SKILL.md (254 more words)Show less
Preview Markdown

The script also writes a sibling .preview.md file (e.g., 04-governance-constraints.preview.md) with the H2 structure matching the apex-azure-artifacts template. The agent copies this to 04-governance-constraints.md and annotates placeholder sections only.

Reference Index

References are split into two tiers so the agent loads only what it needs:

Load-always (the minimum to drive the core workflow):

  • references/terminal-commands.md — pre-built batched commands (Cmd 1–8) for the entire phase.

Load-on-demand (read only when the relevant decision point is reached):

  • references/effect-classification.md — effect-to-classification mapping, exemption downgrade, Defender filter rationale
  • references/schema.md — output JSON envelope, findings[] structure, additive fields
  • references/l0-envelope.md — canonical L0 envelope spec (shape, signature algorithm, self-check, refresh handoff, consumer protocol)
  • references/inline-resolution-gate.md — Phase 2.7 protocol + signature/TTL short-circuit
  • references/baseline-check.md — Phase 0.45 cached-baseline procedure
  • references/policy-override-pattern.md — structured override object shape
  • references/reconciliation-disposition.md — Phase 2.5 disposition rules
  • references/resume-checks.md — Phase 0.4 short-circuit conditions (signature, TTL, confirmations)
  • references/discover-output.md — discover.py stdout shape, exit codes, anti-patterns, discovery-signature persistence

Design Notes

  • The collector traverses paginated assignments, definitions, initiatives and exemptions, resolving referenced definitions as needed; do not assume a fixed call count.
  • Cache reuse checks project/subscription/options and COMPLETE envelope freshness, including positive TTL, nonfuture timestamp and still-valid scoped exemptions. --arch regenerates the preview from current architecture even on a cache hit.
  • Signature verification, confirmation bindings and current review inputs remain consumer gates; the collector's cache hit alone cannot attest them.
  • Filtering is based on assignment metadata and effective enforcement, not display-name claims. Review discovery_summary and diagnostics; do not claim an unmeasured reduction.

Testing

bash
pytest .github/skills/apex-azure-governance-discovery/scripts/test_discover.py
# or
npm run test:governance-discovery

Fixtures live in scripts/fixtures/ and simulate az rest responses via subprocess.check_output monkeypatching — no Azure account required for tests.

© jonathan-vella, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 19 other files (scripts, references) in .github/skills/apex-azure-governance-discovery of jonathan-vella/apex.

  • SKILL.md
  • references/baseline-check.md
  • references/discover-output.md
  • references/effect-classification.md
  • references/inline-resolution-gate.md
  • references/l0-envelope.md
  • references/policy-override-pattern.md
  • references/reconciliation-disposition.md
  • references/resume-checks.md
  • references/schema.md
  • references/terminal-commands.md
  • scripts/discover.py
  • scripts/fixtures/README.md
  • scripts/governance_baseline.py
  • scripts/render_cached_governance.py
  • scripts/render_governance.py
  • scripts/test_discover.py
  • scripts/test_governance_baseline.py
  • … and 2 more

Open the folder on GitHubat commit d0d3f18

Compare with similar skills

Apex Azure Governance Discovery next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Apex Azure Governance Discovery compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Apex Azure Governance Discovery this skilljonathan-vella/apex217—~2.1kAutomated safety check: PassMIT
Cloud Cost Optimizationwshobson/agents40k14 repos~1.7kAutomated safety check: PassMIT
Terravision Cloud Diagramspatrickchugh/terravision1.6k—~5.6kAutomated safety check: NotesAGPL-3.0-only
Thesvgglincker/thesvg2.8k—~1.5kAutomated safety check: PassMIT
Azure PricingAzure/Copilot-Studio-and-Azure1102 repos~2.4kAutomated safety check: PassMIT
Azure Architecture Autopilotgithub/awesome-copilot40k1 repos~1.9kAutomated safety check: PassMIT

Similar skills

  • Cuts cloud spend across AWS, Azure, GCP and OCI with cost tagging, rightsizing, commitment and spot pricing models, and architecture changes.

    40k GitHub starsUsed in 14 repos~1.7k tokens
    DevOps & CloudAuto-check passed
  • Terravision Cloud Diagrams

    patrickchugh/terravision

    Draw cloud architecture diagrams for AWS, Azure or GCP with the official provider icon sets, using TerraVision.

    1.6k GitHub stars~5.6k tokensUpdated 4 days ago
    DevOps & CloudAuto-check: notes
  • Thesvg

    glincker/thesvg

    Fetch brand SVG logos and cloud architecture icons (AWS, Azure, GCP) from theSVG.

    2.8k GitHub stars~1.5k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Azure Pricing

    Azure/Copilot-Studio-and-Azure

    Official

    Fetches real-time Azure retail pricing using the Azure Retail Prices API (prices.azure.com) and estimates Copilot Studio agent credit consumption.

    110 GitHub starsUsed in 2 repos~2.4k tokens
    DevOps & CloudAuto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    DevOps & CloudAuto-check passed
  • Aspire

    microsoft/aspire.dev

    Official

    Orchestrates Aspire distributed applications using the Aspire CLI for running, debugging, and managing distributed apps.

    195 GitHub starsUsed in 4 repos~1.1k tokens
    DevOps & CloudAuto-check passed

More from jonathan-vella/apex

All 39 skills in this repo
  • Apex Azure Diagnostics

    jonathan-vella/apex

    WORKFLOW SKILL — Debug Azure production issues: Container Apps, Functions, App Service, AKS, VMs and messaging, with KQL log analysis.

    217 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Apex Context Management

    jonathan-vella/apex

    UTILITY SKILL — Two-mode context-window management. An agent skill from jonathan-vella/apex.

    217 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Apex Python Diagrams

    jonathan-vella/apex

    UTILITY SKILL — Python diagram generation for Azure architectures, WAF/cost/compliance charts, ERDs, swimlanes, timelines, and wireframes.

    217 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Apex Terraform Search Import

    jonathan-vella/apex

    WORKFLOW SKILL — Manual-only discovery and import of existing Azure resources into Terraform management.

    217 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Apex Vendor Prompting

    jonathan-vella/apex

    ANALYSIS SKILL — Manual-only audit of Anthropic Claude Opus 5.5 / Sonnet 5.5 and OpenAI GPT-6 / GPT-5.6 prompting guidance and APEX conventions.

    217 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Apex Agent Authoring

    jonathan-vella/apex

    WORKFLOW SKILL — Creates, restructures, and audits GitHub Copilot .agent.md and .prompt.md files with correct frontmatter, handoffs, model policy, context budgets, and validation.

    217 GitHub stars~1.8k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Apex Azure Governance Discovery

What does Apex Azure Governance Discovery do?

ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl. Apex Azure Governance Discovery is an agent skill from jonathan-vella/apex. ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl.

When should I use Apex Azure Governance Discovery?

Apex Azure Governance Discovery fits situations like: : artifact writing; architecture mapping.

How do I install Apex Azure Governance Discovery in Claude Code?

Run `npx skills add jonathan-vella/apex --skill apex-azure-governance-discovery -a claude-code`. Or copy the skill folder (.github/skills/apex-azure-governance-discovery in jonathan-vella/apex) into .claude/skills/apex-azure-governance-discovery in your project. Claude Code loads it when a task matches its description.

How do I install Apex Azure Governance Discovery in Codex?

Run `npx skills add jonathan-vella/apex --skill apex-azure-governance-discovery -a codex`. Or copy the skill folder (.github/skills/apex-azure-governance-discovery in jonathan-vella/apex) into .agents/skills/apex-azure-governance-discovery in your project. Codex loads it when a task matches its description.

Can I use Apex Azure Governance Discovery in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jonathan-vella/apex --skill apex-azure-governance-discovery -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/apex-azure-governance-discovery, .gemini/skills/apex-azure-governance-discovery, .github/skills/apex-azure-governance-discovery and .opencode/skills/apex-azure-governance-discovery in your project.

What does Apex Azure Governance Discovery need to run?

Going by SKILL.md and its folder, Apex Azure Governance Discovery needs Python for the scripts in its folder and the command-line tools its instructions call (az, python, pytest and npm). Our summary lists: Python 3. Compatibility (from SKILL.md): Requires Python 3.14, Azure CLI on PATH, read access to the target subscription..

Does Apex Azure Governance Discovery access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Apex Azure Governance Discovery safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Apex Azure Governance Discovery use?

Apex Azure Governance Discovery is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Apex Azure Governance Discovery use?

About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15k tokens, read only when the agent opens those files.

What are the alternatives to Apex Azure Governance Discovery?

Skills that share tags, products or a category with Apex Azure Governance Discovery: Cloud Cost Optimization (wshobson/agents, 40k stars), Terravision Cloud Diagrams (patrickchugh/terravision, 1.6k stars), Thesvg (glincker/thesvg, 2.8k stars) and Azure Pricing (Azure/Copilot-Studio-and-Azure, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Apex Azure Governance Discovery?

jonathan-vella (a GitHub user) maintains it in jonathan-vella/apex, which has 217 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on October 10, 2026.

Source: jonathan-vella/apex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.