Agent skill

Write Tests

by justxor in justxor/claude-code-pro-course

Пишет unit-тесты для указанного файла или функции в стиле существующих тестов проекта.

MITAuto-check passedTesting & QA

Install Write Tests

skills CLI
$ npx skills add justxor/claude-code-pro-course --skill write-tests -a claude-code

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

GitHub CLI
$ gh skill install justxor/claude-code-pro-course write-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/justxor/claude-code-pro-course.git skills-src && mkdir -p .claude/skills && cp -r skills-src/starter-kit/.claude/skills/write-tests .claude/skills/write-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
write-tests
GitHub stars
256
Token cost
~222 tokens
SKILL.md length
86 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Пишет unit-тесты для указанного файла или функции в стиле существующих тестов проекта.

  • Works in 5 steps: Найди тестовый фреймворк и 1–2… → Прочитай тестируемый код. Составь список… → Покажи список сценариев одной строкой… → …
  • Tasks that involve Test generation
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Write Tests is an agent skill from justxor/claude-code-pro-course. Пишет unit-тесты для указанного файла или функции в стиле существующих тестов проекта. Используй, когда просят добавить тесты, покрыть код тестами или проверить граничные случаи.

Its SKILL.md is about 220 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. The repository describes itself as: Claude Code PRO — полный курс и гайд на русском: CLAUDE.md, settings, skills, subagents, hooks, MCP, плагины, CI. 8 лабораторных, библиотека промптов и готовый starter-kit. Здесь…. The licence is MIT.

When your agent uses it

  • Tasks that involve Test generation

Example prompts

  • “/write-tests”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Найди тестовый фреймворк и 1–2 существующих теста рядом — повторяй их стиль, структуру и расположение.
  2. Прочитай тестируемый код. Составь список сценариев
  3. Покажи список сценариев одной строкой каждый, затем напиши тесты.
  4. Запусти только новые тесты. Если тест падает из-за бага в коде — НЕ подгоняй тест, а сообщи о баге.
  5. Итог: сколько тестов, что покрыто, какие баги найдены.

What it can do on your machine

Read from SKILL.md and the folder at commit 685e438. 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

Write Tests loads about 222 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 86 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~222

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

The full file from justxor/claude-code-pro-course at commit 685e438, republished under its MIT licence (© justxor). 86 words, ~222 tokens.

