Command Palette

Search for a command to run...

Назад к скиллам
скилл № 06949

Add Regression Test

Write a failing-first JUnit regression test that pins a bug fix or security finding in CimPal. Use when fixing a bug, closing a security finding (TEST-2), or…

БесплатноБез исполняемых скриптов
griddigit-ciот griddigit-ci★ 19 звёзд на GitHub

Установить Add Regression Test в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Add a regression test

Target: $ARGUMENTS

  1. Pin down the behaviour. Identify the class and method that carry the fix or control. For a security finding, read its entry in SECURITY-SELF-ATTESTATION.md §4 and name the input that used to be accepted and must now be refused (or the reverse).
  2. Follow .claude/rules/testing.md: JUnit Jupiter, no network, @TempDir, minimal synthetic fixtures under src/test/resources/fixtures/<feature>/, deterministic assertions.
  3. Place the test in the module and package of the class under test: <module>/src/test/java/<same package>/<Class>Test.java. Extend the existing test class if there is one. Name the method after the behaviour, e.g. refusesImportFromHostOutsideAllowlist, and add a one-line comment linking the finding or issue (e.g. // Attestation Finding 2 (SSRF via owl:imports)).
  4. Prove it bites. Temporarily revert or disable the fix (or reason concretely about why the test would fail without it), run mvn -B -pl <module> -am test -Dtest=<Class>Test, confirm it fails for the right reason, then restore the fix and confirm it passes. Never commit the reverted state.
  5. Security controls fail closed. Assert the error or refusal (exception type, exit code, row error), not only the absence of a result.
  6. Report: the test file and method, what it guards, and the red/green evidence from step 4.

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Add Regression Test?

Write a failing-first JUnit regression test that pins a bug fix or security finding in CimPal. Use when fixing a bug, closing a security finding (TEST-2), or changing security-sensitive code.

Как установить скилл Add Regression Test?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Add Regression Test запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Add Regression Test с