Generate Tests
coco-research/coco
A skill your agent uses when asked to generate tests for a file, module or component, to raise coverage, or to bootstrap a suite for untested code.
Write and run ryOS tests with Bun's native test runner (bun:test).
$ npx skills add ryokun6/ryos --skill write-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ryokun6/ryos write-tests --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/write-tests .claude/skills/write-tests && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "write-tests" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/write-tests into .claude/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ryokun6/ryos/tree/main/.cursor/skills/write-testsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ryokun6/ryos --skill write-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ryokun6/ryos write-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/write-tests .agents/skills/write-tests && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "write-tests" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/write-tests into .agents/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ryokun6/ryos --skill write-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ryokun6/ryos write-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/write-tests .cursor/skills/write-tests && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "write-tests" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/write-tests into .cursor/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ryokun6/ryos.git --path .cursor/skills/write-tests--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ryokun6/ryos --skill write-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ryokun6/ryos write-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/write-tests .gemini/skills/write-tests && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "write-tests" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/write-tests into .gemini/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ryokun6/ryos write-testsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ryokun6/ryos --skill write-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/write-tests .github/skills/write-tests && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "write-tests" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/write-tests into .github/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ryokun6/ryos --skill write-tests -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ryokun6/ryos write-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ryokun6/ryos.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/write-tests .opencode/skills/write-tests && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "write-tests" agent skill from https://github.com/ryokun6/ryos/tree/main/.cursor/skills/write-tests into .opencode/skills/write-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "write-tests", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
write-testsWrite and run ryOS tests with Bun's native test runner (bun:test).
Write Tests is an agent skill from ryokun6/ryos. Write and run ryOS tests with Bun's native test runner (bun:test). Covers unit/wiring tests (no server) vs API integration tests (require the standalone API server), shared HTTP helpers, and the package.json suite commands. Use when adding tests, writing test coverage for a change, or running/triaging the test suite.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Test generation, Third-party API integration and Test coverage. It works with npm and Redis. The repository describes itself as: ryOS, made with Cursor. The licence is AGPL-3.0.
Read from SKILL.md and the folder at commit 4b48219. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bunFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Write Tests loads about 1.7k tokens when it runs. Until then it costs about 83 tokens; SKILL.md has 427 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ryokun6/ryos at commit 4b48219, republished under its AGPL-3.0 licence (© ryokun6). 427 words, ~1,688 tokens.
.claude/skills/write-tests/SKILL.md (or your agent's skills folder).ryOS uses Bun's native test runner (bun:test). Suites live under tests/, are named test-*.test.ts or test-*.test.tsx, and use describe / test / expect.
tests/
├── setup.ts # Global preload
├── helpers/ # Shared helpers (not suites)
├── fixtures/
├── unit/<domain>/ # No-server unit / wiring
└── integration/
├── api/ # Needs `bun run dev:api`
└── opt-in/ # Env-gated (e.g. REALTIME_LOCAL_URL)| Kind | What it covers | Needs API server? | Suite command |
|---|---|---|---|
| Unit / wiring | Pure logic, Zod schemas, store reducers, helper functions, "is X wired to Y" checks | No | bun run test:unit |
| API integration | Real HTTP against api/* endpoints | Yes (bun run dev:api) | bun run test:api |
Prefer a unit test when the logic can be exercised without a server (most schema/util/store work). Add an API integration test when you need the real request → handler → Redis path.
- [ ] 1. Decide: unit/wiring (no server) or API integration (needs server)
- [ ] 2. Create tests/unit/<domain>/test-<feature>.test.ts
or tests/integration/api/test-<feature>.test.ts
- [ ] 3. Use describe / test / expect from "bun:test"
- [ ] 4. For API tests, use helpers from tests/helpers/test-utils.ts
- [ ] 5. For API or opt-in tests, add the file to `scripts/test-groups.ts`
- [ ] 6. Run `bun run test:registration`; iterate until green
- [ ] 7. Run it; iterate until greenNo server required. Import the code under test directly. Schema tests are the highest-value, lowest-friction kind.
import { describe, expect, test } from "bun:test";
import { mediaControlSchema } from "../../../api/chat/tools/schemas";
describe("mediaControlSchema", () => {
test("accepts a valid 'list' call", () => {
expect(
mediaControlSchema.safeParse({ target: "tv", action: "list" }).success
).toBe(true);
});
test("rejects 'tune' with neither channelId nor channelNumber", () => {
expect(
mediaControlSchema.safeParse({ target: "tv", action: "tune" }).success
).toBe(false);
});
});Run a single file or domain:
bun test tests/unit/media/test-media-control-unified.test.ts
bun test tests/unit/media/Requires the standalone server running in a separate terminal:
# Terminal 1
bun run dev:api # port 3000; exports TRUSTED_PROXY_COUNT=1 and a Telegram mock API base URL
# Terminal 2
bun run test:api # or a single file: bun test tests/integration/api/test-<feature>.test.tsUse the shared HTTP helpers from tests/helpers/test-utils.ts — they set the required Origin header and auth:
import { describe, test, expect } from "bun:test";
import {
BASE_URL,
fetchWithOrigin,
fetchWithAuth,
ensureUserAuth,
makeRateLimitBypassHeaders,
getTokenFromAuthCookie,
} from "../../helpers/test-utils";
describe("My feature", () => {
test("requires auth → 401", async () => {
const res = await fetchWithOrigin(`${BASE_URL}/api/my-feature`, { method: "POST" });
expect(res.status).toBe(401);
});
test("creates when authed", async () => {
const token = await ensureUserAuth("testuser_feat", "testtest");
const res = await fetchWithAuth(`${BASE_URL}/api/my-feature`, "testuser_feat", token!, {
method: "POST",
headers: makeRateLimitBypassHeaders(),
body: JSON.stringify({ name: "hi" }),
});
expect(res.status).toBe(201);
});
});tests/helpers/| Helper | Purpose |
|---|---|
test-utils.ts → BASE_URL | process.env.API_URL or http://localhost:3000 |
fetchWithOrigin(url, opts) | adds Origin: http://localhost:3000 |
fetchWithAuth(url, username, token, opts) | adds Origin + Authorization + X-Username |
makeRateLimitBypassHeaders() | Content-Type + random X-Forwarded-For to dodge per-IP limits |
ensureUserAuth(username, password) | register-or-login, returns a token (or null) |
getTokenFromAuthCookie(res) / getAuthFromCookie(res) | read token from the ryos_auth httpOnly cookie |
fake-redis.ts | In-memory Redis double for unit suites |
local-storage-stub.ts | Early localStorage install for store-heavy suites |
theme-css-fixtures.ts | Shared CSS fixture strings |
ensureUserAuth.makeRateLimitBypassHeaders() (or a unique IP) on rate-limited routes.if (res.status === 429) return; is an accepted skip pattern in existing suites.ryos_auth cookie, not the JSON body — read it via the cookie helpers.Unit/wiring tests under tests/unit/ are discovered automatically by bun run test:unit.
Server-backed and opt-in suites are explicit in scripts/test-groups.ts:
tests/unit/<domain>/.API_TEST_FILES (path under tests/integration/api/).OPT_IN_TEST_FILES (path under tests/integration/opt-in/)."test:<feature>" script for fast local runs.bun run test:registration after adding or renaming tests.bun test (no args / "test") runs everything, including API suites, so it needs the server too.
bun run test:unit # all no-server suites
bun run test:api # all API suites (server required)
bun test tests/unit/chat/ # one domain
bun test tests/unit/realtime/test-pusher-*.test.tsSee package.json for targeted suites (test:ai, test:song, test:new-api, test:sync-v2, test:chat-regression, …).
tests/unit/<domain>/test-*.test.ts → update it.© ryokun6, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .cursor/skills/write-tests of ryokun6/ryos.
Open the folder on GitHubat commit 4b48219
Write Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Write Tests this skillryokun6/ryos | 1.3k | — | ~1.7k | Automated safety check: Pass | AGPL-3.0 | |
| Generate Testscoco-research/coco | 473 | — | ~1.7k | Automated safety check: Pass | Custom licence | |
| Coverage CheckAI-Unified-Process/marketplace | 140 | — | ~2.7k | Automated safety check: Pass | Apache-2.0 | |
| Senior QAnicepkg/auto-company | 192 | 3 repos | ~1.1k | Automated safety check: Notes | None | |
| OpenROAD Module Test AdderThe-OpenROAD-Project/OpenROAD | 3.2k | — | ~1.8k | Automated safety check: Pass | BSD-3-Clause | |
| Find Untested Sourcesdotnet/skills | 5.6k | 1 repos | ~3.3k | Automated safety check: Pass | MIT |
coco-research/coco
A skill your agent uses when asked to generate tests for a file, module or component, to raise coverage, or to bootstrap a suite for untested code.
AI-Unified-Process/marketplace
Audits an already-written use case (UC-XXX) or test case (TC-XXX) against its specification and reports a coverage matrix: which main success scenario steps, alternative flows, business rules…
nicepkg/auto-company
Comprehensive QA and testing skill for quality assurance, test automation, and testing strategies for ReactJS, NextJS, NodeJS applications.
The-OpenROAD-Project/OpenROAD
Adds integration or unit tests to an OpenROAD module: writes the Tcl test, generates golden files and registers it in both CMake and Bazel.
dotnet/skills
Statically pairs source files with test files to list code that no test references, using Roslyn for C# or tree-sitter for many languages, with no build.
bitwarden/ios
Write tests, add test coverage, unit test, or add missing tests for Bitwarden iOS.
ryokun6/ryos
Add or modify an AI chat tool ("Ask Ryo" capability) in ryOS.
ryokun6/ryos
Create new applications for ryOS following established patterns and conventions.
ryokun6/ryos
Create or modify ryOS Zustand stores following repo conventions — persist middleware, partialize, versioned migrations, the debounced write-behind storage adapter for large slices, and cloud-sync…
ryokun6/ryos
Cut and publish ryOS Electron desktop releases on GitHub. An agent skill from ryokun6/ryos.
ryokun6/ryos
Localize ryOS apps and components by extracting hardcoded strings, replacing with translation keys, and syncing across languages.
ryokun6/ryos
React performance optimization guidelines from Vercel Engineering (vercel-labs/agent-skills).
Categories
Write and run ryOS tests with Bun's native test runner (bun:test). Write Tests is an agent skill from ryokun6/ryos. Write and run ryOS tests with Bun's native test runner (bun:test).
Write Tests fits situations like: writing test coverage for a change; running/triaging the test suite.
Run `npx skills add ryokun6/ryos --skill write-tests -a claude-code`. Or copy the skill folder (.cursor/skills/write-tests in ryokun6/ryos) into .claude/skills/write-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ryokun6/ryos --skill write-tests -a codex`. Or copy the skill folder (.cursor/skills/write-tests in ryokun6/ryos) into .agents/skills/write-tests in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ryokun6/ryos --skill write-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/write-tests, .gemini/skills/write-tests, .github/skills/write-tests and .opencode/skills/write-tests in your project.
Going by SKILL.md and its folder, Write Tests needs the command-line tools its instructions call (bun).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Write Tests is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Write Tests: Generate Tests (coco-research/coco, 473 stars), Coverage Check (AI-Unified-Process/marketplace, 140 stars), Senior QA (nicepkg/auto-company, 192 stars) and OpenROAD Module Test Adder (The-OpenROAD-Project/OpenROAD, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ryokun6 (a GitHub user) maintains it in ryokun6/ryos, which has 1,264 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.
Source: ryokun6/ryos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.