code-testing-extensions — скилл для Claude Code
Скилл code-testing-extensions для Claude Code — каталог путей к файлам инструкций для пайплайна тестирования кода; агент читает нужный файл напрямую.
MIT 4 600 установок ★ 6 320 обновлён 2026-10-24
npx skills add dotnet/skills --skill code-testing-extensions -a claude-codeЧто делает code-testing-extensions
Скилл перечисляет встроенные файлы с инструкциями для тестирования на разных языках: .NET, Python, TypeScript, PowerShell, C++, Go, Java, Rust, Ruby, Swift, Kotlin. В каждом файле — команды сборки и запуска тестов, типичные ошибки и шаблоны для конкретного фреймворка.
Кроме базовых файлов есть файлы с примерами: dotnet-examples.md, python-examples.md, typescript-examples.md, go-examples.md, java-examples.md. Они показывают конкретный цикл — исследование, план, сгенерированный тест, исправления и финальный отчёт. Пути в каталоге относительные, от самого каталога, а не от рабочей директории проекта.
Это reference-only каталог. Агенты и другие скиллы читают его файлы напрямую, через модель его вызывать нельзя. Файл с примерами стоит подгружать, только если в репозитории нет образцовых тестов и базовый файл не помог. Для запроса с устоявшимися локальными соглашениями примеры не нужны.
Какие задачи решает
- найти команды тестов для pytest, Jest, Maven, Gradle, cargo test или go test
- разобраться с типичными ошибками тестирования в конкретном языке
- получить шаблон теста для MSTest, JUnit 5 или Pester v5
- посмотреть полный цикл генерации тестов с исправлениями на примере
- учесть особенности mock-объектов в Java, Go, Ruby или Kotlin
Примеры запросов агенту
- Прочитай
extensions/go.mdи напиши table-driven тест для этой функции - Посмотри
extensions/java.mdи добавь тест с Mockito для Spring Boot сервиса - Загляни в
extensions/python-examples.md, если нужен полный пример цикла исправления тестов
Как установить code-testing-extensions
1Через Skills CLI (Vercel)
npx skills add dotnet/skills --skill code-testing-extensions -a claude-code2Вручную: положить файлы
~/.claude/skills/code-testing-extensions/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/code-testing-extensions/
1Через Skills CLI (Vercel)
npx skills add dotnet/skills --skill code-testing-extensions -a codex2Вручную: положить файлы
.agents/skills/code-testing-extensions/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dotnet/skills --skill code-testing-extensions -a cursor2Вручную: положить файлы
.cursor/skills/code-testing-extensions/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dotnet/skills plugins/dotnet-test/skills/code-testing-extensions2Вручную: положить файлы
.github/skills/code-testing-extensions/SKILL.md1Через Skills CLI (Vercel)
npx skills add dotnet/skills --skill code-testing-extensions -a gemini-cli2Командой платформы
gemini skills install https://github.com/dotnet/skills --path plugins/dotnet-test/skills/code-testing-extensionsВручную: положить файлы
.devin/skills/code-testing-extensions/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dotnet/skills --skill code-testing-extensions -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о code-testing-extensions
Как установить code-testing-extensions в Claude Code?
Выполните npx skills add dotnet/skills --skill code-testing-extensions -a claude-code. Скилл появится в ~/.claude/skills/code-testing-extensions/SKILL.md.
Что делает code-testing-extensions?
Это справочный каталог с файлами инструкций по тестированию для разных языков. Агент читает нужный файл напрямую, вызывать каталог через модель нельзя.
Когда подгружать файлы с примерами?
Только если в репозитории нет представительных тестов и базовый файл расширения не дал нужного паттерна. Для точечного запроса с уже сложившимися локальными соглашениями примеры не нужны.
Исходный текст
SKILL.md · MIT
--- name: code-testing-extensions description: >- Provides file paths to language-specific extension files for the code-testing pipeline. Read this reference-only catalog for extension guidance files (e.g., dotnet.md for .NET, cpp.md for C++). Agents and skills read its bundled files directly; do not invoke this catalog through the model's skill tool. user-invocable: false disable-model-invocation: true license: MIT --- # Code Testing Extensions This reference-only catalog lists bundled guidance for the code-testing pipeline. Read the matching file directly; do not invoke this catalog as a skill. Resource paths are relative to this catalog, not the project workspace. ## Available Extension Files | File | Language | Contents | |------|----------|----------| | [extensions/dotnet.md](extensions/dotnet.md) | .NET (C#/F#/VB) | Build commands, test commands, project reference validation, common CS error codes, MSTest template | | [extensions/python.md](extensions/python.md) | Python | Framework-adaptive test commands (pytest, custom runners), project layout detection, mocking guidelines, common errors | | [extensions/typescript.md](extensions/typescript.md) | TypeScript/JavaScript | Build/test commands (Jest/Vitest/Mocha), framework detection, mocking, TS-specific considerations | | [extensions/powershell.md](extensions/powershell.md) | PowerShell | Test commands (Pester v5), module import patterns, discovery/run pitfalls, mocking, common errors | | [extensions/cpp.md](extensions/cpp.md) | C++ | Testing internals with friend declarations | | [extensions/go.md](extensions/go.md) | Go | `go test` commands, table-driven tests, integration vs unit layout, mocking via interfaces, common errors | | [extensions/java.md](extensions/java.md) | Java | Maven/Gradle commands, JUnit 4/5 and TestNG detection, Mockito, Spring Boot slices, common errors | | [extensions/rust.md](extensions/rust.md) | Rust | `cargo test` commands, unit vs integration vs doc tests, features, async test harnesses, common errors | | [extensions/ruby.md](extensions/ruby.md) | Ruby | RSpec and Minitest commands, Bundler usage, Rails specifics, mocking patterns, common errors | | [extensions/swift.md](extensions/swift.md) | Swift | SPM and Xcode test commands, XCTest vs Swift Testing, `@testable import`, async/throws tests, common errors | | [extensions/kotlin.md](extensions/kotlin.md) | Kotlin | Gradle commands, JUnit/Kotest detection, MockK, coroutines test, KMP and Android specifics, common errors | | [extensions/dotnet-examples.md](extensions/dotnet-examples.md) | .NET (C#/F#/VB) | Concrete pipeline examples: sample research output, plan, generated tests, fix cycles, final report | | [extensions/python-examples.md](extensions/python-examples.md) | Python | Concrete pipeline examples (pytest): research, plan, generated test file, fix cycles, final report | | [extensions/typescript-examples.md](extensions/typescript-examples.md) | TypeScript/JavaScript | Concrete pipeline examples (Vitest, applicable to Jest): research, plan, generated test file, fix cycles, final report | | [extensions/go-examples.md](extensions/go-examples.md) | Go | Concrete pipeline examples (standard `testing`): research, plan, table-driven test file, fix cycles, final report | | [extensions/java-examples.md](extensions/java-examples.md) | Java | Concrete pipeline examples (JUnit 5 + Mockito on Maven): research, plan, generated test file, fix cycles, final report | ## Usage Read the appropriate base extension before writing test code. Load an `<language>-examples.md` file only when the repository has no representative tests and the base extension does not resolve the needed pattern. Do not load end-to-end examples for a focused request with established local conventions.
© dotnet · MIT · dotnet/skills