151-java-performance-jmeter — скилл для Claude Code: настройка JMeter
Настраивает нагрузочное тестирование Java-проекта через Apache JMeter: создаёт скрипт run-jmeter.sh и структуру каталогов для тестовых сценариев.
npx skills add jabrena/plinth --skill 151-java-performance-jmeter -a claude-codeЧто делает 151-java-performance-jmeter
Агент проверяет наличие бинарника jmeter в системе через команду jmeter --version. Если утилита доступна в PATH, скилл разворачивает файловую структуру: директорию src/test/resources/jmeter/load-test.jmx для тестовых планов и каталог target/ для сохранения результатов.
В корень проекта копируется скрипт run-jmeter.sh, на который скилл выставляет права выполнения через chmod +x. Шаблон переносится строго без модификаций. Скрипт принимает параметры -l для циклов, -t для потоков, -r для времени разгона (ramp-up), -g для запуска графического интерфейса и флаг справки -h. Настройки можно передавать и через переменные окружения JMETER_LOOPS, JMETER_THREADS или JMETER_RAMP_UP.
Без утилиты JMeter в системном PATH скилл завершит работу ещё до создания файлов. Поэтому тестовый инструмент придётся установить заранее.
Какие задачи решает
- Добавить запуск нагрузочных тестов JMeter в корень Java-проекта
- Подготовить структуру каталогов src/test/resources/jmeter и target/
- Сгенерировать исполняемый скрипт run-jmeter.sh с поддержкой флагов потоков и циклов
- Настроить передачу параметров нагрузки через переменные окружения
Примеры запросов агенту
- Добавь поддержку нагрузочного тестирования JMeter в этот Java-сервис
- Настрой скрипт run-jmeter.sh для прогона тестов производительности
- Создай тестовый план JMeter для проверки сервиса под нагрузкой
Как установить 151-java-performance-jmeter
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 151-java-performance-jmeter -a claude-code2Вручную: положить файлы
~/.claude/skills/151-java-performance-jmeter/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/151-java-performance-jmeter/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 151-java-performance-jmeter -a codex2Вручную: положить файлы
.agents/skills/151-java-performance-jmeter/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 151-java-performance-jmeter -a cursor2Вручную: положить файлы
.cursor/skills/151-java-performance-jmeter/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jabrena/plinth 151-java-performance-jmeter2Вручную: положить файлы
.github/skills/151-java-performance-jmeter/SKILL.md1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 151-java-performance-jmeter -a gemini-cli2Командой платформы
gemini skills install https://github.com/jabrena/plinth --path skills/151-java-performance-jmeterВручную: положить файлы
.devin/skills/151-java-performance-jmeter/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 151-java-performance-jmeter -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о 151-java-performance-jmeter
Как установить 151-java-performance-jmeter в Claude Code?
Выполните команду npx skills add jabrena/plinth --skill 151-java-performance-jmeter -a claude-code.
Что делает скилл 151-java-performance-jmeter?
Он проверяет окружение на наличие JMeter, создаёт исполняемый скрипт run-jmeter.sh в корне проекта и готовит папки для файла load-test.jmx и отчётов.
Что требуется для работы скрипта?
Необходим установленный в системе Apache JMeter, который откликается на команду jmeter --version в терминале.
Исходный текст
SKILL.md · Apache-2.0
--- name: 151-java-performance-jmeter description: Use when you need to set up JMeter performance testing for a Java project — including creating the run-jmeter.sh script from the exact template, configuring load tests with loops, threads, and ramp-up, or running performance tests from the project root with custom or default settings. This should trigger for requests such as Improve the code with JMeter performance testing; Apply JMeter performance testing; Refactor the code with JMeter performance testing; Add JMeter support; Create a JMeter test plan for a Java service. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.19.0 --- # Run performance tests based on JMeter Provide a complete JMeter performance testing solution by creating the run-jmeter.sh script from the exact template, making it executable, and configuring the project structure for load testing. Supports custom loops, threads, ramp-up, and environment variable overrides. **What is covered in this Skill?** - Create run-jmeter.sh in project root from the exact template (no modifications) - Project structure: src/test/resources/jmeter/load-test.jmx, target/ for results - Script options: -l (loops), -t (threads), -r (ramp-up), -g (GUI), -h (help) - Environment variables: JMETER_LOOPS, JMETER_THREADS, JMETER_RAMP_UP - Verify JMeter is installed and available before proceeding **Scope:** Copy the script template verbatim. Do not modify, interpret, or enhance the template content. ## Constraints JMeter must be installed and available in PATH. If not available, show a message and exit. Use only the exact template for the run-jmeter.sh script. - **PREREQUISITE**: Verify JMeter is installed and accessible via `jmeter --version` before creating the script - **CRITICAL**: Copy the run-jmeter.sh template exactly — do not modify, interpret, or enhance - **PERMISSION**: Make the script executable with `chmod +x run-jmeter.sh` - **BEFORE APPLYING**: Read the reference for the exact script template and usage instructions - **EDGE CASE**: If request scope is ambiguous, stop and ask a clarifying question before applying changes - **EDGE CASE**: If required inputs, files, or tooling are missing, report what is missing and ask whether to proceed with setup guidance ## When to use this skill - Improve the code with JMeter performance testing - Apply JMeter performance testing - Refactor the code with JMeter performance testing - Add JMeter support - Create a JMeter test plan for a Java service ## Workflow 1. **Verify JMeter prerequisite** Check `jmeter --version` and stop with guidance if JMeter is not installed or not available in PATH. 2. **Read JMeter reference template** Read `references/151-java-performance-jmeter.md` and use the `run-jmeter.sh` template exactly as provided. 3. **Create script and project structure** Create `run-jmeter.sh` in project root, ensure required JMeter directories/files exist, and apply executable permission with `chmod +x`. 4. **Explain usage and environment overrides** Document CLI options (`-l`, `-t`, `-r`, `-g`, `-h`) and environment variable overrides (`JMETER_LOOPS`, `JMETER_THREADS`, `JMETER_RAMP_UP`). ## Reference For detailed guidance, examples, and constraints, see [references/151-java-performance-jmeter.md](references/151-java-performance-jmeter.md).
© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth