mockserver-monorepo: Skill for OpenCode

.opencode/skills/renew-test-certs/SKILL.md

renew-test-certs is a skill for OpenCode from mock-server/mockserver-monorepo. It costs 79 tokens per session (3,238 once invoked), scanned A, original, Apache-2.0.

A workflow for renewing TLS certificates used by MockServer integration tests. TLS certificates encrypt connections, and integration tests check that systems work together.

In plain words
What is it for?
Use it when TLS tests fail with certificate or connection errors, or when the certificate-expiry check warns or fails.
Why use it?
It prevents tests from failing because their committed certificates have expired, using an expiry check before and after renewal.

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,967 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/renew-test-certs/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 renew-test-certs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mock-server/mockserver-monorepo/renew-test-certs"><img src="https://agentmods.dev/badge/skills/mock-server/mockserver-monorepo/renew-test-certs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,238 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 225
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
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.00079 $0.03238
Opus 5 $0.00039 $0.01619
Sonnet 5 $0.00016 $0.00648
Haiku 4.5 $0.00008 $0.00324

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

Security

Grade A, and why

renew-test-certs 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 9d 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/renew-test-certs/SKILL.md · 263 lines

How it starts

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

Renew Test TLS Certificates

MockServer's TLS/mTLS tests are pinned to committed CA-signed leaf certificates. These have finite lifetimes and must be renewed before they expire. Expiry has historically been discovered only by the build going red (2021-06, 2022-01, 2023-02, 2026-05) — the automated guard below now surfaces it early instead.

Automated early-warning guard (run this first, and after every renewal)

.buildkite/scripts/steps/check-certificate-expiry.sh sweeps every committed PEM, checks every certificate in each chain file, hard-fails under 30 days / already-expired, warns under 180 days, asserts the intentional negative fixture is still expired, and asserts notAfter(leaf) <= notAfter(sibling ca.pem). It runs in the Java CI pipeline. Run it locally any time:

.buildkite/scripts/steps/check-certificate-expiry.sh          # PASS/WARN/FAIL sweep
CERT_EXPIRY_HARD_FAIL_DAYS=40000 .buildkite/scripts/steps/check-certificate-expiry.sh   # self-test: should FAIL

Longevity model (read this before you regenerate anything)

  • CAs are long-lived (10 years), leaves are shorter-lived (5 years).
  • A leaf MUST expire strictly before the CA that signed itnotAfter(leaf) <= notAfter(ca.pem). This invariant is enforced by the guard. Historically the fixtures VIOLATED it (leaves ran to 2036 under CAs expiring 2027/2028); pin -days on every re-issue so it can never happen again.
  • Prefer re-signing over regenerating keys. The safe renewal below keeps every existing private key and only mints fresh certificates. Because the CA keeps its key, its Subject Key Identifier is unchanged, so every leaf's Authority Key Identifier still matches and existing signatures stay valid. This also sidesteps the PKCS#1 trap below entirely.

The PKCS#1 vs PKCS#8 -keyout trap (do NOT regenerate keys casually)

openssl req -newkey ... -keyout leaf-key.pem under OpenSSL 3 writes the key in PKCS#8 (-----BEGIN PRIVATE KEY-----), even for RSA. Two fixtures depend on the key encoding and will silently lose coverage if it flips:

Read the full file on GitHub · 263 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. 9d ago First seen · 263 lines · 79 tokens per session scan A 5c2ef83b9b68

Subscribe to this mod's changes

renew-test-certs is a skill published in the GitHub repository mock-server/mockserver-monorepo (4,967 stars, last pushed yesterday), licensed Apache-2.0. It adds 79 tokens to every session and 3,238 once invoked, about $0.0004 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

write-fixtures

Use when writing test fixtures for @copilotkit/aimock — mock LLM responses, tool call sequences, error injection, multi-turn agent loops, embeddings, structured output, sequential responses, or debugging fixture mismatches.

CopilotKit/aimock · 48 tokens

bmad-qa-generate-e2e-tests

Generate end to end automated tests for existing features. Use when the user says "create qa automated tests for [feature]".

mmornati/leanproxy-mcp · 35 tokens

bmad-forge-idea

Pressure-test an idea through persona-driven interrogation until it hardens, proves out, or dies cheaply. Use when the user says 'forge an idea', 'pressure-test this idea', 'stress-test my thinking', or 'harden this idea'.

mmornati/leanproxy-mcp · 56 tokens

bmad-prfaq

Working Backwards PRFAQ challenge that stress-tests a product concept customer-first. Use when the user requests to 'create a PRFAQ', 'work backwards', or 'run the PRFAQ challenge'.

mmornati/leanproxy-mcp · 44 tokens

bmad-checkpoint-preview

LLM-assisted human-in-the-loop review. Make sense of a change, focus attention where it matters, test. Use when the user says "checkpoint", "human review", or "walk me through this change".

mmornati/leanproxy-mcp · 49 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens