gptadmin_opensource: Skill for OpenCode

.opencode/skills/writing-tests/SKILL.md

writing-tests is a skill for OpenCode from megamen32/gptadmin_opensource. It costs 59 tokens per session (10,493 once invoked), scanned A, original, AGPL-3.0.

Rules for writing and maintaining tests in the opencode-swarm repository. Tests are checks that verify software behaves as expected, and this guidance covers the repository's test framework, mocks, file locations, and continuous integration checks.

In plain words
What is it for?
Use it before creating or changing test files in opencode-swarm. It helps choose the bun:test framework, isolate mocks, place files correctly, and avoid patterns that break cross-platform continuous integration.
Why use it?
It reduces test failures caused by inconsistent structure, shared mock state, or assumptions that work on one operating system but not another. It also keeps tests compatible with the repository's automated checks.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to megamen32/gptadmin_opensource. 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/megamen32/gptadmin_opensource/main/.opencode/skills/writing-tests/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/megamen32/gptadmin_opensource

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 writing-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/megamen32/gptadmin_opensource/writing-tests/github.svg)](https://agentmods.dev/skills/megamen32/gptadmin_opensource/writing-tests)
Your own site
<a href="https://agentmods.dev/skills/megamen32/gptadmin_opensource/writing-tests"><img src="https://agentmods.dev/badge/skills/megamen32/gptadmin_opensource/writing-tests/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 writing-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/megamen32/gptadmin_opensource/writing-tests"><img src="https://agentmods.dev/badge/skills/megamen32/gptadmin_opensource/writing-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,493 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00059 $0.10493
Opus 5.5 $0.00024 $0.04197
Sonnet 5.5 $0.00012 $0.02099
Haiku 4.5 $0.00006 $0.01049

Measured 2mo ago against content hash a3cc0f755d96, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

writing-tests scanned grade A with 1 finding 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 2mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

import * as realChildProcess from 'node:child_process';
.opencode/skills/writing-tests/SKILL.md · 796 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 2mo ago First seen · 796 lines · 59 tokens per session scan A a3cc0f755d96

Subscribe to this mod's changes

writing-tests is a skill published in the GitHub repository megamen32/gptadmin_opensource (11 stars, last pushed yesterday), licensed AGPL-3.0. It adds 59 tokens to every session and 10,493 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

darwinian-evolver

Evolve prompts/regex/SQL/code with Imbue's evolution loop.

NousResearch/hermes-agent · 22 tokens

flutter-mcp-toolkit-control

Drive a running Flutter app — tap, scroll, type, fill forms, hot-reload, navigate. Use when you need to interact with the UI.

Arenukvern/mcp_flutter · 38 tokens

flutter-mcp-toolkit-dogfood-iterations

Runs and records showcase/fluttertestapp dogfood iterations (toolqualityrubric, rundogfoodeval.sh, dogfoodwebeval.yaml). Use when scoring MCP/intentcall quality, appending iteration N, comparing regressions, or CI static/weekly eval gates.

Arenukvern/mcp_flutter · 67 tokens

flaky-test-quarantine

Daily reusable-session flaky-test triage for {{targetrepo}}. Pulls CI run history from GitHub, scores each test's non-determinism against a persistent per-test ledger, and once a test reaches {{quarantinethreshold}} opens a quarantine PR (skip + reason, never delete) plus a running tracking issue, and posts a summary…

kortix-ai/suna · 84 tokens

frontmcp-testing

Use for anything about testing FrontMCP servers: writing or running unit, integration, and E2E tests and reaching the 95%+ coverage bar. Covers Jest setup and coverage gating; unit-testing a ToolContext execute() with mock context, inputs, and Zod schema validation; testing resources and prompts; in-memory testing via…

agentfront/frontmcp · 175 tokens

test-commander

Generate unit, integration, E2E, and visual regression tests following the Testing Trophy methodology (80% integration). Covers Vitest/Jest, Testing Library, Playwright, MSW for API mocking, snapshot strategy, visual regression (Chromatic/Percy/Playwright), test factories with Faker, and CI sharding. Use when user…

EliasOulkadi/shokunin · 117 tokens