Download SKILL.mdSave it as .claude/skills/write-tests/SKILL.md (or your agent's skills folder).
name
write-tests
description
Пишет unit-тесты для указанного файла или функции в стиле существующих тестов проекта. Используй, когда просят добавить тесты, покрыть код тестами или проверить граничные случаи.
argument-hint
<путь к файлу или имя функции>

Write tests

Цель: $ARGUMENTS

  1. Найди тестовый фреймворк и 1–2 существующих теста рядом — повторяй их стиль, структуру и расположение.
  2. Прочитай тестируемый код. Составь список сценариев:
    • основной (happy path)
    • граничные значения (пусто, 0, отрицательные, очень большие, unicode)
    • ошибки и исключения
    • взаимодействие с зависимостями (моки — только для внешних систем)
  3. Покажи список сценариев одной строкой каждый, затем напиши тесты.
  4. Запусти только новые тесты. Если тест падает из-за бага в коде — НЕ подгоняй тест, а сообщи о баге.
  5. Итог: сколько тестов, что покрыто, какие баги найдены.

© justxor, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in starter-kit/.claude/skills/write-tests of justxor/claude-code-pro-course.

Open the folder on GitHubat commit 685e438

Compare with similar skills

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.

Write Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Write Tests this skilljustxor/claude-code-pro-course256—~222Automated safety check: PassMIT
Skill Testdatabricks-solutions/ai-dev-kit1.9k—~1.9kAutomated safety check: PassCustom licence
Chatgpt App Submissionnteract/semiotic2.7k—~2.8kAutomated safety check: PassApache-2.0
Test ScopeGlitterKill/sdl-mcp491—~586Automated safety check: PassCustom licence
Eval Triage And Improvementmicrosoft/eval-guide138—~5.9kAutomated safety check: PassMIT
Eval Guidemicrosoft/eval-guide138—~22kAutomated safety check: WarnMIT

Similar skills

  • Skill Test

    databricks-solutions/ai-dev-kit

    Testing framework for evaluating Databricks skills. An agent skill from databricks-solutions/ai-dev-kit.

    1.9k GitHub stars~1.9k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Chatgpt App Submission

    nteract/semiotic

    Inspect a ChatGPT Apps MCP server codebase and generate chatgpt-app-submission.json with app info suggestions, tool hint justifications, test cases, and negative test cases, then report review-check…

    2.7k GitHub stars~2.8k tokensUpdated 2 days ago
    Testing & QAAuto-check passed
  • Test Scope

    GlitterKill/sdl-mcp

    Determine which test suites are affected by recent code changes and run only the relevant ones.

    491 GitHub stars~586 tokensUpdated 17 days ago
    Testing & QAAuto-check passed
  • Eval Triage And Improvement

    microsoft/eval-guide

    Official

    A skill your agent uses when the user's Copilot Studio agent evaluations have come back and they need to interpret scores, diagnose root causes of underperforming test cases, find remediation steps…

    138 GitHub stars~5.9k tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Eval Guide

    microsoft/eval-guide

    Official

    Eval enablement accelerator — help customers think through "what does good look like" for their AI agent, then generate a structured eval plan and test cases they can use immediately.

    138 GitHub stars~22k tokensUpdated 3 mo ago
    Testing & QAAuto-check: warnings
  • Lsp Generate

    blackwell-systems/agent-lsp

    Trigger language server code generation — implement interface stubs, generate test skeletons, add missing methods, generate mock types.

    159 GitHub stars~1.4k tokensUpdated yesterday
    Testing & QAAuto-check passed

More from justxor/claude-code-pro-course

All 9 skills in this repo
  • Code Review

    justxor/claude-code-pro-course

    Ревью изменений в текущей ветке относительно main. An agent skill from justxor/claude-code-pro-course.

    256 GitHub stars~293 tokensUpdated 7 days ago
    Auto-check passed
  • Commit

    justxor/claude-code-pro-course

    Создаёт git-коммит в формате Conventional Commits по текущим изменениям.

    256 GitHub stars~231 tokensUpdated 7 days ago
    Auto-check: notes
  • Onboard

    justxor/claude-code-pro-course

    Проводит онбординг нового разработчика в проект - обзор архитектуры, запуск, ключевые потоки и первая задача.

    256 GitHub stars~267 tokensUpdated 7 days ago
    Auto-check passed
  • Refactor

    justxor/claude-code-pro-course

    Безопасный рефакторинг маленькими шагами без изменения поведения.

    256 GitHub stars~233 tokensUpdated 7 days ago
    Auto-check passed
  • Release Notes

    justxor/claude-code-pro-course

    Генерирует release notes / CHANGELOG между двумя тегами или от последнего тега.

    256 GitHub stars~244 tokensUpdated 7 days ago
    Auto-check passed
  • PR Description

    justxor/claude-code-pro-course

    Готовит заголовок и описание pull request по изменениям в ветке.

    256 GitHub stars~201 tokensUpdated 7 days ago
    Auto-check passed

Questions about Write Tests

What does Write Tests do?

Пишет unit-тесты для указанного файла или функции в стиле существующих тестов проекта. Write Tests is an agent skill from justxor/claude-code-pro-course. Пишет unit-тесты для указанного файла или функции в стиле существующих тестов проекта.

When should I use Write Tests?

Write Tests fits situations like: tasks that involve Test generation.

How do I install Write Tests in Claude Code?

Run `npx skills add justxor/claude-code-pro-course --skill write-tests -a claude-code`. Or copy the skill folder (starter-kit/.claude/skills/write-tests in justxor/claude-code-pro-course) into .claude/skills/write-tests in your project. Claude Code loads it when a task matches its description.

How do I install Write Tests in Codex?

Run `npx skills add justxor/claude-code-pro-course --skill write-tests -a codex`. Or copy the skill folder (starter-kit/.claude/skills/write-tests in justxor/claude-code-pro-course) into .agents/skills/write-tests in your project. Codex loads it when a task matches its description.

Can I use Write 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 justxor/claude-code-pro-course --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.

What does Write Tests need to run?

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

Does Write 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 Write 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 Write Tests use?

Write Tests is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Write Tests use?

About 222 tokens (SKILL.md is roughly 888 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Write Tests?

Skills that share tags, products or a category with Write Tests: Skill Test (databricks-solutions/ai-dev-kit, 1.9k stars), Chatgpt App Submission (nteract/semiotic, 2.7k stars), Test Scope (GlitterKill/sdl-mcp, 491 stars) and Eval Triage And Improvement (microsoft/eval-guide, 138 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Write Tests?

justxor (a GitHub user) maintains it in justxor/claude-code-pro-course, which has 256 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 1, 2026.

Source: justxor/claude-code-pro-course on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.