terraform-provider-f5xc: Command for Claude Code

.claude/commands/test-resources.md

test-resources is a command for Claude Code from robinmordasiewicz/terraform-provider-f5xc. It costs 0 tokens per session (496 once invoked), scanned A, original, MIT.

A command that creates Terraform provider tests for several resources at once. Terraform providers are software components that let Terraform manage services or infrastructure, and acceptance tests check that those resources work against a real or test environment.

In plain words
What is it for?
Run `/test-resources resource1 resource2` to read the provider code, create or improve each resource's test file, run the tests, and report the results.
Why use it?
It removes the need to develop each resource's tests one by one and gives each resource a dedicated testing agent.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is robinmordasiewicz/terraform-provider-f5xc's own configuration. It tells Claude Code how to work on terraform-provider-f5xc itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything terraform-provider-f5xc configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is 7. Run: TF_ACC=1 go test -v -timeout 15m -run "TestAcc{PascalCaseName}" ./internal/provider/....

Reuse

Borrowing it

Nothing to install: this file belongs to robinmordasiewicz/terraform-provider-f5xc. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/robinmordasiewicz/terraform-provider-f5xc/main/.claude/commands/test-resources.md
Clone the repo
git clone --depth 1 https://github.com/robinmordasiewicz/terraform-provider-f5xc

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-resources

README.md
[![agentmods](https://agentmods.dev/badge/commands/robinmordasiewicz/terraform-provider-f5xc/test-resources/github.svg)](https://agentmods.dev/commands/robinmordasiewicz/terraform-provider-f5xc/test-resources)
Your own site
<a href="https://agentmods.dev/commands/robinmordasiewicz/terraform-provider-f5xc/test-resources"><img src="https://agentmods.dev/badge/commands/robinmordasiewicz/terraform-provider-f5xc/test-resources/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-resources

Your own site · 80×15
<a href="https://agentmods.dev/commands/robinmordasiewicz/terraform-provider-f5xc/test-resources"><img src="https://agentmods.dev/badge/commands/robinmordasiewicz/terraform-provider-f5xc/test-resources.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00496
Opus 5 $0.00000 $0.00248
Sonnet 5 $0.00000 $0.00099
Haiku 4.5 $0.00000 $0.00050

Measured 11d ago against content hash ce5bb4723a72, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

test-resources scanned grade A with 0 findings 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 11d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/test-resources.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Parallel Resource Test Development

Spawn multiple terraform-test-developer agents in parallel to develop tests for the specified resources.

Usage

/test-resources resource1 resource2 resource3 ...

Instructions

  1. Parse the resource names from the arguments: $ARGUMENTS
  2. For EACH resource, spawn a terraform-test-developer agent in PARALLEL (all Task calls in ONE message)
  3. Each agent should:
    • First invoke Skill(terraform-provider-testing)
    • Read the resource at internal/provider/{resource}_resource.go
    • Create comprehensive tests at internal/provider/{resource}_resource_test.go
    • Run tests and report results

Agent Prompt Template

For each resource, use this prompt:

Develop and run acceptance tests for the {resource_name} resource in this Terraform provider.

FIRST: Invoke Skill(terraform-provider-testing) to load all testing patterns and standards.

THEN:
1. Read internal/provider/{resource_name}_resource.go to understand the schema
2. Check if internal/provider/{resource_name}_resource_test.go exists
3. If exists, review and enhance; if not, create new test file
4. Implement these test functions using modern assertion patterns:
   - TestAcc{PascalCaseName}Resource_basic
   - TestAcc{PascalCaseName}Resource_update (if applicable)
   - Import test step within _basic
5. Use custom namespace (f5xc_namespace.test), NOT system namespace
6. Use ConfigPlanChecks and ConfigStateChecks with knownvalue assertions
7. Run: TF_ACC=1 go test -v -timeout 15m -run "TestAcc{PascalCaseName}" ./internal/provider/...
8. Report results including any failures and their root causes

IMPORTANT: If tests fail due to schema or generator issues, identify the root cause but do NOT skip tests.

Parallel Execution

CRITICAL: Spawn ALL agents in a SINGLE message to maximize parallelism.

Example for 3 resources:

  • Task 1: terraform-test-developer for namespace_resource
  • Task 2: terraform-test-developer for healthcheck_resource
  • Task 3: terraform-test-developer for origin_pool_resource

Read the full file on GitHub · 64 lines

Changes

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.

  1. 11d ago First seen · 64 lines · 0 tokens per session scan A ce5bb4723a72

Subscribe to this mod's changes

test-resources is a command published in the GitHub repository robinmordasiewicz/terraform-provider-f5xc (2 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 496 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.