Agent skill

Writing Unit Tests

by Asvarox in Asvarox/allkaraoke

A skill your agent uses when Codex updates, fixes, or adds unit tests in this project.

No licenceAuto-check passedTesting & QA

Install Writing Unit Tests

skills CLI
$ npx skills add Asvarox/allkaraoke --skill writing-unit-tests -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Asvarox/allkaraoke writing-unit-tests --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Asvarox/allkaraoke.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/writing-unit-tests .claude/skills/writing-unit-tests && rm -rf skills-src

Use ~/.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/

Facts

Skill name
writing-unit-tests
GitHub stars
261
Token cost
~358 tokens
SKILL.md length
141 words
Files
3 (incl. references)
Skills in repo
8
Repo updated
First seen
Licence
None found

At a glance

A skill your agent uses when Codex updates, fixes, or adds unit tests in this project.

  • Adds unit tests in this project
  • SKILL.md covers Basics, Shared Test Utilities and Cloudflare Code
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Unit testing

What it does

Writing Unit Tests is an agent skill from Asvarox/allkaraoke. Use when Codex updates, fixes, or adds unit tests in this project. Covers basic unit test conventions, Vitest usage, and Cloudflare-related unit tests that should use Cloudflare's Vitest worker-pool integration instead of hand-rolled runtime mocks.

Its SKILL.md is about 360 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `agents/openai.yaml` and `references/cloudflare-vitest-integration.md`).

It sits in Testing & QA, covering Unit testing. It works with Cloudflare, Vitest, Cloudflare Workers and TypeScript. The repository describes itself as: Online Karaoke game with pitch detection in your browser.

When your agent uses it

  • Adds unit tests in this project
  • Tasks that involve Unit testing

Example prompts

  • “/writing-unit-tests”

What it can do on your machine

Read from SKILL.md and the folder at commit 15460f4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Writing Unit Tests loads about 358 tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 67 tokens; SKILL.md has 141 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~358
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.9k

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.

Safety

Auto-check passed

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.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 141 words (~358 tokens).

“For tests that exercise Cloudflare Workers, Pages Functions, KV storage, or other Cloudflare runtime bindings:”

— opening of SKILL.md by Asvarox
name
writing-unit-tests

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (references) in .agents/skills/writing-unit-tests of Asvarox/allkaraoke.

  • SKILL.md
  • agents/openai.yaml
  • references/cloudflare-vitest-integration.md

Open the folder on GitHubat commit 15460f4

Compare with similar skills

Writing Unit 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.

Writing Unit Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Writing Unit Tests this skillAsvarox/allkaraoke261—~358Automated safety check: PassNone
Vitestjezweb/claude-skills1.1k—~3kAutomated safety check: PassMIT
Cloudflare Workers Testingsecondsky/claude-skills227—~5.3kAutomated safety check: PassMIT
Durable Objectshodgef/apiker1274 repos~1.5kAutomated safety check: PassMIT
Blueprint Cloudflare Scaffoldreceptron/mulmoterminal237—~782Automated safety check: PassMIT
Test Writing WorkflowiOfficeAI/AionUi33k1 repos~1.2kAutomated safety check: PassApache-2.0

Similar skills

  • Vitest

    jezweb/claude-skills

    Set up Vitest testing in any project — detects type (Cloudflare Workers, React, Node, library), generates vitest.config.ts, test setup, utilities, and a sample test.

    1.1k GitHub stars~3k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Cloudflare Workers Testing

    secondsky/claude-skills

    Comprehensive testing guide for Cloudflare Workers using Vitest and @cloudflare/vitest-pool-workers.

    227 GitHub stars~5.3k tokensUpdated 10 days ago
    Testing & QAAuto-check passed
  • Durable Objects

    hodgef/apiker

    Create and review Cloudflare Durable Objects. An agent skill from hodgef/apiker.

    127 GitHub starsUsed in 4 repos~1.5k tokens
    Backend & APIsAuto-check passed
  • Blueprint Cloudflare Scaffold

    receptron/mulmoterminal

    Lay out a Worker with D1 and static Vue assets, with tests that run inside the Workers runtime.

    237 GitHub stars~782 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Test Writing Workflow

    iOfficeAI/AionUi

    Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.

    33k GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed
  • Scaffold a new workspace package in the c15t monorepo. An agent skill from c15t/c15t.

    1.9k GitHub stars~913 tokensUpdated today
    Testing & QAAuto-check passed

