writing-tests

writing-tests is a skill for Claude Code, Codex 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 Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/megamen32/gptadmin_opensource/writing-tests
Any agent
npx skills add megamen32/gptadmin_opensource --skill writing-tests
Clone the repo
git clone --depth 1 https://github.com/megamen32/gptadmin_opensource

Made for: Claude Code, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00059 $0.10493
Opus 5 $0.00030 $0.05247
Sonnet 5 $0.00012 $0.02099
Haiku 4.5 $0.00006 $0.01049

Measured 4d ago against content hash a3cc0f755d96, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (10 stars, last pushed 26d ago), licensed AGPL-3.0. It adds 59 tokens to every session and 10,493 once invoked, about $0.0003 per session on Opus 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

mcpfusion-development

How to build production MCP servers with MCP Fusion using the MVA (Model-View-Agent) pattern. Use this skill whenever writing, modifying, or reviewing MCP Fusion code — including tools, Presenters, Models, middleware, prompts, routers, tests, or server configuration. Activate even when the user just says "create a…

vinkius-labs/mcpfusion · 119 tokens

vinkius-deploy

How to deploy MCP servers to Vinkius Edge using mcpfusion deploy. Use this skill whenever deploying, configuring remote settings, preparing an entrypoint for edge deployment, or troubleshooting deploy-related errors. Activate when the user says "deploy", "publish to edge", "mcpfusion deploy", "push to Vinkius"…

vinkius-labs/mcpfusion · 94 tokens

odoo-agency-fleet-review

Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50 instances. Use when the user asks "which client...", "across all instances/databases", or wants a fleet/portfolio status.

erpipe-org/mcp-odoo · 77 tokens

odoo-data-quality-gate

Audit an Odoo database's data quality with evidence before trusting AI answers, importing, or migrating — duplicates, missing required values, orphaned references, format anomalies — and drive remediation through odoo-mcp's gated write workflow. Use when the user asks to "check data quality", "clean up data", "prepare…

erpipe-org/mcp-odoo · 85 tokens

odoo-migration-copilot

Plan and de-risk an Odoo version upgrade (16→17→18→19/20) using odoo-mcp's migration workbench — audit custom addons, classify upgrade-log failures into a worklist, resolve model renames, and preview JSON-2 payloads for the XML-RPC sunset. Use when the user mentions upgrading/migrating Odoo versions, broken upgrade…

erpipe-org/mcp-odoo · 100 tokens

odoo-month-end-close

Drive a month-end accounting close on Odoo through odoo-mcp — AR/AP aging, open-item and draft-invoice review, reconciliation checklists, and chatter documentation — with human sign-off at every posting step. Use when the user asks to "close the month", "review receivables/payables", "check aging", or prepare finance…

erpipe-org/mcp-odoo · 81 tokens