Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/charris-msft/azure-plugin/preflightgit clone --depth 1 https://github.com/charris-msft/azure-pluginWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00024 | $0.01230 |
| Opus 5 | $0.00012 | $0.00615 |
| Sonnet 5 | $0.00005 | $0.00246 |
| Haiku 4.5 | $0.00002 | $0.00123 |
Grade B, and why
preflight scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
# Linux: sudo systemctl start docker How it starts
The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Azure Pre-flight Checks
Run these checks BEFORE any Azure deployment to avoid mid-deployment failures.
Check Sequence
Execute these checks in order and report all issues before proceeding:
1. Tool Installation Check
# Check Azure CLI
az version 2>/dev/null || echo "MISSING: Azure CLI (az)"
# Check Azure Developer CLI
azd version 2>/dev/null || echo "MISSING: Azure Developer CLI (azd)"
# Check Docker (if container deployment)
docker version 2>/dev/null || echo "MISSING: Docker"
# Check func (if Functions deployment)
func --version 2>/dev/null || echo "MISSING: Azure Functions Core Tools"
If any tool is missing:
- Use
azure__extension_cli_installMCP tool to get installation instructions - Or offer to run installation commands directly:
- Windows:
winget install Microsoft.AzureCLI,winget install Microsoft.Azd - macOS:
brew install azure-cli,brew tap azure/azd && brew install azd
- Windows:
2. Authentication Check
# Check Azure CLI login
az account show --query "{Name:name, State:state, IsDefault:isDefault}" -o table 2>/dev/null || echo "NOT AUTHENTICATED: Run 'az login'"
# Check current subscription
az account show --query "id" -o tsv
# Check azd auth (uses az credentials)
azd auth login --check-status 2>/dev/null || echo "AZD: Will use Azure CLI credentials"
If not authenticated:
- Offer device code auth for remote/headless:
az login --use-device-code - Set longer timeout if auth fails: recommend user run
az loginin separate terminal
3. Subscription Quota Check
# Get subscription ID
SUBSCRIPTION=$(az account show --query id -o tsv)
# Check compute quotas (for Container Apps, AKS, VMs)
az quota usage list --scope "/subscriptions/$SUBSCRIPTION/providers/Microsoft.ContainerInstance/locations/eastus" 2>/dev/null || echo "Cannot check quotas - may need to verify manually"
# List current resource usage
az resource list --query "length(@)" -o tsv
Use MCP tools for detailed quota check:
Use azure__quota tools to check:
- Container instance limits
- App Service plan limits
- Storage account limits
- Cosmos DB account limits
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 162 lines · 24 tokens per session scan B 3e11e357fe6b
preflight is a command published in the GitHub repository charris-msft/azure-plugin (2 stars, last pushed 7mo ago), licensed MIT. It adds 24 tokens to every session and 1,230 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
constitution
Create or update the project constitution from interactive or provided principle inputs.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.