writing-tests SKILL.md skillA
writing-tests from zaxbyhub/opencode-swarm is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add zaxbyhub/opencode-swarm/writing-tests@git:20261012.097422cPins git:20261012.097422c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- zaxbyhub/opencode-swarm
- Path
.opencode/skills/writing-tests/SKILL.md- Versions recorded
- 7
- Latest version
- git:20261012.097422c, committed Oct 12, 2026
- First version recorded
- Jul 19, 2026
- Size
- 31,095 bytes
- Repository stars
- 518
- License
- MIT
Guidelines for writing, organizing, and maintaining tests in the opencode-swarm repository. Covers framework rules (bun:test), mock isolation, CI pipeline structure, file placement, and anti-patterns that break cross-platform CI. Load this skill before writing or modifying any test file.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Writing Tests for opencode-swarm ## Graph-first evidence contract Use `repo_map` `test_pack` to discover focused tests for the changed source, then read the selected source and tests directly. Graph evidence is advisory only. If freshness is stale or inconclusive, confidence is low, source is missing, the language is unsupported/dynamic, the graph is absent, or the action fails, use direct source and repository test conventions to select coverage. > **⚠️ Do NOT use the OpenCode `test_runner` tool to validate the full repo.** It is for targeted agent validation with explicit `files: [...]` or small targeted scopes. `scope: 'all'` is gated behind the `SWARM_ALLOW_FULL_SUITE=1` env var (intended for opt-in CI mirrors only; there is no `allow_full_suite` arg). Broad scopes can stall or kill OpenCode before the `MAX_SAFE_TEST_FILES = 50` guard in `src/tools/test-runner.ts` fires. For repo validation, use the shell commands in this file — per-file isolation loops match CI behavior. See [`AGENTS.md`](../../../AGENTS.md) invariant 6 for the full contract. ## ⛔ STOP — Read Before Running Any Tests **`test_runner` scope safety — keep every selection bounded:** …
Read the whole file at its exact version.
How to install
mdr add zaxbyhub/opencode-swarm/writing-tests@sha256:b29ed01831ff2667The line at the top of this page pins the label git:20261012.097422c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_tx7gt6unx5gvnx4a)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between Jul 19, 2026 and Oct 12, 2026, about one every 14 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261012.097422c latest | 2026-10-12 | 097422c | 31,095 B | A | view · diff |
| git:20260912.8b7d5a7 | 2026-09-12 | 8b7d5a7 | 49,658 B | A | view · diff |
| git:20260911.cc3181e | 2026-09-11 | cc3181e | 48,895 B | A | view · diff |
| git:20260902.128748b | 2026-09-02 | 128748b | 48,757 B | A | view · diff |
| git:20260815.4941a39 | 2026-08-15 | 4941a39 | 48,336 B | A | view · diff |
| git:20260810.6e89d6d | 2026-08-10 | 6e89d6d | 48,231 B | A | view · diff |
| git:20260719.fef11d0 | 2026-07-19 | fef11d0 | 46,778 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (31095 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
zaxbyhub/opencode-swarm · 518 stars · license MIT · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_tx7gt6unx5gvnx4a GET https://markdownregistry.com/api/v1/resolve?ref=zaxbyhub/opencode-swarm/writing-tests GET https://markdownregistry.com/api/v1/blob/b29ed01831ff266744a0c7b595dd13419d96bcb8f1e9cf3e343b114cdd1fd8f8
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from zaxbyhub/opencode-swarm
Every file in zaxbyhub/opencode-swarm