Iac Security
hardw00t/ai-security-arsenal
Infrastructure-as-Code security scanning router for Terraform, CloudFormation, Kubernetes manifests, Helm, ARM/Bicep.
WORKFLOW SKILL — Write and run Terraform tests (.tftest.hcl).
$ npx skills add jonathan-vella/apex --skill apex-terraform-test -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jonathan-vella/apex apex-terraform-test --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/apex-terraform-test .claude/skills/apex-terraform-test && rm -rf skills-srcUse ~/.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/
Install the "apex-terraform-test" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-terraform-test into .claude/skills/apex-terraform-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-terraform-test", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-terraform-testType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jonathan-vella/apex --skill apex-terraform-test -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jonathan-vella/apex apex-terraform-test --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/apex-terraform-test .agents/skills/apex-terraform-test && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "apex-terraform-test" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-terraform-test into .agents/skills/apex-terraform-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-terraform-test", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jonathan-vella/apex --skill apex-terraform-test -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jonathan-vella/apex apex-terraform-test --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/apex-terraform-test .cursor/skills/apex-terraform-test && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "apex-terraform-test" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-terraform-test into .cursor/skills/apex-terraform-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-terraform-test", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jonathan-vella/apex.git --path .github/skills/apex-terraform-test--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jonathan-vella/apex --skill apex-terraform-test -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jonathan-vella/apex apex-terraform-test --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/apex-terraform-test .gemini/skills/apex-terraform-test && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "apex-terraform-test" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-terraform-test into .gemini/skills/apex-terraform-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-terraform-test", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jonathan-vella/apex apex-terraform-testInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jonathan-vella/apex --skill apex-terraform-test -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/apex-terraform-test .github/skills/apex-terraform-test && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "apex-terraform-test" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-terraform-test into .github/skills/apex-terraform-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-terraform-test", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jonathan-vella/apex --skill apex-terraform-test -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jonathan-vella/apex apex-terraform-test --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathan-vella/apex.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/apex-terraform-test .opencode/skills/apex-terraform-test && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "apex-terraform-test" agent skill from https://github.com/jonathan-vella/apex/tree/main/.github/skills/apex-terraform-test into .opencode/skills/apex-terraform-test/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "apex-terraform-test", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
apex-terraform-testWORKFLOW SKILL — Write and run Terraform tests (.tftest.hcl).
Apex Terraform Test is an agent skill from jonathan-vella/apex. WORKFLOW SKILL — Write and run Terraform tests (.tftest.hcl). WHEN: "create terraform test", "write tftest", ".tftest.hcl", "mock provider", "test module", "test assertion". USE FOR: test files, run blocks, assertions, mock providers, plan-mode unit tests, apply-mode integration tests, test troubleshooting. DO NOT USE FOR: Bicep code, architecture decisions, deployment (use apex-azure-deploy).
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/mock-providers.md`, `references/test-examples.md` and `references/test-execution.md`). Compatibility notes: Requires Terraform = 1.6 (test blocks), = 1.7 (mock providers), = 1.9 (parallel execution)
It sits in DevOps & Cloud, covering Infrastructure as code. It works with Terraform, Microsoft Azure and Bicep. 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.
8 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit b8e5908. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
terraformFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
developer.hashicorp.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires Terraform >= 1.6 (test blocks), >= 1.7 (mock providers), >= 1.9 (parallel execution)
From compatibility in the SKILL.md frontmatter.
Apex Terraform Test loads about 1.6k tokens when it runs, and up to ~6.1k if it reads all its reference files. Until then it costs about 105 tokens; SKILL.md has 484 words of instructions outside code blocks.
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.
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); files beside SKILL.md are not scanned.
The full file from jonathan-vella/apex at commit b8e5908, republished under its MIT licence (© jonathan-vella). 484 words, ~1,637 tokens.
.claude/skills/apex-terraform-test/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Write, organize, and run Terraform's built-in test framework for Azure infrastructure modules.
Reference: Terraform Testing Documentation
| Concept | Description | Min Version |
|---|---|---|
| Test file | .tftest.hcl in tests/ directory | 1.6 |
| Run block | Single test scenario with assertions | 1.6 |
| Assert block | Condition that must be true for test to pass | 1.6 |
| Plan mode | command = plan — validates logic, no resources created | 1.6 |
| Apply mode | command = apply (default) — creates real infrastructure | 1.6 |
| Mock provider | Simulates provider without real API calls | 1.7 |
| Parallel execution | parallel = true on independent run blocks | 1.9 |
| Expect failures | Verify validation rules reject invalid input | 1.6 |
my-module/
├── main.tf
├── variables.tf
├── outputs.tf
└── tests/
├── defaults_unit_test.tftest.hcl # Plan mode (fast)
├── validation_unit_test.tftest.hcl # Plan mode (fast)
└── full_stack_integration_test.tftest.hcl # Apply mode (creates resources)Naming convention: *_unit_test.tftest.hcl (plan mode), *_integration_test.tftest.hcl (apply mode).
test block (test-wide settings)run blocks (test scenarios, sequential by default)variables block (file-level inputs, highest precedence)provider blocks (provider configuration)mock_provider blocks (simulated providers, TF 1.7+)See references/test-examples.md for a complete Azure Resource Group test
(unit tests, tag validation, expect_failures).
| Attribute | Type | Default | Description |
|---|---|---|---|
command | plan/apply | apply | Test mode |
variables | block | — | Override file-level variables |
module | block | — | Test alternate module (local/registry only) |
assert | block (1+) | — | Validation conditions |
expect_failures | list | — | Expected validation failures |
assert {
condition = <boolean expression>
error_message = "Human-readable failure description"
}Assertions can reference: resource attributes, outputs, run.<name>.<output>, var.*, data sources.
Variables precedence: run-block > file-level > all other sources.
See references/test-examples.md for module blocks, plan options, and prior run references.
Simulate Azure provider without API calls — ideal for unit tests.
Use mock_provider "azurerm" with mock_resource and mock_data blocks.
When to use: Unit tests, CI without Azure credentials, fast local development.
When NOT to use: Integration tests, validating actual Azure API behavior.
See references/mock-providers.md for full mock patterns and examples.
See references/test-examples.md for: conditional resources, tag validation,
resource count with for_each, variables precedence, and prior run references.
terraform test # All tests
terraform test -filter=tests/defaults_unit_test.tftest.hcl # Specific file
terraform test -verbose # Detailed output
terraform test -test-directory=integration-tests # Custom test directory-filter selects test files, not run-block names. Apply-mode tests create real resources
and attempt cleanup automatically; obtain deployment authorization before running them.
Use mocks for offline checks, and investigate any resources reported after failed cleanup.
*_unit_test.tftest.hcl / *_integration_test.tftest.hclcommand = plan for fast, cost-free validationexpect_failures for validation rule coveragerun.<name> when requiredRun terraform init, then use terraform providers schema -json to validate
that resource types referenced by assertions exist in the selected provider.
See apex-azure-defaults/references/terraform-conventions.md for the canonical
metadata source policy.
| File | Contents |
|---|---|
references/test-examples.md | Canonical example, common patterns, variables, module blocks |
references/test-patterns.md | Unit vs integration patterns, CI/CD examples, complex assertions |
references/mock-providers.md | Mock provider setup, mock resources/data sources, override files |
references/test-execution.md | CLI commands, parallel execution, verbose/debug, diagnostics |
© 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
SKILL.md and 4 other files (references) in .github/skills/apex-terraform-test of jonathan-vella/apex.
Open the folder on GitHubat commit b8e5908
Apex Terraform Test 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Apex Terraform Test this skilljonathan-vella/apex | 217 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Iac Securityhardw00t/ai-security-arsenal | 105 | — | ~2.4k | Automated safety check: Pass | None | |
| Azure Deploymicrosoft/GitHub-Copilot-for-Azure | 255 | 1 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Azure Preparemicrosoft/GitHub-Copilot-for-Azure | 255 | 1 repos | ~3.2k | Automated safety check: Pass | MIT | |
| Azure Validatemicrosoft/GitHub-Copilot-for-Azure | 255 | 1 repos | ~880 | Automated safety check: Pass | MIT | |
| Azure To AWSaws/agent-toolkit-for-aws | 2.8k | — | ~5.5k | Automated safety check: Pass | Apache-2.0 |
hardw00t/ai-security-arsenal
Infrastructure-as-Code security scanning router for Terraform, CloudFormation, Kubernetes manifests, Helm, ARM/Bicep.
microsoft/GitHub-Copilot-for-Azure
Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files.
microsoft/GitHub-Copilot-for-Azure
Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow.
microsoft/GitHub-Copilot-for-Azure
Pre-deployment validation for Azure readiness. An agent skill from microsoft/GitHub-Copilot-for-Azure.
aws/agent-toolkit-for-aws
Migrate workloads from Microsoft Azure to AWS. An agent skill from aws/agent-toolkit-for-aws.
MicrosoftDocs/Agent-Skills
Expert knowledge for Azure Copilot development including troubleshooting, decision making, architecture & design patterns, security, configuration, and integrations & coding patterns.
jonathan-vella/apex
WORKFLOW SKILL — Debug Azure production issues: Container Apps, Functions, App Service, AKS, VMs and messaging, with KQL log analysis.
jonathan-vella/apex
ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl.
jonathan-vella/apex
UTILITY SKILL — Two-mode context-window management. An agent skill from jonathan-vella/apex.
jonathan-vella/apex
UTILITY SKILL — Python diagram generation for Azure architectures, WAF/cost/compliance charts, ERDs, swimlanes, timelines, and wireframes.
jonathan-vella/apex
WORKFLOW SKILL — Manual-only discovery and import of existing Azure resources into Terraform management.
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.
Works with
Categories
WORKFLOW SKILL — Write and run Terraform tests (.tftest.hcl). Apex Terraform Test is an agent skill from jonathan-vella/apex.hcl).
Apex Terraform Test fits situations like: plan-mode unit tests; apply-mode integration tests; test troubleshooting; architecture decisions.
Run `npx skills add jonathan-vella/apex --skill apex-terraform-test -a claude-code`. Or copy the skill folder (.github/skills/apex-terraform-test in jonathan-vella/apex) into .claude/skills/apex-terraform-test in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jonathan-vella/apex --skill apex-terraform-test -a codex`. Or copy the skill folder (.github/skills/apex-terraform-test in jonathan-vella/apex) into .agents/skills/apex-terraform-test in your project. Codex loads it when a task matches its description.
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-terraform-test -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-terraform-test, .gemini/skills/apex-terraform-test, .github/skills/apex-terraform-test and .opencode/skills/apex-terraform-test in your project.
Going by SKILL.md and its folder, Apex Terraform Test needs the command-line tools its instructions call (terraform). Compatibility (from SKILL.md): Requires Terraform >= 1.6 (test blocks), >= 1.7 (mock providers), >= 1.9 (parallel execution).
SKILL.md names 1 domain. As links in the text: developer.hashicorp.com. This is read from the text; nothing was executed.
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. Review the folder before installing.
Apex Terraform Test is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.5k 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 4.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Apex Terraform Test: Iac Security (hardw00t/ai-security-arsenal, 105 stars), Azure Deploy (microsoft/GitHub-Copilot-for-Azure, 255 stars), Azure Prepare (microsoft/GitHub-Copilot-for-Azure, 255 stars) and Azure Validate (microsoft/GitHub-Copilot-for-Azure, 255 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.