More from Asvarox/allkaraoke

All 8 skills in this repo
  • Subagent Driven Development

    Asvarox/allkaraoke

    A skill your agent uses when executing implementation plans with independent tasks in the current session

    261 GitHub starsUsed in 37 repos~1.2k tokens
    Auto-check passed
  • Dependency Updater

    Asvarox/allkaraoke

    Smart dependency management for any language. An agent skill from Asvarox/allkaraoke.

    261 GitHub starsUsed in 4 repos~3.5k tokens
    Auto-check passed
  • Migrate Oxlint

    Asvarox/allkaraoke

    Guide for migrating a project from ESLint to Oxlint. An agent skill from Asvarox/allkaraoke.

    261 GitHub starsUsed in 4 repos~2.5k tokens
    Auto-check passed
  • E2E Playwright

    Asvarox/allkaraoke

    Run, write, and debug Playwright E2E tests for this project.

    261 GitHub stars~876 tokensUpdated today
    Auto-check passed
  • Using Tailwind

    Asvarox/allkaraoke

    The design language for this project and how to style UI with it — the colour, type, surface and layer tokens, when to reach for an AKUI component instead of writing classes, and when TWC…

    261 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Writing E2E Tests

    Asvarox/allkaraoke

    Patterns and guidelines for writing Playwright E2E tests in this project — page object rules, assertion placement, and locator conventions.

    261 GitHub stars~447 tokensUpdated today
    Auto-check passed

Categories

Questions about Writing Unit Tests

What does Writing Unit Tests do?

A skill your agent uses when Codex updates, fixes, or adds unit tests in this project. Writing Unit Tests is an agent skill from Asvarox/allkaraoke. Use when Codex updates, fixes, or adds unit tests in this project.

When should I use Writing Unit Tests?

Writing Unit Tests fits situations like: adds unit tests in this project; tasks that involve Unit testing.

How do I install Writing Unit Tests in Claude Code?

Run `npx skills add Asvarox/allkaraoke --skill writing-unit-tests -a claude-code`. Or copy the skill folder (.agents/skills/writing-unit-tests in Asvarox/allkaraoke) into .claude/skills/writing-unit-tests in your project. Claude Code loads it when a task matches its description.

How do I install Writing Unit Tests in Codex?

Run `npx skills add Asvarox/allkaraoke --skill writing-unit-tests -a codex`. Or copy the skill folder (.agents/skills/writing-unit-tests in Asvarox/allkaraoke) into .agents/skills/writing-unit-tests in your project. Codex loads it when a task matches its description.

Can I use Writing Unit Tests in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Asvarox/allkaraoke --skill writing-unit-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/writing-unit-tests, .gemini/skills/writing-unit-tests, .github/skills/writing-unit-tests and .opencode/skills/writing-unit-tests in your project.

What does Writing Unit Tests need to run?

SKILL.md names no scripts, command-line tools or credentials: Writing Unit Tests is instructions for the agent only.

Does Writing Unit Tests access the network?

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.

Is Writing Unit Tests safe to install?

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.

What licence does Writing Unit Tests use?

No licence was found for Writing Unit Tests or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Writing Unit Tests use?

About 358 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.5k tokens, read only when the agent opens those files.

What are the alternatives to Writing Unit Tests?

Skills that share tags, products or a category with Writing Unit Tests: Vitest (jezweb/claude-skills, 1.1k stars), Cloudflare Workers Testing (secondsky/claude-skills, 227 stars), Durable Objects (hodgef/apiker, 127 stars) and Blueprint Cloudflare Scaffold (receptron/mulmoterminal, 237 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Writing Unit Tests?

Asvarox (a GitHub user) maintains it in Asvarox/allkaraoke, which has 261 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 9, 2026.

Source: Asvarox/allkaraoke on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.