mockserver-monorepo: Skill for OpenCode

.opencode/skills/terraform-tfvars/SKILL.md

terraform-tfvars is a skill for OpenCode from mock-server/mockserver-monorepo. It costs 97 tokens per session (1,387 once invoked), scanned A, original, Apache-2.0.

A workflow for creating the ignored terraform.tfvars file needed by the Buildkite agent Terraform stack. Terraform is a tool that defines and deploys infrastructure from configuration files.

In plain words
What is it for?
Use it when setting up Buildkite agents on AWS, retrieving the token from AWS SSM Parameter Store and Buildkite, validating it, and filling in Terraform variables.
Why use it?
It explains where to retrieve the Buildkite agent registration token, checks it against two sources, and helps avoid committing the secret to Git.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

This is mock-server/mockserver-monorepo's own configuration. It tells OpenCode how to work on mockserver-monorepo 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 mockserver-monorepo configures →

About the project

MockServer is a testing server and proxy that imitates APIs, records and changes network traffic, and deliberately introduces failures. It is for developers testing applications against unavailable dependencies, debugging requests, and checking how systems handle degraded services across several network protocols. The catalogue add-ons help operate, configure, and test MockServer.

mock-server/mockserver-monorepo · 4,968 stars · on GitHub · mock-server.com

Reuse

Borrowing it

Nothing to install: this file belongs to mock-server/mockserver-monorepo. 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/mock-server/mockserver-monorepo/master/.opencode/skills/terraform-tfvars/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mock-server/mockserver-monorepo

Made for: OpenCode.

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 terraform-tfvars

README.md
[![agentmods](https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/terraform-tfvars/github.svg)](https://agentmods.dev/skills/mock-server/mockserver-monorepo/terraform-tfvars)
Your own site
<a href="https://agentmods.dev/skills/mock-server/mockserver-monorepo/terraform-tfvars"><img src="https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/terraform-tfvars/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 terraform-tfvars

Your own site · 80×15
<a href="https://agentmods.dev/skills/mock-server/mockserver-monorepo/terraform-tfvars"><img src="https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/terraform-tfvars.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,387 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00097 $0.01387
Opus 5 $0.00048 $0.00694
Sonnet 5 $0.00019 $0.00277
Haiku 4.5 $0.00010 $0.00139

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

Security

Grade A, and why

terraform-tfvars 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 10d 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.

.opencode/skills/terraform-tfvars/SKILL.md · 158 lines

How it starts

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

Create terraform.tfvars for Buildkite Agents

The Terraform stack at terraform/buildkite-agents/ deploys Buildkite build agents to AWS. It requires a terraform.tfvars file containing the Buildkite agent registration token. This file is gitignored and must NEVER be committed.

Prerequisites

  • AWS CLI installed and SSO session active (aws sso login --profile mockserver-build)
  • Chrome DevTools MCP configured with --autoConnect (for Buildkite UI retrieval)
  • Buildkite org admin access (to view agent tokens)

Token Retrieval

The Buildkite agent token can be retrieved from two sources. Always retrieve from both and compare to ensure consistency.

Source 1: AWS SSM Parameter Store (Authoritative)

The token is stored as a SecureString in the legacy us-east-1 region:

export DYLD_LIBRARY_PATH="/opt/homebrew/opt/expat/lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}"
export AWS_CA_BUNDLE="${NODE_EXTRA_CA_CERTS:-}"

aws ssm get-parameter \
  --name /buildkite/buildkite/agent-token \
  --region us-east-1 \
  --profile mockserver-build \
  --with-decryption \
  --query 'Parameter.Value' \
  --output text

This is the authoritative source — it's the same token the legacy CloudFormation stack uses and has been validated in production.

Source 2: Buildkite UI (via Chrome DevTools MCP)

Navigate to the Buildkite agents page and extract the token:

  1. Ensure the user is logged into Buildkite in Chrome
  2. Navigate: navigate_page(url="https://buildkite.com/organizations/mockserver/agents")
  3. Take a snapshot: take_snapshot()
  4. Look for the "Agent Token" section
  5. Click "Reveal Agent Token" if the token is hidden
  6. Extract the token value from the snapshot or via evaluate_script()

See the browser-auth skill for detailed Chrome MCP patterns.

Token Validation

Compare both values:

  • If they match: Use the token — it's verified correct
  • If they differ: The SSM token is authoritative (it's what agents currently use in production). The Buildkite UI may show a different token if the org has multiple tokens. Verify which token is associated with the default queue.
  • If SSM retrieval fails: Use the Buildkite UI token, but verify with the user that it's the correct one for the default queue.

Read the full file on GitHub · 158 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. 10d ago First seen · 158 lines · 97 tokens per session scan A 945a92afe819

Subscribe to this mod's changes

terraform-tfvars is a skill published in the GitHub repository mock-server/mockserver-monorepo (4,968 stars, last pushed yesterday), licensed Apache-2.0. It adds 97 tokens to every session and 1,387 once invoked, about $0.0005 per session on Opus 5. 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-30.

Related

Other skills, from other repositories